dpgaspar / Flask-AppBuilder

Simple and rapid application development framework, built on top of Flask. includes detailed security, auto CRUD generation for your models, google charts and much more. Demo (login with guest/welcome) - http://flaskappbuilder.pythonanywhere.com/
BSD 3-Clause "New" or "Revised" License
4.66k stars 1.36k forks source link

AUHT_USER_REGISTRATION NOT WORKING #1960

Open ljclour opened 1 year ago

ljclour commented 1 year ago

i deployed Superser with Docker-Compose,and want to login in and authory with ldap. there is my superset_confug.py

#AUTHENTICATION FONFIG
104 AUTH_TYPE = AUTH_LDAP
105 AUHT_USER_REGISTRATION = True
106 AUTH_USER_REGISTRATION_ROLE = "Alpha"
107 AUTH_LDAP_UID_FIELD = "cn"
108 AUTH_LDAP_FIRSTNAME_FIELD = "givenName"
109 AHTU_LDAP_LASTNAME_FIELD= "sn"
110 AUTH_LDAP_EMAIL_FIELD = "mail"
112 AUTH_LDAP_SERVER = "ldap://xxxxxx:389"
114 AUTH_LDAP_SEARCH = "cn=%s,ou=groups,dc=xx,dc=xx"

With the above configuration,I can login wiht ldap user,but already in Superset.It is Seem that `AUHT_USER_REGISTRATION = True' not working.Because when login with the user both in ldap and Superset, ldap can verify the password. If the user not in Superset,it can not login.

Users in Superset

image

Users in ldap

image

The user test3 can not login in Superset,but others is ok.

dpgaspar commented 1 year ago

Hi,

please provide server logs to when you login with test3

ljclour commented 1 year ago

Hi,

please provide server logs to when you login with test3 Superset_app logs image

when login with test1 or test2, just like this,but test3 nothing image

ljclour commented 1 year ago

when i logout ,something WARNING came out,is that a problem? image