Question about the behaviour of LDAP backend given fixed uid and variable user name #510
Unanswered
TheLonelinessOfHS
asked this question in
Q&A
Replies: 2 comments 3 replies
-
Hi, Stalwart requires a fixed username in order to work. The query could be use a variable username but the field specifying the actual account name needs point to a unique id, otherwise multiple accounts will be created. |
Beta Was this translation helpful? Give feedback.
3 replies
-
For those who are interested in this, you need to modify lines 132-135 in mail-server/crates/directory/src/backend/ldap/lookup.rs. Not sure if you also need to change anything else to ensure that there is no other issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am currently developing an LDAP gateway between the mail server and another web-based identify provider backend. I want it to work like this: 1. the users are authenticated with their usernames and passwords 2. the mail server sends ldap request to the gateway, 3. the gateway verifies the password. Now, the issue is that the users are associated with a variable username and a fixed uid, such that I would like the users to sign in with the current username and the mail system to use uid as an identified.
I would like to know this: What if I use cn=#username?,ou=bala,dc=example,dc=com in bind Auth, (&(|(objectClass=posixAccount)(objectClass=posixGroup))(cn=#username?)) in filter query, which will return objects with an uid attribute mapped to Name? Will this work?
This question is probably quite strange for you and I understand that it might concern implementation details and comes with no guarantee. However, I believe that this is quite relevant to those LDAP users with variable usernames and fixed IDs. Thanks for your help in advance.
Beta Was this translation helpful? Give feedback.
All reactions