Greetings,
I have setup an LDAP connection that works,
the user can sign in but the issue is after signing in the first_name and last_name and email arent stored in the system.
The first name is set to the current username but the other fields(last name and email) arent set.
this is my code:
auth.settings.login_methods.append(ldap_auth(mode='ad',
manage_groups= True,
db = db,
server='ip',port=389,
user_firstname_attrib = 'givenName',
user_lastname_attrib = 'sn',
user_mail_attrib = 'mail',
base_dn='dc=myserver,dc=local'))
I also tried this
auth.settings.login_methods.append(ldap_auth(mode='ad',
manage_groups= True,
db = db,
server='ip',port=389,
user_firstname_attrib = 'cn:1',
user_lastname_attrib = 'cn2',
user_mail_attrib = 'mail',
base_dn='dc=myserver,dc=local'))
but still the same result.
Any help is welcome.
Thanks