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_attribute
inldap.active-directory.cfg
.
I triedldap_loginname_attribute = userPrincipalName
and alsoldap_loginname_attribute = mail
but 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 = %u
tologinname_format = %u@mydomain.com
in server.cfg but that should be everything but best practice…Thanks in advance
cheers
-gladston3 -
Hi @gladston3 ,
do you maybe have
sync_gab_realtime
set to no and did not execute akopano-admin --sync
after 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.cfg
which 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_realtime
is set toyes
and myuser_safe_mode
tono
both in/etc/kopano/server.cfg
.I did not start with a version <8.2.
I have two ldap configuration files in my/etc/kopano
folder.ldap.cfg
andldap.active-directory.cfg
which I copied from/usr/share/kopano
and then adjusted to my setup.In the
ldap.cfg
file there is an include line forldap.active-directory.cfg
and some basic settings but nothing I could identify as “login name change variable”.
I only foundldap_loginname_attribute
in theldap.active-directory.cfg
in the “# There should be no need to edit any values below this line” section.So are you suggesting to just write the
ldap_loginname_attribute
into the ldap.cfg file or is the wholeldap.active-directory.cfg
depricated?I can also post my config files if you need them. Just let me know.
cheers
-gladston3 -
No, since the
ldap.active-directory.cfg
is included fromldap.cfg
it 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.cfg
while/usr/share/kopano/ldap.active-directory.cfg
was included inldap.cfg
.I followed your advice now and put my settings at the end of
ldpa.cfg
and it works like a charm now.Thank you for your help and sorry again for my dumbness :D
cheers
- gladston3