Unable to change loginname from username to e-mail using active directory backend
-
Hello again,
I am unable to change the default login from username to (main) email address.
I edited
ldap_loginname_attributeinldap.active-directory.cfg.
I triedldap_loginname_attribute = userPrincipalNameand alsoldap_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 = %utologinname_format = %u@mydomain.comin server.cfg but that should be everything but best practice…Thanks in advance
cheers
-gladston3 -
Hi @gladston3 ,
do you maybe have
sync_gab_realtimeset to no and did not execute akopano-admin --syncafter you ldap change? or are you maybe runninguser_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 anldap.cfgwhich includes a standard configuration and changes should be done inldap.cfg. If you started with an earlier version you current configuration will stay compatible of course. -
Hi @fbartels,
My
sync_gab_realtimeis set toyesand myuser_safe_modetonoboth in/etc/kopano/server.cfg.I did not start with a version <8.2.
I have two ldap configuration files in my/etc/kopanofolder.ldap.cfgandldap.active-directory.cfgwhich I copied from/usr/share/kopanoand then adjusted to my setup.In the
ldap.cfgfile there is an include line forldap.active-directory.cfgand some basic settings but nothing I could identify as “login name change variable”.
I only foundldap_loginname_attributein theldap.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 wholeldap.active-directory.cfgdepricated?I can also post my config files if you need them. Just let me know.
cheers
-gladston3 -
No, since the
ldap.active-directory.cfgis included fromldap.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
/etc/kopano/ldap.active-directory.cfgwhile/usr/share/kopano/ldap.active-directory.cfgwas included inldap.cfg.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 :D
cheers
- gladston3