Active Directory Sync and Group Search

Tupp3 years ago

I'm having problems connecting to LDAP (not LDAPS) on port 389 with the Traccar 4.15 and having searches done to groups via sAMAccountName. I can see requests to the AD server using wireshark and my service account connecting. When a user trys to login I see Search results (0) which leads me to believe that my ldap.searchFilter and ldap.adminFilter are incorrect. Please see below for my conf file code. Any help would be greatly appreciated!

    <entry key='ldap.idAttribute'>sAMAccountName</entry>
    <entry key='ldap.nameAttribute'>sAMAccountName</entry>
    <entry key='ldap.mailAttribute'>sAMAccountName</entry>
    <entry key='ldap.searchFilter'>(memberOf:1.2.840.113556.1.4.1941:=CN=Traccar_Users,OU=Traccar,OU=Security,DC=prod,DC=ourdomain)(!(UserAccountControl:1.2.840.113556.1.4.803:=2)))</entry>
    <entry key='ldap.adminFilter'>(&(sAMAccountName=:login)(memberOf:1.2.840.113556.1.4.1941:=CN=Traccar_Admins,OU=Traccar,OU=Security,DC=prod,DC=ourdomain)(!(UserAccountControl:1.2.840.113556.1.4.803:=2)))</entry>