Add LDAP user to a group automatically when creating the account

negrisoli7 years ago

I am using LDAP authentication and it works fine.

However I need to wait for the user to log in first to be able to add it to a group.

Is it possible to automatically add new users to a group when they first log in?

Anton Tananaev7 years ago

No, it's not possible at the moment.

Lukas Z.6 years ago

@negrisoli could You provide sample LDAP configuration in traccar.xml? Thank you

negrisoli6 years ago

Hi Lukas.

[I changed some data, for obvious reasons]

    <entry key='ldap.enable'>true</entry>
    <entry key='ldap.server'>192.168.0.10</entry>
    <entry key='ldap.port'>389</entry>
    <entry key='ldap.base'>DC=company,DC=local</entry>
    <entry key='ldap.idAttribute'>sAMAccountName</entry>
    <entry key='ldap.nameAttribute'>cn</entry>
    <entry key='ldap.mailAttribute'>mail</entry>
    <entry key='ldap.user'>CN=traccar,CN=Users,DC=company,DC=local</entry>
    <entry key='ldap.password'>xxxxxxxxxx</entry>