Bad search filter
-
Hi, I’m trying to get this plugin to work, and it’s authenticating correctly but fails to actually login with the user. I thought maybe it was an issue with the email not being set for some of the users, but it still fails even after making sure they all have sn, givenname, and mail set. I’m getting a “bad search filter” error, so I’m guessing that has something to do with it. I tried the default filter and then put in a different one just in case, but the results are the same:
Default filter:
Account filter – (objectClass=*)
Error I’m getting – Warning: ldap_search(): Search: Bad search filter in C:\inetpub\wwwroot\mysite.com\wp-content\plugins\wpdirauth\wpDirAuth.php on line 1641
Login failed message – Directory authentication initially succeeded, but no valid profile was found (search procedure). [(&(samAccountName=myDomain\myUsername)(objectClass=*))]Modified filter:
Account filter – (&(objectclass=user)(objectcategory=person))
Error I’m getting – Warning: ldap_search(): Search: Bad search filter in C:\inetpub\wwwroot\mysite.com\wp-content\plugins\wpdirauth\wpDirAuth.php on line 1641
Login failed message – Directory authentication initially succeeded, but no valid profile was found (search procedure). [(&(samAccountName=myDomain\myUsername)(&(objectclass=user)(objectcategory=person)))]Does anyone have any ideas what could be keeping this from working?
- The topic ‘Bad search filter’ is closed to new replies.