Configuring LDAP
Posted: 30 Nov 2005, 18:03
G'day,
After much research, I found a posting that stated to add the following lines to ldap_api.php - function ldap_connect_bind( $p_binddn = '', $p_password = '' ) (which helped)
ldap_set_option($t_ds, LDAP_OPT_PROTOCOL_VERSION, 3))
ldap_set_option($t_ds, LDAP_OPT_REFERRALS, 0);
However, as 1 posting stated
function ldap_authenticate( $p_user_id, $p_password )
seems to always use administrator in it's search for the id to authenticate, not the sAMAccountName. I get pass authentication when I hard code a valid sAMAccountName. Is this a bug?
Also, once I hardcoded the above, Mantis only logs me in if I supply a valid or invalid password but not an empty password. Is this a bug?
Can someone help me out? Thanks
Versions:
Windows 2K
Mantis 1.0.0rc2
MySQL Server 4.1.14
Apache v2.0.55
PHP 4.4.0
AD on Y2K
After much research, I found a posting that stated to add the following lines to ldap_api.php - function ldap_connect_bind( $p_binddn = '', $p_password = '' ) (which helped)
ldap_set_option($t_ds, LDAP_OPT_PROTOCOL_VERSION, 3))
ldap_set_option($t_ds, LDAP_OPT_REFERRALS, 0);
However, as 1 posting stated
function ldap_authenticate( $p_user_id, $p_password )
seems to always use administrator in it's search for the id to authenticate, not the sAMAccountName. I get pass authentication when I hard code a valid sAMAccountName. Is this a bug?
Also, once I hardcoded the above, Mantis only logs me in if I supply a valid or invalid password but not an empty password. Is this a bug?
Can someone help me out? Thanks
Versions:
Windows 2K
Mantis 1.0.0rc2
MySQL Server 4.1.14
Apache v2.0.55
PHP 4.4.0
AD on Y2K