Page 1 of 1
ldap for mantis
Posted: 12 Oct 2005, 08:18
by cjk
Hello,
Could someone help about the meaning of uid?
My ldap administrator tell me that users should use their mail adresses (
firstname.lastname@domain.com) but when i try to create new account, I can't write a full mail adress (too many characters) , or i can't write a name like firstname.lastname because Mantis don't trust the dot.
Thank you in advance for all your help.
Posted: 13 Oct 2005, 12:44
by Woefdram
Hi,
I'm not an LDAP guru, so I might be talking complete nonsense here. If so, please disregard this message :)
It looks like your LDAP admin uses e-mail addresses to identify users (is that Active Directory btw?) instead of a login. If his scheme doesn't have unique fields like "uid" or "cn" to identify users, I think you have a problem. If it does, I think you should try to use that.
Greetings,
Hans
ldap for mantis
Posted: 14 Oct 2005, 06:22
by cjk
Hello,
Thank you for your answer.
In fact, I 've seen an extraction of an ldif entry for the ldap server we use and it seems that uid is the mail adress. Maybe I can expect for a future version of mantis that allow email adress as a user login.
Posted: 14 Oct 2005, 12:30
by Narcissus
Hi cjk,
The allowable characters in a login name is set by a regular expression. Look for $g_user_login_valid_regex in your configuration and then you can change that to allow email addresses.
ldap for mantis
Posted: 14 Oct 2005, 14:47
by cjk
Hi Narcissus
Thanks for this answer, I'm going to try this on monday!
Just one thing, Do you know how can i bypass the limitation of 32 characters for the username (changing the size of the field in mysql?)
Thanks a lot!
Posted: 14 Oct 2005, 16:56
by Narcissus
Hi cjk,
Sorry mate... the only way I know of would be to directly change the database (through phpMyAdmin or however you do it). I don't know of anything this change would adversely affect, but I would be careful that future upgrades through the ADODB component don't undo your change.
Having problems with LDAP myself
Posted: 19 Oct 2005, 15:50
by shawnwe
Everything works with LDAP and the machine as far as authentication, but have been unable to get it to work with Mantis. POSIX, Samba, SSH, etc...
$g_ldap_server = 'ldap://ldap.machinename.com/';
$g_ldap_port = '389';
$g_ldap_root_dn = 'dc=machinename, dc=com';
$g_ldap_uid_field = 'uid'; # Use 'sAMAccountName' for Active Directory
$g_ldap_bind_dn = 'ou=People, dc=machinename, dc=com';
$g_ldap_bind_passwd = '*******';
ldapsearch returns
dn: uid=evanssh,ou=People,dc=machinename,dc=com