You are not logged in.
Pages: 1
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
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
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
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
Didn't understand the query:
(& (samaccountname=*) (&(objectClass=user)(objectCategory=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2))))
Offline
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
Pages: 1