简体   繁体   中英

LDAP: Cannot authenticate users with period in username

Basically, this works:

ldapsearch -H ldap://test.domain.pri -x -b dc=domain,dc=pri -D test1 -W

This does not:

ldapsearch -H ldap://test.domain.pri -x -b dc=domain,dc=pri -D test.2 -W

The existence of a dot in the username seems to be the only determining factor here.

Any suggestions?

Try quoting the value for -D:

ldapsearch -H ldap://test.domain.pri -x -b dc=domain,dc=pri -D "test.2" -W

My other thought: the -D param is supposed to provide the distinguished name (DN). Is "test.2" really a valid DN in your setup?

Thanks for the suggestions! It turns out however that the client has something in place which replaces periods with spaces in the username. So the problem was not on my end!

For those who may still encounter this issue. Try using full UPN after -D. I found it to work with periods flawlessly:

    ldapsearch -H ldap://test.domain.pri -x -b dc=domain,dc=pri -D "test.2@domain.pri" -W

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM