Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Displayname missing from LDIF template placeholders #122

Open
awesome-manuel opened this issue Feb 6, 2020 · 6 comments
Open

Displayname missing from LDIF template placeholders #122

awesome-manuel opened this issue Feb 6, 2020 · 6 comments

Comments

@awesome-manuel
Copy link

Would it be possible to also have a {displayname} placeholder that gets filled during user creation?

@blizzz
Copy link
Member

blizzz commented Feb 6, 2020

Not without server/provisioning API changes, as backends do get the userid and a password only for the initial user generation. The user has to exist after this point.

The displayname is provided to the backends somewhat later, so it can be set only later. Delaying the creation is unreliable (would rely on memcache) and can lead ot undefined behaviour (when the LDAP record cannot be written).

@c-nv-s
Copy link

c-nv-s commented Apr 3, 2020

Not without server/provisioning API changes, as backends do get the userid and a password only for the initial user generation. The user has to exist after this point.

The displayname is provided to the backends somewhat later, so it can be set only later. Delaying the creation is unreliable (would rely on memcache) and can lead ot undefined behaviour (when the LDAP record cannot be written).

Would this also be the case if there was a {mail} placeholder for the LDIF template too?
I've been searching the records created on openldap and it looks like emails aren't populated on user creation, even when the option 'an LDAP user must have an email set' is selected.

@blizzz
Copy link
Member

blizzz commented Apr 9, 2020

Would this also be the case if there was a {mail} placeholder for the LDIF template too?

Yes, as said:

as backends do get the userid and a password only for the initial user generation.

@ThyMYthOS
Copy link

ThyMYthOS commented Apr 9, 2020

Could you point us to the hooks that get called on user creation and on update of displayname and mail?

@blizzz
Copy link
Member

blizzz commented May 15, 2020

@Spacelord09
Copy link

Hey! I`m also missing a few placeholders like mail and first / last name.
Any updates to this problem?

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

No branches or pull requests

5 participants