Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Sync mailaddress form ldap after login #143

Open
devbysb opened this issue May 19, 2017 · 2 comments
Open

Sync mailaddress form ldap after login #143

devbysb opened this issue May 19, 2017 · 2 comments

Comments

@devbysb
Copy link

devbysb commented May 19, 2017

Hi, I want to know if it's possible to sync mail address form ldap when the user is clicked on login button ?
Thanks

@devbysb
Copy link
Author

devbysb commented Jun 1, 2017

Hi , i have tried to add this
` attributes: # Specify ldap attributes mapping [ldap attribute, user object method]
- { ldap_attr: uid, user_method: setUsername } # Default

- { ldap_attr: cn, user_method: setName } # Optional

       - { ldap_attr: mail,   user_method: setEMail }     # Optional

- { ldap_attr: ..., user_method: ... } # Optional

service:
    user_hydrator: fr3d_ldap.user_hydrator.default # Overrides default user hydrator`

On my config but it's not update the mailaddress

@jenszahner
Copy link

As far as I found out in source code, the attribute mapping / hydration will only by done if the user does not yet exist in the database. Take a look at LdapManager.php lines 48.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants