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

Sync not possible when missing first or last name #4

Open
giRobert opened this issue Jan 6, 2020 · 1 comment
Open

Sync not possible when missing first or last name #4

giRobert opened this issue Jan 6, 2020 · 1 comment

Comments

@giRobert
Copy link

giRobert commented Jan 6, 2020

Hey there,

I have many users in my active directory which dont have a first name or dont have a last name.
Since both fields are required in redmine, the sync doesnt allow me to add them to redmine.

Errors:

-- Could not create user 'XYZ': "First name cannot be blank"
-- Could not create user 'XYZ': "Last name cannot be blank"

this is not really an issue of this plugin its more likely a problem of redmine: https://www.redmine.org/issues/29757

But now to my questions. would it be possible that someone tells me how I am able to add some kind of fallback to this plugin? the fallback would be: if there is no first name, use the last name as first name as well. AND if there is no last name, use the first name as las name.

this should be 1-2 lines only in the code right? i dont know anything about ruby but i hope someone can help. i guess the validation must be tricked and the user creation too.

one example:

i have a user called "max" with mail address "max@example.com". I can not import this user becaue he has no last name. the workaround would transform "max" to "max max". looks stupid, but i will be able to use the user....

@tainewoo
Copy link
Owner

Hi @giRobert ,

This restriction is set by Redmine itself.
And for this case, it's better you should refine your LDAP server account setting, because the sAMAccountName, givenName, sn are most important items for LDAP.

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

2 participants