|
Hi guys need some help ... i successfully able to plug OSQA to ldap.But when im login it takes UID an the username. Is there any way to provide E-mail as username. This is my LDAP... settings I tried by changing "uid field to mail" but didnt work and i again tried by changing "User Mask:mail=%s" but didnt work..... LDAP Server: ldap://ldapserver:389 Use TLS:No DN for binding:cn=admin,dc=example,dc=com Password for binding: ** Base DN:dc=example,dc=com User Mask:uid=%s uid field:uid Name field:cn DN field:dn email field:mail Any sort of replay highly appreciated Thank you Dhanushka |
|
foud the answer , replace the following line , in the file forum_modules/ldapauth/authentication.py _user = User( username = userinfo[str(settings.LDAP_UID)][0], with, _user = User( username = userinfo[str(settings.LDAP_MAIL)][0], and change the LDAP config as follows, LDAP Server: ldap://192.168.0.50:389 Use TLS:No DN for binding:cn=admin,dc=example,dc=com Password for binding: ** Base DN:dc=example,dc=com User Mask:mail=%s uid field:uid Name field:cn DN field:dn email field:mail |