Unable to change loginname from username to e-mail using active directory backend
I am unable to change the default login from username to (main) email address.
ldap_loginname_attribute = userPrincipalNameand also
ldap_loginname_attribute = mailbut neither brought some change and I still could only login with name only.
Should this work or is this the wrong option? I guess I could change
loginname_format = %uto
loginname_format = %firstname.lastname@example.org server.cfg but that should be everything but best practice…
Thanks in advance
Hi @gladston3 ,
do you maybe have
sync_gab_realtimeset to no and did not execute a
kopano-admin --syncafter you ldap change? or are you maybe running
user_safe_mode = yes?
Did you make your change in the correct
ldap.active-directory.cfg? With 8.2 there was a change in the organisation of the ldap configuration, the new default behaviour is to have an
ldap.cfgwhich includes a standard configuration and changes should be done in
ldap.cfg. If you started with an earlier version you current configuration will stay compatible of course.
sync_gab_realtimeis set to
I did not start with a version <8.2.
I have two ldap configuration files in my
ldap.active-directory.cfgwhich I copied from
/usr/share/kopanoand then adjusted to my setup.
ldap.cfgfile there is an include line for
ldap.active-directory.cfgand some basic settings but nothing I could identify as “login name change variable”.
I only found
ldap.active-directory.cfgin the “# There should be no need to edit any values below this line” section.
So are you suggesting to just write the
ldap_loginname_attributeinto the ldap.cfg file or is the whole
I can also post my config files if you need them. Just let me know.
No, since the
ldap.active-directory.cfgis included from
ldap.cfgit should not matter where you change the value (as long as you don’t overwrite it through a later include).
Yes pasting your complete config may help.
Okay, it’s pretty embarassing but sometimes I am just dumb. I edited
/usr/share/kopano/ldap.active-directory.cfgwas included in
I followed your advice now and put my settings at the end of
ldpa.cfgand it works like a charm now.
Thank you for your help and sorry again for my dumbness