Hi,
with Dovecot 2.3.4 I would like to allow user to login with two different usernames:
- USERNAME (no domain) - now works
- name.surname@domain.tld - would like to add
Problem is, that the only authentication method I have is LDAP bind by USERNAME. Now I use:
============ passdb { driver = ldap args = /etc/dovecot/dovecot-ldap.conf.ext }
Args
uris = ldaps://ldap.domain.tld auth_bind = yes auth_bind_userdn = uid=%u,dc=domain,dc=tld base =
I know passdb can remap user&domain, but I have no password hash at all. And for example '{SASL}' is not supported password scheme to return e.g. from SQL passdb.
Is there any way how to achive this? Maybe somehow remap username in first passdb and then continue to LDAP bind?
- login as name.surname@domain.tld
- remap to USERNAME
- do the LDAP bind
Milo
auth_bind_userdn = uid=%d,dc=domain,dc=tld, also see
%D - return “sub.domain.org” as “sub,dc=domain,dc=org” (for LDAP queries)
from https://doc.dovecot.org/configuration_manual/config_file/config_variables/
Aki
I'm sorry, I explained it wrong.
It is not login with & without domain scenario. I have internal company usernames + passwords and e-mail addresses.
I want to achive:
- internal username + password login to work
- email + password login to work
Now works: Username: milo Password: 123456
Want to allow: Username: miloslav.hula@domain.tld Password: 123456
which somehow remaps to 'milo' username, so same Maildir access.
Milo
Dne 11.01.2021 v 17:32 Aki Tuomi napsal(a):
participants (2)
-
Aki Tuomi
-
Miloslav Hůla