-
Notifications
You must be signed in to change notification settings - Fork 56
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
How to handle spaces in user names? #53
Comments
Does the cn or uid field hold spaces on the server? I.e. does an ldapsearch On Fri, 2 Oct 2015, 07:53 Joshua Pereyda [email protected] wrote:
|
Yes, here's a sample from ldapsearch (again filtered for privacy):
I think this is because I'm talking to an Active Directory server. I've hit a lot of bumps but I've almost got it working. |
FYI the ignore names on write workaround seems to work fine. I haven't gotten all the other bugs worked out yet, but I can submit a patch. I imagine other LDAP systems have a convention for this situation, though. |
We could add a command to choose to either ignore names with whitespace, or apply a transformation function. |
I don't know why my location's LDAP server is giving me user names with spaces, but it causes the update command to fail (at least the first time). Sample debug output (names tweaked for privacy):
On the error
^U^@^ARose Rosey:*:::::::0^@^E^@^A01115^V^@^A
, so it's not being read back properly..Rose
and.Proj
, with the second half truncated.Wait a minute
Unix shortnames can't include spaces anyway, right?
Proposed Solutions:
Suggestions welcome. 2 seems like the right thing to do to me.
More error text
The text was updated successfully, but these errors were encountered: