D
D
dake12312016-04-22 11:52:08
PHP
dake1231, 2016-04-22 11:52:08

LDAP Search operations error. How to fix?

Hello! There is a script that imports data from AD to the database of our site. It worked properly until today, now it swears at the filter. Filter example:

(&(objectCategory=person)(objectClass=user)(!(userAccountControl:1.2.840.113556.1.4.803:=2))(lastlogon>=131057352000000000))

What is strange when you are looking for one user, it works
(&(objectCategory=person)(objectClass=user)(!(userAccountControl:1.2.840.113556.1.4.803:=2))(lastlogon>=131057352000000000)(samaccountname=username))

What could be the problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question