You are not logged in.
Pages: 1
I'm using the latest and greatest GLPI version and am attempting to setup authentication using Windows Server 2003 LDAP. I have my ldap user setup correctly as I use it for 2 other programs already but for some reason I can't get it to work with GLPI. Can someone please help me!.. Here are my external authentication settings... Thanks!..
LDAP configuration
LDAP Host: server.domain.com
LDAP Port: 389
Basedn: DC=domain,DC=com
rootdn: CN=ldapuser,CN=users,DC=domain,DC=com
pass: *********
Connection Filter: (&(objectClass=user)(objectCategory=person))
Login Field: samaccountname
Use TLS: ldap_start_tls does not exist
Belonging to groups
Search type: In Users
User attribute containing its groups:
Filter to search in groups:
Group attribute containing its users:
GLPI/LDAP Links
Surname: sn
Firstname: givenname
Location: physicaldeliveryofficename
E-Mail: mail
Phone: telephonenumber
Phone 2:
Mobile:
Offline
I guess I should add that when i try to login as user or user@domain.com I get the following message...
Invalid credentials
Invalid credentials
Invalid credentials
.
Log in again
Offline
Offline
I'm using GLPI 0.68.3.
Offline
I figured out the problem myself! The LDAP configuration I posted is correct however my many attempts at getting the correct configuration locked out my LDAP user account. After I unlocked the account it works perfectly!
Offline
ldap host : ldap:\\server.domain.com
and verify your rootdn.
Try with LDAP Browser to test your connection. If you succeeded with LDAP browser , you must succeed with glpi
Xavier Caillaud
Blog GLPI Infotel
Offline
HI All,
LDAP configuration
LDAP Host: ldap://server.domain.com
LDAP Port: 389
Basedn: DC=domain,DC=com
rootdn: CN=glpiadmin,CN=Users,DC=domain,DC=com
pass: *********
Connection Filter: (&(objectClass=user)(objectCategory=person))
Login Field: glpiadmin
Use TLS: no
Belonging to groups
Search type: In Users
User attribute containing its groups:
Filter to search in groups:
Group attribute containing its users:
GLPI/LDAP Links
Surname:
Firstname: glpiadmin
Location:
E-Mail:
Phone:
Phone 2:
Mobile:
when i try to log on to GLPI using an AD user i get,
Can't Contact LDAP SERVER
Can't Contact LDAP SERVER
Can't Contact LDAP SERVER
.
Loging Again
im using glpi 0.68.3 and my AD is windows 2003
i even tried the LDAP Browser and its working perfectly....
Help
Offline
Login Field: glpiadmin -> samaccountname
Surname: sn
Firstname: firstname
Xavier Caillaud
Blog GLPI Infotel
Offline
thanks for the reply
i created a user called glpiadmin and glpiadmin is also its samaccountname,
surname field i left blank
Firstname is also glpiadmin
so, do i still have to change the fields as you asked me to?
Offline
and also,
on the "EXTERNAL SOURCES OF AUTHENTICATION" page i get
IMAP/POP configuration
Your parser PHP was compiled without the IMAP functions
Impossible to use IMAP/POP as external source of connection
can this be the problem?
Offline
thanks for the reply
i created a user called glpiadmin and glpiadmin is also its samaccountname,
surname field i left blank
Firstname is also glpiadminso, do i still have to change the fields as you asked me to?
Yes because you must write the attribute and not the value.
Imap / pop is not the problem.
Try to change the fieds. You can try also to test your ad connection with ldap browser.
Xavier Caillaud
Blog GLPI Infotel
Offline
thanks
I did change the field but the problem still remains
I tested my AD connection with the LDAP browser and its working fine
Offline
i was going through the help files and it said " In order to be able to use one of these modes of authentification, you first must activate the corresponding extensions in your PHP configuration."
Do i have to make some changes in the PHP configuration if i want to use AD auth?
Offline
if you can setup your ad auth in glpi, so your extension is activated.
Can you come on irc channel #glpi, on freenode.net, it was more easy.
Xavier Caillaud
Blog GLPI Infotel
Offline
is there any way to check if the particular extension has been activated or not?
I tried cming on to freenode but as i have never used IRC couldnt really makeout how to do it. I downloaded X-chat but im getting connection refused on freenode
Offline
PLEASE MAKE THE FOLLOWING CHANGES AND REPOST YOUR CONFIGURATION IF STILL HAVING PROBLEMS (It's makes it easier to view what changes you're making this way)....
First I will assume you have a correctly configured LDAP user for AD. Looking at your configuration here is what I see wrong according to my working install. Also one problem I had was I tried so many things to get this to work and it was actually contacting the AD server and I ended up locking out my LDAP user account which is why I was receiving an Incorrect login like you are seeing. So try these few things as I noticed you do have some config problems.
1) Change LDAP Host to server.domain.com (no ldap://)
2) Make sure your domain in AD is not in all caps, if it is you will need to change it in GLPI.
3) Youre Login Field is incorrect. It should be samaccountname (This is what AD uses to query and is probably your main problem.)
4) I didn't use a Connection Filter. May work ok but I don't use it.
5) Use the following info for GLPI/LDAP Links:
Surname: sn
Firstname: givenname
Location: physicaldeliveryofficename
E-Mail: mail
Phone: telephonenumber
Phone 2:
Mobile:
Offline
Pages: 1