Hi Pablo, I can't paste the exact source code, because I have specifics in the code that match up to my company. However, explaining my approach is fairly simple:
a) I have a cron job that runs regularly (hourly/daily, I don't remember) which grabs the list of users that are supposed to be active, and jams that directly into the database. This involved a small amount of reverse engineering of the database schema. Sounds like you may not need that part. b) I grabbed the code from backends.py, specifically for the LDAPBackend, created my own copy, and modified the "get_or_create_user()" method to look like this: def get_or_create_user(self, username): username = username.strip() try: user = User.objects.get(username=username) return user except User.DoesNotExist: pass return None That way, if a user hasn't been added to the database, it will not be added during login. c) Made sure my new file was on the path for ReviewBoard, then configured the authentication administrative setting to use my new file. Eric. On Wednesday, March 23, 2011 8:29:35 AM UTC-7, Pablo G wrote: > > Hi guys. > > I have a RB installation validating against an LDAP server. It looks like > RB creates users in the local database whenever a user is correctly > authenticated with LDAP. What I need is a way to disable this automatic > user creation, so the site admin can decide which users in the full LDAP > repository can access the RB. Is this possible? I am on RB 1.5.2. > > thanks a lot. > > -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.