Connect to Mantis via LDAP
Players94
Posted messages
1
Status
Member
-
MantisUSer -
MantisUSer -
Hello,
So, I've installed Mantis 1.0.6 on a work machine and I need to use an LDAP to log in, but after several modifications and research on the internet, I'm still stuck. I've installed OpenLDAP on Windows with the LDAP Browser/Editor software and I can access my directory without any problem, but in Mantis, it says "Your account may be disabled or the username and password you entered are incorrect." Here is the configuration on Mantis
$g_ldap_server= 'ldap://localhost';
$g_ldap_port= '389';
$g_ldap_root_dn= 'dc=jalios,dc=com';
$g_ldap_organization = '';# e.g. '(organizationname=*Traffic)'
$g_ldap_uid_field= 'uid'; # Use 'sAMAccountName' for Active Directory
$g_ldap_bind_dn= 'cn=Manager,dc=jalios,dc=com';
$g_ldap_bind_passwd = '******';
$g_use_ldap_email = OFF; # Should we send to the LDAP email address or what MySql tells us
and here is the IDIF file under OpenLDAP
dn:uid=durant cn=durant,dc=jalios,dc=com
cn: Michel Durant
objectClass: inetOrgPerson
uid: durant
userPassword: michel
givenName: Michel
sn: Durant
description: Michel Durant is used for LDAP testing
mail: michel.durant@jalios.com
Can someone help me because I don't know what to do anymore
Thank you in advance
PS: I'm using Apache 2 and PHP 5
So, I've installed Mantis 1.0.6 on a work machine and I need to use an LDAP to log in, but after several modifications and research on the internet, I'm still stuck. I've installed OpenLDAP on Windows with the LDAP Browser/Editor software and I can access my directory without any problem, but in Mantis, it says "Your account may be disabled or the username and password you entered are incorrect." Here is the configuration on Mantis
$g_ldap_server= 'ldap://localhost';
$g_ldap_port= '389';
$g_ldap_root_dn= 'dc=jalios,dc=com';
$g_ldap_organization = '';# e.g. '(organizationname=*Traffic)'
$g_ldap_uid_field= 'uid'; # Use 'sAMAccountName' for Active Directory
$g_ldap_bind_dn= 'cn=Manager,dc=jalios,dc=com';
$g_ldap_bind_passwd = '******';
$g_use_ldap_email = OFF; # Should we send to the LDAP email address or what MySql tells us
and here is the IDIF file under OpenLDAP
dn:uid=durant cn=durant,dc=jalios,dc=com
cn: Michel Durant
objectClass: inetOrgPerson
uid: durant
userPassword: michel
givenName: Michel
sn: Durant
description: Michel Durant is used for LDAP testing
mail: michel.durant@jalios.com
Can someone help me because I don't know what to do anymore
Thank you in advance
PS: I'm using Apache 2 and PHP 5
Configuration: Windows XP Internet Explorer 7.0
6 answers
-
-
"@ldap_set_option($t_ds, LDAP_OPT_PROTOCOL_VERSION, 3);"
Ton serveur est surement configuré pour ne répondre qu'aux requetes LDAP version 3.
PS: j'espère que la réponse n'arrive pas trop tard !! -
I modified the file ./core/ldap_api.php by adding the following line:
"@ldap_set_option($t_ds, LDAP_OPT_PROTOCOL_VERSION, 3);" as indicated and the connection establishes well with Active Directory.
So, when I type my Active Directory login (sAMAccountName) and my password in the login window, I pass, so far so good, everything is fine in the best of worlds... but then, when I type my login and a wrong password, I still pass!
How did you solve this issue? Thank you in advance.-
Hello,
I am writing to you because you have had the same problem as I have.
I set up an Active Directory access for Mantis through LDAP and I also noticed that I could access the accounts with any password.
Have you been able to resolve this issue?
If so, how?
Thank you for your attention and best regards
A. Bornand
-
-
Hello
I have a problem with the titles of the graphs under Mantis. When I do the synthesis by state or by priority, the graph title does not accept the "é" and it outputs special characters like state: état; priority; catégorie' and that's for the version, and we didn't have this problem in the previous version. -
Bonjour, je travaille avec Mantis et TestLink, je les ai installés mais je ne sais pas comment travailler, surtout avec Mantis. Si je crée un bug dans TestLink, je veux qu'il s'affiche dans Mantis, mais ça ne se fait pas. Je suis vraiment bloqué, s'il vous plaît, si vous pouvez m'aider, je compte vraiment sur vous.
-
-
Hello,
I have a list of about a hundred users that I uploaded in SQL from a CSV file into the table "mantis_user_table".
By default, I set a password to NULL, but I feel that this doesn’t work on the first login.
Do we have to upload the users one by one for them to be able to map the passwords?
Thank you
-