Using sAMAccountName for LDAP login


#1

Hello,

I configured a Authentications Source with LDAP (simple auth). It works, but I only can login with the Display Name. It is nessesary to login with the sAMAccountName. Does anyone have an idea how I can configure to login with sAMAccountName?

Thanks!


#2

Hi,
whats your current auth source configuration - maybe i can help.

BTW im using “sAMAccountName” for login not display name.

Regards


#3

Thank you for reply!
Her is my current configuration:


#4

2019-02-04_15h43_07


#5

try using only:

User Filter = (sAMAccountName=%s)
Username Attribute = sAMAccountName

That works for me


#6

Thank’s I have tried this but it doesn’t work for me…

It only works if the DisplayName and the sAMAccountName are the same.

I think it’s because in User DN there is cn=%s but I don’t see any other possibilities to make it different.


#7

Does anyone have another idea how to fix that?


#8

Solved:
I have created the Aut. via BindDN, now it works.