Duplicate LDAP users

8 views
Skip to first unread message

Daniel Laird

unread,
Jul 29, 2010, 5:50:04 AM7/29/10
to reviewboard-dev
All,

I am having an issue where I get multiple user accounts created when
people are logging in using LDAP. This is now starting to cause a
headache as nearly everyone at one time or another uses the incorrect
case of their username to login.
The LDAP login seems to work regardless but the local account created
by ReviewBoard is case sensitive.

Can anyone help me to make the reviewboard server make everything
lowercase before trying to login. This would still work with LDAP and
would mean I stop getting multiple user accounts.
Which means the users of my system moan that they have no review
requests - they log out and in with different cases and suddenly they
have review requests.

I hope you can help
Many thanks
Daniel Laird

Christian Hammond

unread,
Jul 29, 2010, 6:32:44 AM7/29/10
to reviewb...@googlegroups.com, revie...@googlegroups.com
Hi Daniel,

I'm CC'ing revie...@googlegroups.com, as people may have hit this there and have some workaround.

So, if I understand this correctly, your LDAP server doesn't care about the case sensitivity, so it happily accepts anything, but Review Board doesn't realize they're all the same and are creating different user accounts.

One thing you may want to try is to open reviewboard/accounts/backends.py, find LDAPBackend.get_or_create_user, and change:

    user = User.objects.get(username=username)

to:

    user = User.objects.get(username__iexact=username)

Then restart your server and see if the problem goes away. You'll of course still have the duplicate accounts that were created, but hopefully you won't be able to create any new duplicates.

Christian

--
Christian Hammond - chi...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com

Christian Hammond

unread,
Apr 1, 2012, 5:06:34 PM4/1/12
to revie...@googlegroups.com, revie...@googlegroups.com, reviewb...@googlegroups.com
What version of Review Board are you using? Thought we fixed this..

Christian


On Apr 1, 2012, at 13:28, geert <glin...@dynamiccontrols.com> wrote:

Hi All,

We've got the same problem. We use Windows AD to authenticate and for it usernames jblog, JBlog and JBLOG are the same, but for reviewboard they are three different users.

Is there a way to convert the username to all lowercase inside reviewboard?


Cheers - Geert


--
Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~----------~----~----~----~------~----~------~--~---
To unsubscribe from this group, send email to reviewboard...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en
Reply all
Reply to author
Forward
0 new messages