GitHub user itshikanov added a comment to the discussion: Can't list users
> Hello, > > Thanks for yoour help. The config.py contain : #AUTH_TYPE = AUTH_DB > > AUTH_TYPE = AUTH_LDAP AUTH_USER_REGISTRATION = True > AUTH_USER_REGISTRATION_ROLE = "Public" AUTH_LDAP_SERVER = > "ldap://x.x.x.x:389" AUTH_LDAP_USE_TLS = False AUTH_LDAP_BIND_USER = > "CN=Lecture AD,OU=Comptes de service,OU=Serveurs,DC=MyDC,DC=intra" > AUTH_LDAP_BIND_PASSWORD = "*******" AUTH_LDAP_SEARCH = "DC=MyDC,DC=intra" > AUTH_LDAP_UID_FIELD = "sAMAccountName" AUTH_LDAP_ALLOW_SELF_SIGNED=True > AUTH_LDAP_APPEND_DOMAIN=False AUTH_LDAP_FIRSTNAME_FIELD="givenName" > AUTH_LDAP_LASTNAME_FIELD="sn" AUTH_LDAP_USE_TLS=False > AUTH_USER_REGISTRATION=True AUTH_ROLES_MAPPING = { "CN=Lecture AD,OU=Comptes > de service,OU=Serveurs,DC=MyDC,DC=intra": ["Gamma","Alpha"], "CN=Lecture > AD,OU=Comptes de service,OU=Serveurs,DC=MyDC,DC=intra": ["Admin"], } > > The connection to LDAP is OK, I can connect with my LDAP account. I enable > AUTH_DB and disable all for LDAP in config.py, save et restart superset. I > connect with admin db account, go to users list and change my account LDAP > with Admin Role. I modify config.py to disable AUTH_DB and enable LADAP, > restart supeset and superset ini. I can login with my account LDAP, I have > all permissions exept list users. > > regards Hello. I were face with that, when first step was ```AUTH_TYPE = AUTH_DB```. Login as admin. Second step is change it to ```AUTH_TYPE = AUTH_LDAP```. Then - ```list users : access denied``` This is help me: ``` superset init superset db upgrade ``` GitHub link: https://github.com/apache/superset/discussions/32427#discussioncomment-12779053 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
