CREATE SUPER USER in PaaS offering of Azure Database for Postgres? - postgresql-11

i logged into the azure Postgres database , with the admin user credentials , that i gave at the time of creating the Azure Database for Postgres
Now when i try to create SUPERUSER , by giving the command
CREATE USER TESTER SUPERUSER; ---> it gives me error saying
must be superuser to create superusers
I was thinking , the ADMIN USER that i created for Azure Database for Postgres is itself the SUPER USER. Can we not create SUPER USERS in Azure Database for PostgreSQL
Please guide.

I figured out the answer myself.
In Azure Postgres , we cannot CREATE SUPERUSERS .
Since this service is a managed PaaS service, only Microsoft is part of the super user role.
Details in link here

Related

How to add a user to django site, when using remote auth backend?

I am using Django for a site, and have a remote auth backend setup. Is there a way In which I can create a new user and give them permissions before they login to the site? I know I can add users through the admin page or directly through the database, but since I do not know the new users password, I am not sure if the system will see them as the same user
I have tried using the admin page, but it says I need to enter a password
I would like to be able to add users to the system before they logon, and give them permissions, so that when they logon they are not redirected to my unauthorized page. Is this possible?
As I understand from your question, You can create the user by using the
python manage.py createsuperuser
which will create the superuser and later on you can edit on this user and can give your permissions.

WSO2 IS 5.2.0 change super administrator account

We are using WSO2 IS 5.2.0
We have integrated it with AD/LDAP (using LDAPUserStoreManager). We had userA from AD as our super administrator. Using this user we have registered all our apps under “Service Providers”.
Now because of some organisation changes we have to connect to different LDAP server for user authentication. We have changed the LDAP configuration manually in the user-mgt.xml file to point to new AD/LDAP server and userB from new LDAP is our new super admin.
Problem: We are not able to see the list of APPs that we had registered under “Service Providers” when we login as “userB”.
Question how can we transfer the list of apps (ownership) to new administrator?
We tried to update SP_APP table from backend but it is still not solving the problem.
(e.g. update SP_APP set username='userB' where APP_NAME='TestApp';)
Can someone please help us to know how can we transfer the list of apps under service provider so that it will be visible to new administrator?
When you create a Service Provider (SP), a role is created with it. If the name of the SP is "SomeName", a role is created is "Application/SomeName". Users with this particular role can see (and do any operation) that particular application.
So you need to assign these roles to the new admin user (or any other user that need to see the application) to make the applications visible to the new admin user.
See more information about creating service providers in WSO2 Identity Server in https://docs.wso2.com/display/IS541/Adding+and+Configuring+a+Service+Provider#AddingandConfiguringaServiceProvider-Addingaserviceprovider

How to reset Informatica Admin Console password on 9.6.0?

Informatica Server was setup at our local server, but unfortunately nobody remembers the Admin Console password for user "Administrator".
1.) Using pmpasswd, I created an encrypted password and replaced the current one in PO_USERINFO table "POU_PASSWORD" field, in the database I found on my "Informatica_9.6.0_Services" log file, but the service would not restart. I had to revert it back for the service to run again.
2.) I have tried using default user name/ password combinations but they aren't working
Any suggestion is appreciated.
The only way to reset a lost admin password is at the database level. Informatica Support has a process for this if you contact them.
Do not alter the database yourself!!

django - Remove users from django database if user is removed from database from LDAP server

I'm currently using django-auth-ldap to authenticate with LDAP, and I've looked through all the docs for the library, it doesn't mention what happens to the django database when the database we are authenticating against removes the user.
I know we can do a check when we authenticate to make sure if the user is removed, but how do I clean up the user since a user will be created if it's successfully authenticated. Do I just do it like I'd normally do with Django user object?
Thank you!

Integration of Open ERP & Django to configure openerp instances

I am new to Django.
I'm developing a Django application where user will enter UserName & DatabaseName (new Database to be generated by openerp)
So once User submits the username & dbname, it will call Open ERP API to create new database and setup new username/password as per specified in Django App.
Once new DB is configured, openerp API should also notify the user by email with the link (web client) to access his new account of openerp...
How can I achieve this ?
I dont think you can create databases via the XLM-RPC (I may be wrong), but you could just use Django to create a new postgres database with the openerp user as owner, and insert a default user into the user table. You could send an email from Django when its all set up.
Also have a look at these scripts which help administer openerp instances https://code.launchpad.net/~clearcorp/openerp-ccorp-scripts