I found a patch (http://www.mantisbt.org/bugs/view.php?id=7731) for the problem. The question is that credentials (user/pass) from LDAP must be also in DB. Then what the patch does is to retrieve data from LDAP and insert records in DB. This patch doesn't work for me because whe store usernames in dot notation (name.surname) and mantis doesn't like so much this way. Time to patch code...
What I don't understand is why LDAP auth is provided when doesn't work (for me and others - http://www.mantisbt.org/forums/viewtopic.php?t=618 -) best regards Jorge González escribió: > Well, I tried to config Mantis with other LDAP params and nothing but > PHP errors. I think config it's ok because LDAP server gets the call > from mantis as you can see in the log but instead search for a given uid > it is replaced by uid 'administrator' who is the user to configure > Mantis on first time. > > uid=proxyuser: because our LDAP server is not public and the only > anonymous user who can read is 'proxyuser'. The 'proxyuser' reads on > LDAP records and if the given username is found then use it. > > > Gabriel Boie escribió: > >> This is a sample configuration that works for me. >> >> $g_login_method = LDAP; >> $g_ldap_server = 'ldap://myldap.mysite.com:389'; >> $g_ldap_root_dn = 'ou=Staff,o=MYOrganization,c=com'; >> $g_ldap_organization = ''; >> $g_ldap_uid_field = 'uid'; >> $g_ldap_bind_dn = >> 'cn=mantisbind,ou=Staff,o=MYOrganization,c=com; >> $g_ldap_bind_passwd = 'MyBindPassword'; >> >> It seems that you have a problem here: >> $g_ldap_bind_dn = 'uid=proxyuser,cn=config'; >> I am not an LDAP/Mantis expert, but I do not think that you should use >> "uid" in the above line. I would replace it with something like that : >> "cn=proxyuser,ou=empleados,ou=people,dc=degesys,dc=com" . Give it a try >> and let me know. >> >> Regards, >> Gabriel >> >> Help with Mantis wrote: >> >> >>> Hi people!! >>> >>> I'm having problems when trying to connect thru LDAP. MySQL auth is OK. >>> >>> $g_login_method = LDAP; >>> $g_ldap_server = 'ldap://ldap.degesys.net/'; >>> $g_ldap_port = '389'; >>> $g_ldap_root_dn = >>> 'ou=empleados,ou=people,dc=degesys,dc=com'; >>> $g_ldap_organization = ''; # e.g. >>> '(organizationname=*Traffic)' >>> $g_ldap_uid_field = 'uid'; # Use 'sAMAccountName' >>> for Active Directory >>> $g_ldap_bind_dn = 'uid=proxyuser,cn=config'; >>> $g_ldap_bind_passwd = 'passwd'; >>> $g_use_ldap_email = ON; # Should we send to the >>> LDAP email address or what MySql tells us >>> $g_ldap_protocol_version = 0; >>> >>> When I try to connect LDAP log writes: >>> >>> [17/Apr/2007:15:28:58 +0200] conn=7837 fd=245 slot=245 connection >>> from 10.10.3.185 to 10.10.3.185 >>> [17/Apr/2007:15:28:58 +0200] conn=7837 op=0 BIND >>> dn="uid=proxyuser,cn=config" method=128 version=2 >>> [17/Apr/2007:15:28:58 +0200] conn=7837 op=0 RESULT err=0 tag=97 >>> nentries=0 etime=0 dn="uid=proxyuser,cn=config" >>> [17/Apr/2007:15:28:58 +0200] conn=7837 op=1 SRCH >>> base="ou=empleados,ou=people,dc=degesys,dc=com" scope=2 >>> filter="(&(uid=administrator))" attrs="uid dn" >>> [17/Apr/2007:15:28:58 +0200] conn=7837 op=1 RESULT err=0 tag=101 >>> nentries=0 etime=0 >>> [17/Apr/2007:15:28:58 +0200] conn=7837 op=2 UNBIND >>> [17/Apr/2007:15:28:58 +0200] conn=7837 op=2 fd=245 closed - U1 >>> >>> >>> I don't know why is lloking for uid=administrator when I tried with >>> another username... By other hand user administrator is on DB >>> >>> Mantis SQL debug: >>> >>> 3 total queries executed. >>> 3 unique queries executed. >>> >>> 1 0.0003 SELECT config_id, user_id, project_id, type, value, >>> access_reqd FROM mantis_config_table >>> 2 0.0004 SELECT id FROM mantis_user_table WHERE >>> username='administrator' >>> 3 0.0003 SELECT * FROM mantis_user_table WHERE id='3' >>> >>> >>> Why Mantis is asking to DB when should ask to LDAP? >>> >>> Thans in advance >>> >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by DB2 Express >>> Download DB2 Express C - the FREE version of DB2 express and take >>> control of your XML. No limits. Just data. Click to get it now. >>> http://sourceforge.net/powerbar/db2/ >>> _______________________________________________ >>> mantisbt-help mailing list >>> [email protected] >>> <mailto:[email protected]> >>> https://lists.sourceforge.net/lists/listinfo/mantisbt-help >>> >>> >>> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> mantisbt-help mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/mantisbt-help >> >> > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > mantisbt-help mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mantisbt-help > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ mantisbt-help mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mantisbt-help
