trilbymedia / grav-plugin-login-ldap

Grav LDAP login plugin
https://trilby.media
MIT License
10 stars 13 forks source link

Grav username defaults to the LDAP users full DN #28

Open viharm opened 1 year ago

viharm commented 1 year ago

Firstly, I'm so happy that I can simply integrate Grav into my existing authentication infrastructure. Thanks.

I've configured the plugin based on the instructions provided. I've also configured...

save_grav_user: true
store_ldap_data: true

The authentication works perfectly. However, the user account created within Grav has the user's full DN as the username.

So if I login with user baloo, then the Grav account username created would be uid=baloo,ou=users,dc=domain,dc=tld

Moreover, this field is read-only within the admin interface.

Am I doing something wrong?