LDAP

Traccar server can authenticate users via an external LDAP (Lightweight Directory Access Protocol) server. The authentication process happens in two steps:

If both steps are successful, the user is considered authenticated.

There is still an internal Traccar user representation, which is created on first user login. The server administrator can configure adminGroup/adminFilter to automatically give the user admin rights when they are registered.

Configuration

Examples

Search filter to log in to Active Directory by either login or email

<entry key='ldap.searchFilter'>(|(sAMAccountName=:login)(mail=:login))</entry>

According to the next filter, the user must be a member of the Traccar users group or its nested groups (!) and not disabled. It is valid for Active Directory.

<entry key='ldap.searchFilter'>(&amp;(sAMAccountName=:login)(memberOf:1.2.840.113556.1.4.1941:=CN=Traccar users,OU=Traccar,OU=Security,DC=domain,DC=local)(!(UserAccountControl:1.2.840.113556.1.4.803:=2)))</entry>