OK, I modified the LDAP plugin. This is the schema I'm using now: 'XXX' => array( 'user' => array( 'filter' => '(objectClass=person)', 'first' => 'givenName', 'last' => 'sn', 'full' => 'cn', 'email' => 'mail', 'username' => 'uid', 'dn' => 'uid={username},{search_base}', 'search' => '(&(objectClass=person)(|(uid={q}*)(cn={q}*)))', 'lookup' => '(&(objectClass=person)({attr}={q}))', ), ),But that's not enough to login. I found out that after authentication the plugin searches the agent in local database, not in LDAP. The agent does not exist, so it fails.Is it necessary to add agents to osticket before they want to authenticate via LDAP?