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

Users with commas in their CNs cause errors #45

Closed
jaredjennings opened this issue Oct 6, 2015 · 3 comments
Closed

Users with commas in their CNs cause errors #45

jaredjennings opened this issue Oct 6, 2015 · 3 comments

Comments

@jaredjennings
Copy link

My DN is cn=Jennings\, Jared,ou=Foo,ou=Bar,ou=Baz,dc=example,dc=org. That is, my common name is Jennings, Jared. I'm in an Active Directory. ldap_fluff 0.3.2-1.el7 can't tell that I exist, and throws an error if you ask it for a user list of any group I'm in.

It appears that the root cause is that LdapFluff::GenericMemberService#find_by_dn splits the DN on commas, takes the first comma-delimited piece, and assumes it's the whole CN (or uid, or some attribute). So entry ends up being cn=Jennings\, and base ends up being Jared,ou=Foo,ou=Bar,ou=Baz,dc=example,dc=org. That value for base is not a syntactically valid DN, besides there being no users with CN Jennings\.

@jaredjennings
Copy link
Author

I have a failing test and a fix, and perhaps this is one of those things where a simple pull request might do, but I'm behind a firewall I haven't used GitHub from before, so I'll just file this and then worry about getting the patches out.

@domcleal
Copy link
Contributor

domcleal commented Oct 7, 2015

See also #38, which is incomplete.

@jaredjennings
Copy link
Author

Having figured out the firewall issues, and taking some important cues from #38 (thanks, @brgerig) I've filed PR #46 to see if it will ... travis properly. GitHub appears to have unified pull requests and issues more than I remember, so I'm closing this issue and referring further discussion to #46.

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