ldap for mantis

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
cjk

ldap for mantis

Post 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.
Woefdram
Posts: 21
Joined: 18 Jul 2005, 12:10
Location: Netherlands

Post 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
cjk

ldap for mantis

Post 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.
Narcissus
Developer
Posts: 338
Joined: 17 Feb 2005, 09:45

Post 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.
cjk

ldap for mantis

Post 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!
Narcissus
Developer
Posts: 338
Joined: 17 Feb 2005, 09:45

Post 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.
shawnwe

Having problems with LDAP myself

Post 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
Post Reply