You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#26 2007-12-28 11:36:39

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: AD Integration Issues

rhooo
Login Field: glpi -> samaccountname

Lastname : sn
Firstname: givenname


Xavier Caillaud
Blog GLPI Infotel

Offline

#27 2007-12-28 11:38:49

dhiraj
Member
From: INDIA
Registered: 2007-12-06
Posts: 77

Re: AD Integration Issues

I dont really get this .

I have configured user "glpi" in the AD , Do u mean to say

Login Field: glpi -> glpi

Lastname : sn
Firstname: glpi


OS : Fedora Core 7
GLPI : 0.7             OCS-NG : 4100
Web Server : Apache 2.2.3 DB: MySql 5.0.27   
Langage : PHP 5.2.4  Syslog-NG: 2.0.5

Offline

#28 2007-12-28 11:40:14

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: AD Integration Issues

login field = adsi edit field to verify his login so it's : samaccountname

and for add his firstname and lastname in glpi ->
Lastname : sn
Firstname: givenname

use my config example :

http://www.glpi-project.org/forum/viewt … 496#p45496


Xavier Caillaud
Blog GLPI Infotel

Offline

#29 2007-12-28 11:44:45

dhiraj
Member
From: INDIA
Registered: 2007-12-06
Posts: 77

Re: AD Integration Issues

Still nt working, honestly speaking I m nt getting anythingCan i see any screenshot of a wrking config


OS : Fedora Core 7
GLPI : 0.7             OCS-NG : 4100
Web Server : Apache 2.2.3 DB: MySql 5.0.27   
Langage : PHP 5.2.4  Syslog-NG: 2.0.5

Offline

#30 2007-12-28 11:47:14

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: AD Integration Issues

can you go on irc channel #glpi on freenode.net ?


Xavier Caillaud
Blog GLPI Infotel

Offline

#31 2007-12-28 11:47:16

dhiraj
Member
From: INDIA
Registered: 2007-12-06
Posts: 77

Re: AD Integration Issues

OK FINALLY its says TEST Successful smile


OS : Fedora Core 7
GLPI : 0.7             OCS-NG : 4100
Web Server : Apache 2.2.3 DB: MySql 5.0.27   
Langage : PHP 5.2.4  Syslog-NG: 2.0.5

Offline

#32 2007-12-28 11:48:32

dhiraj
Member
From: INDIA
Registered: 2007-12-06
Posts: 77

Re: AD Integration Issues

I was messing with the variables and root DN smwhere. OK now what next ?? I need to import users from the AD to GLPI ?? or wil they be done automatically ??


OS : Fedora Core 7
GLPI : 0.7             OCS-NG : 4100
Web Server : Apache 2.2.3 DB: MySql 5.0.27   
Langage : PHP 5.2.4  Syslog-NG: 2.0.5

Offline

#33 2007-12-28 11:52:02

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: AD Integration Issues

Cool big_smile

So now you can import ad users or if the user log on , it will be added.
And next you must create a rule for entity and profile affectation.


Xavier Caillaud
Blog GLPI Infotel

Offline

#34 2007-12-28 11:54:37

dhiraj
Member
From: INDIA
Registered: 2007-12-06
Posts: 77

Re: AD Integration Issues

I open the ldap.php page as u said ,when I click on "Import Users"  it shows me something like this

Search filter for users
(glpi -> samaccountname=user)

No users to be imported


OS : Fedora Core 7
GLPI : 0.7             OCS-NG : 4100
Web Server : Apache 2.2.3 DB: MySql 5.0.27   
Langage : PHP 5.2.4  Syslog-NG: 2.0.5

Offline

#35 2007-12-28 11:59:01

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Offline

#36 2007-12-28 12:15:16

dhiraj
Member
From: INDIA
Registered: 2007-12-06
Posts: 77

Re: AD Integration Issues

Again not getting what u are trying to say sad (dont understand French using Google translate)


OS : Fedora Core 7
GLPI : 0.7             OCS-NG : 4100
Web Server : Apache 2.2.3 DB: MySql 5.0.27   
Langage : PHP 5.2.4  Syslog-NG: 2.0.5

Offline

#37 2007-12-28 12:33:42

dhiraj
Member
From: INDIA
Registered: 2007-12-06
Posts: 77

Re: AD Integration Issues

Now I get this error when i try to import users

PHP ERROR: ldap_search() [function.ldap-search]: Search: Bad search filter in /var/www/html/helpdesk/inc/ldap.function.php at line 180


OS : Fedora Core 7
GLPI : 0.7             OCS-NG : 4100
Web Server : Apache 2.2.3 DB: MySql 5.0.27   
Langage : PHP 5.2.4  Syslog-NG: 2.0.5

Offline

#38 2007-12-28 12:38:32

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: AD Integration Issues

(&(objectCategory=CN=Person,CN=Schema,CN=Configuration,DC=MYDOMAIN,DC=fr)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))

Xavier Caillaud
Blog GLPI Infotel

Offline

#39 2007-12-28 14:04:32

dhiraj
Member
From: INDIA
Registered: 2007-12-06
Posts: 77

Re: AD Integration Issues

I have to put the search filter as

the quoted text or


like this

(glpi -> &(objectCategory=CN=Person,CN=Schema,CN=Configuration,DC=MYDOMAIN,DC=fr)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))


OS : Fedora Core 7
GLPI : 0.7             OCS-NG : 4100
Web Server : Apache 2.2.3 DB: MySql 5.0.27   
Langage : PHP 5.2.4  Syslog-NG: 2.0.5

Offline

#40 2007-12-28 14:07:30

dhiraj
Member
From: INDIA
Registered: 2007-12-06
Posts: 77

Re: AD Integration Issues

PS : I have Windows 2003 AD


OS : Fedora Core 7
GLPI : 0.7             OCS-NG : 4100
Web Server : Apache 2.2.3 DB: MySql 5.0.27   
Langage : PHP 5.2.4  Syslog-NG: 2.0.5

Offline

#41 2007-12-28 14:31:06

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: AD Integration Issues

replace DC=MYDOMAIN with your domain


Xavier Caillaud
Blog GLPI Infotel

Offline

#42 2007-12-28 15:16:07

dhiraj
Member
From: INDIA
Registered: 2007-12-06
Posts: 77

Re: AD Integration Issues

I have already done that , i think there is sm issue here with the filter string.

I have done one thing , I have started my LDAP Browser
and searched at my BASE DN with the filter

(objectCategory=CN=Person,CN=Schema,CN=Configuration,DC=MYDOMAIN,DC=net)

I get to see 1000 users defined in my AD

and when I put the complete string I dont get a single record so one thing is for sure that

my search string is only the one mentioned above .


Now on to the next case

On the ldap.import.php page shuld I give something like this


(objectCategory=CN=Person,CN=Schema,CN=Configuration,DC=powergrid,DC=net) ???


OS : Fedora Core 7
GLPI : 0.7             OCS-NG : 4100
Web Server : Apache 2.2.3 DB: MySql 5.0.27   
Langage : PHP 5.2.4  Syslog-NG: 2.0.5

Offline

#43 2007-12-28 15:17:32

dhiraj
Member
From: INDIA
Registered: 2007-12-06
Posts: 77

Re: AD Integration Issues

or maybe

(glpi -> samaccountname=(objectCategory=CN=Person,CN=Schema,CN=Configuration,DC=powergrid,DC=net))

PS : IS the & required in filter ???


OS : Fedora Core 7
GLPI : 0.7             OCS-NG : 4100
Web Server : Apache 2.2.3 DB: MySql 5.0.27   
Langage : PHP 5.2.4  Syslog-NG: 2.0.5

Offline

#44 2007-12-29 01:57:24

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: AD Integration Issues

try with no filter ?


Xavier Caillaud
Blog GLPI Infotel

Offline

#45 2007-12-29 06:44:46

dhiraj
Member
From: INDIA
Registered: 2007-12-06
Posts: 77

Re: AD Integration Issues

i tired with no filter , i guess it takes

(glpi -> samaccountname=*)

as the default filter . Hence I get the same error

PHP ERROR: ldap_search() [function.ldap-search]: Search: Bad search filter in /var/www/html/helpdesk/inc/ldap.function.php at line 180


OS : Fedora Core 7
GLPI : 0.7             OCS-NG : 4100
Web Server : Apache 2.2.3 DB: MySql 5.0.27   
Langage : PHP 5.2.4  Syslog-NG: 2.0.5

Offline

#46 2007-12-29 16:11:41

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: AD Integration Issues

No you don't understand, this is on your ad configuration that you insert your filter not in import/sync field on ldap.php.


Xavier Caillaud
Blog GLPI Infotel

Offline

#47 2007-12-31 09:04:11

dhiraj
Member
From: INDIA
Registered: 2007-12-06
Posts: 77

Re: AD Integration Issues

Ok i have tried as you said,  I have put the connection filter in the AD page as directed ,

Now when I try to import users , I dont get any error smile but it says "No Users to be Imported" sad.

I even tried through any user defined in the AD but I m nt able to login and get the error

"unsuccessful authorization in LDAP"


Plz suggest something I need to close this urgently

Last edited by dhiraj (2007-12-31 09:38:54)


OS : Fedora Core 7
GLPI : 0.7             OCS-NG : 4100
Web Server : Apache 2.2.3 DB: MySql 5.0.27   
Langage : PHP 5.2.4  Syslog-NG: 2.0.5

Offline

#48 2007-12-31 11:38:50

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: AD Integration Issues

so i think the user you yuse to read the AD in your AD setup in glpi is false or there is a problem. (rootdn & password)


Xavier Caillaud
Blog GLPI Infotel

Offline

#49 2007-12-31 12:06:31

dhiraj
Member
From: INDIA
Registered: 2007-12-06
Posts: 77

Re: AD Integration Issues

I hv nt given any special permissions to the ad user "glpi" in the AD , do i need to give any special perm to him ??


OS : Fedora Core 7
GLPI : 0.7             OCS-NG : 4100
Web Server : Apache 2.2.3 DB: MySql 5.0.27   
Langage : PHP 5.2.4  Syslog-NG: 2.0.5

Offline

#50 2007-12-31 12:08:24

dhiraj
Member
From: INDIA
Registered: 2007-12-06
Posts: 77

Re: AD Integration Issues

rootdn and pass seems to be no issue coz the test connection would not be successful otherwise.

Plus I acted on ur advice and tested the user with LDAP Browser, this AD user can search info but cannot edit anything , it is just defined in the users OU of the AD


OS : Fedora Core 7
GLPI : 0.7             OCS-NG : 4100
Web Server : Apache 2.2.3 DB: MySql 5.0.27   
Langage : PHP 5.2.4  Syslog-NG: 2.0.5

Offline

Board footer

Powered by FluxBB