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

asked 20 Feb, 11:05

dhanushka's gravatar image

dhanushka
6615
accept rate: 50%

edited 05 May, 05:02


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

link

answered 05 May, 05:06

dhanushka's gravatar image

dhanushka
6615
accept rate: 50%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×101
×12
×9
×1

Asked: 20 Feb, 11:05

Seen: 214 times

Last updated: 05 May, 05:06

powered by OSQA