Mantis - Active Directory Authentification
Posted: 19 Sep 2014, 11:47
Bonjour à tous,
1 - J'ai installé avec succès mantisbt 1.2.17 sur une plateforme 2003 server sp2.
2 - J'ai créé un utilisatreur 'udd' avec les droit d'administration.
3 - j'ai configuré Mantis avec active directory moyennant la configuration suivant :
# --- General LDAP configuration ---
$g_login_method = LDAP;
$g_ldap_protocol_version = 3;
$g_ldap_server = "ldap://xxx.xxxx.xx:389";
#$g_ldap_port = 389;
$g_ldap_bind_dn = "CN=udd,OU=DEPARTEMENT SYSTEME D'INFORMATION,DC=xxxx,DC=xx";
$g_ldap_uid_field = 'sAMAccountName';
$g_ldap_bind_passwd = 'motdepasse';
$g_ldap_root_dn = "DC=xxxx";
$g_ldap_organization = "(objectClass=*)";
$g_ldap_realname_field = 'cn';
$g_use_ldap_email = ON;
$g_allow_signup = OFF;
Mon problème est le suivant :
quand je veux m'authentifier avec l'utilisateur 'udd' qui existe bel et bien dans mon annuaire AD, un message s'affiche en indiquant que le compte est désactivé ou le login ou le mot de passe sont incorrects :
Dans les fichiers logs j'ai les informations suivants :
2014-09-18 19:10 CEST ldap Binding to LDAP server
2014-09-18 19:10 CEST ldap Attempting connection to LDAP URI 'ldap://xxxx.xxxx.xx:389'.
2014-09-18 19:10 CEST ldap Connection accepted by LDAP server
2014-09-18 19:10 CEST ldap Setting LDAP protocol version to 3
2014-09-18 19:10 CEST ldap Attempting bind to ldap server with username and password
2014-09-18 19:10 CEST ldap Bind to ldap server successful
2014-09-18 19:10 CEST ldap Searching for (&(sAxxccountName=administrator))
2014-09-18 19:10 CEST ldap No xxtching entries found
2014-09-18 19:10 CEST ldap Unbinding from LDAP server
2014-09-18 19:10 CEST ldap Authentication failed
2014-09-18 19:10 CEST ldap Binding to LDAP server
2014-09-18 19:10 CEST ldap Attempting connection to LDAP URI 'ldap://xxxx.xxxx.xx:389'.
2014-09-18 19:10 CEST ldap Connection accepted by LDAP server
2014-09-18 19:10 CEST ldap Setting LDAP protocol version to 3
2014-09-18 19:10 CEST ldap Attempting bind to ldap server with username and password
2014-09-18 19:10 CEST ldap Bind to ldap server successful
2014-09-18 19:10 CEST ldap Searching for (&(sAxxccountName=udd))
2014-09-18 19:10 CEST ldap No xxtching entries found
2014-09-18 19:10 CEST ldap Unbinding from LDAP server
2014-09-18 19:10 CEST ldap Authentication failed
2014-09-18 19:10 CEST ldap Binding to LDAP server
2014-09-18 19:10 CEST ldap Attempting connection to LDAP URI 'ldap://xxxx.xxxx.xx:389'.
2014-09-18 19:10 CEST ldap Connection accepted by LDAP server
2014-09-18 19:10 CEST ldap Setting LDAP protocol version to 3
2014-09-18 19:10 CEST ldap Attempting bind to ldap server with username and password
2014-09-18 19:10 CEST ldap Bind to ldap server successful
2014-09-18 19:10 CEST ldap Searching for (&(sAxxccountName=administrator))
2014-09-18 19:10 CEST ldap No xxtching entries found
2014-09-18 19:10 CEST ldap Unbinding from LDAP server
2014-09-18 19:10 CEST ldap Authentication failed
1 - J'ai installé avec succès mantisbt 1.2.17 sur une plateforme 2003 server sp2.
2 - J'ai créé un utilisatreur 'udd' avec les droit d'administration.
3 - j'ai configuré Mantis avec active directory moyennant la configuration suivant :
# --- General LDAP configuration ---
$g_login_method = LDAP;
$g_ldap_protocol_version = 3;
$g_ldap_server = "ldap://xxx.xxxx.xx:389";
#$g_ldap_port = 389;
$g_ldap_bind_dn = "CN=udd,OU=DEPARTEMENT SYSTEME D'INFORMATION,DC=xxxx,DC=xx";
$g_ldap_uid_field = 'sAMAccountName';
$g_ldap_bind_passwd = 'motdepasse';
$g_ldap_root_dn = "DC=xxxx";
$g_ldap_organization = "(objectClass=*)";
$g_ldap_realname_field = 'cn';
$g_use_ldap_email = ON;
$g_allow_signup = OFF;
Mon problème est le suivant :
quand je veux m'authentifier avec l'utilisateur 'udd' qui existe bel et bien dans mon annuaire AD, un message s'affiche en indiquant que le compte est désactivé ou le login ou le mot de passe sont incorrects :
Dans les fichiers logs j'ai les informations suivants :
2014-09-18 19:10 CEST ldap Binding to LDAP server
2014-09-18 19:10 CEST ldap Attempting connection to LDAP URI 'ldap://xxxx.xxxx.xx:389'.
2014-09-18 19:10 CEST ldap Connection accepted by LDAP server
2014-09-18 19:10 CEST ldap Setting LDAP protocol version to 3
2014-09-18 19:10 CEST ldap Attempting bind to ldap server with username and password
2014-09-18 19:10 CEST ldap Bind to ldap server successful
2014-09-18 19:10 CEST ldap Searching for (&(sAxxccountName=administrator))
2014-09-18 19:10 CEST ldap No xxtching entries found
2014-09-18 19:10 CEST ldap Unbinding from LDAP server
2014-09-18 19:10 CEST ldap Authentication failed
2014-09-18 19:10 CEST ldap Binding to LDAP server
2014-09-18 19:10 CEST ldap Attempting connection to LDAP URI 'ldap://xxxx.xxxx.xx:389'.
2014-09-18 19:10 CEST ldap Connection accepted by LDAP server
2014-09-18 19:10 CEST ldap Setting LDAP protocol version to 3
2014-09-18 19:10 CEST ldap Attempting bind to ldap server with username and password
2014-09-18 19:10 CEST ldap Bind to ldap server successful
2014-09-18 19:10 CEST ldap Searching for (&(sAxxccountName=udd))
2014-09-18 19:10 CEST ldap No xxtching entries found
2014-09-18 19:10 CEST ldap Unbinding from LDAP server
2014-09-18 19:10 CEST ldap Authentication failed
2014-09-18 19:10 CEST ldap Binding to LDAP server
2014-09-18 19:10 CEST ldap Attempting connection to LDAP URI 'ldap://xxxx.xxxx.xx:389'.
2014-09-18 19:10 CEST ldap Connection accepted by LDAP server
2014-09-18 19:10 CEST ldap Setting LDAP protocol version to 3
2014-09-18 19:10 CEST ldap Attempting bind to ldap server with username and password
2014-09-18 19:10 CEST ldap Bind to ldap server successful
2014-09-18 19:10 CEST ldap Searching for (&(sAxxccountName=administrator))
2014-09-18 19:10 CEST ldap No xxtching entries found
2014-09-18 19:10 CEST ldap Unbinding from LDAP server
2014-09-18 19:10 CEST ldap Authentication failed