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

#1 2009-11-02 20:20:52

miyorni
Member
Registered: 2009-11-02
Posts: 6

Error when importing from ldap .

Hi,
since 1 week i got problems to import new users from AD.
i have an error when i want to import new users from ldap and all new users are not imported
when i sync the users already imported i got no error .

in debug mode it give me this message :

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

and in the logs i got this one :

02-11-2009 18:35
Warning(2): ldap_search() [<a href='function.ldap-search'>function.ldap-search</a>]: Partial search results returned: Sizelimit exceeded
Backtrace :
/var/www/glpi/inc/ldap.function.php:427        ldap_search()
/var/www/glpi/inc/ldap.function.php:524        getAllLdapUsers()
/var/www/glpi/front/ldap.import.php:108        showLdapUsers()

apparently i've got a field that exeed the size limit in the new users
any ID how to solve this issue will be appretiated .

thanks in advance

Bernard

Offline

#2 2009-11-02 20:49:16

miyorni
Member
Registered: 2009-11-02
Posts: 6

Re: Error when importing from ldap .

I have alredy tried and applied this tutorial:
http://www.glpi-project.org/wiki/doku.php?id=en:ldap

Offline

#3 2009-11-02 21:05:12

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

Re: Error when importing from ldap .

2 problems :

Bad filter

and sizelimit :
this is not an error from GLPI but something you have to configure on your AD : the ldap request must return more values that the maximum limit
please read : http://glpi-project.org/wiki/doku.php?id=en:ldap

1000 query limit


Xavier Caillaud
Blog GLPI Infotel

Offline

#4 2009-11-03 15:56:39

miyorni
Member
Registered: 2009-11-02
Posts: 6

Re: Error when importing from ldap .

I did this already .
my question is
is there any way to see witch record is blocking .
Bernard

Offline

#5 2009-11-03 19:17:32

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

Re: Error when importing from ldap .

what is your filter into ldap configuration into glpi ?


Xavier Caillaud
Blog GLPI Infotel

Offline

#6 2009-11-03 21:45:09

miyorni
Member
Registered: 2009-11-02
Posts: 6

Re: Error when importing from ldap .

hi,
my filter is
(&(objectClass=user)(objectCategory=person)(!userAccountControl: 1.2.840.113556.1.4.803:=2)))

after some try when i put only
(&(objectClass=user)(objectCategory=person)   without the disabled user filter it work .

strange ..!

any ideas

thanks in advance for your reactivity .

Bernard

Last edited by miyorni (2009-11-03 21:45:33)

Offline

#7 2009-11-03 22:01:47

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

Re: Error when importing from ldap .

ldap or ad ?


Xavier Caillaud
Blog GLPI Infotel

Offline

#8 2009-11-04 17:11:27

miyorni
Member
Registered: 2009-11-02
Posts: 6

Re: Error when importing from ldap .

MS Active Directory 2008

Bernard

Offline

#9 2009-11-04 19:30:24

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

Re: Error when importing from ldap .

(!userAccountControl: 1.2.840.113556.1.4.803:=2) with AD 2003 says : not users desactivated.

In windows 2008 perhaps this is not the same attribute.


Xavier Caillaud
Blog GLPI Infotel

Offline

Board footer

Powered by FluxBB