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 2017-10-05 16:19:01

robmura76
Member
Registered: 2017-09-29
Posts: 9

LDAP user not found

Hi,
I'm using GLPI 9.2 on Ubuntu 16.04.3 and PHP v7.0.22.

If I try to update LDAP users and using as BASE DN (I change names for privacy):
distinguishedName: OU=Progettazione,OU=MyOU,OU=Utenti,OU=MyOU,DC=Domain,DC=it

and query:
(& (samaccountname=*) (&(objectClass=user)(objectCategory=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2))))

It NOT founds all users on that OU.

On the same server I try to a LDAP search using the same user:

ldapsearch -h 172.16.1.11 -p 389 -b "OU=Progettazione,OU=MyOU,OU=Utenti,OU=MyOU,DC=domain,DC=it" -s sub "objectclass=user" -D 'cn=username,dc=domain,dc=it'

In Debug mode it reports to me:
PHP Notice: Undefined index: modifytimestamp in /var/www/html/glpi/inc/authldap.class.php at line 1630
PHP Notice: Undefined index: modifytimestamp in /var/www/html/glpi/inc/authldap.class.php at line 1645

removing ['modifytimestamp'] the is not errors, but it not found all users.

best regards

Roberto Mura

Last edited by robmura76 (2017-10-05 16:37:09)

Offline

#2 2017-10-06 08:36:33

bmichelsz
Member
From: Slovakia
Registered: 2007-10-20
Posts: 37

Re: LDAP user not found

Hello,

and what about simply (& (samaccountname=*) (objectClass=user))?


Debian 11, GLPI 10.0.6, OCS 2.3.1, MariaDB 10.5.18, Apache 2.4.52, PHP 7.4.33

Offline

#3 2017-10-06 08:44:27

robmura76
Member
Registered: 2017-09-29
Posts: 9

Re: LDAP user not found

Hi,
it report less result:

with: (& (samaccountname=*) (objectClass=user)) = 336

(& (samaccountname=*) (&(objectClass=user)(objectCategory=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))) = 444

regards

Offline

#4 2017-10-06 09:40:12

robmura76
Member
Registered: 2017-09-29
Posts: 9

Re: LDAP user not found

WORK AROUND:

My users was synconized from a previus version.
I select all on admin => users => select all => force sync

now when I search for users on LDAP discovery it report all users!..

Offline

#5 2017-10-09 10:48:50

marketgoal
Member
Registered: 2017-10-09
Posts: 1
Website

Re: LDAP user not found

Didn't understand the query:
(& (samaccountname=*) (&(objectClass=user)(objectCategory=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2))))

Offline

#6 2017-10-10 11:15:31

robmura76
Member
Registered: 2017-09-29
Posts: 9

Re: LDAP user not found

marketgoal wrote:

Didn't understand the query:
(& (samaccountname=*) (&(objectClass=user)(objectCategory=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2))))

is the query that put the system if you do not select nothing

Offline

Board footer

Powered by FluxBB