Sorry, busy few days.
You would need to edit reviewboard/accounts/backends.py and look for ActiveDirectoryBackend.
In it, you will find a ‘get_or_create_user’ function.
I’d start by adding a logging statement just below where username is assigned:
logging.debug(‘ActiveDirectoryBackend.get_or_create_user: username = %s’, username)
Then, after the ‘user =‘ line:
logging.debug(‘ActiveDirectoryBackend.get_or_create_user: Found user: %r’, user)
Then, before the ‘return user’:
logging.debug(‘ActiveDirectoryBackend.get_or_create_user: Created new user %r’, user)
Then, change the ‘except’: to:
except Exception as e:
logging.error(‘ActiveDirectoryBackend.get_or_create_user: Failed to create user: %s’, e, exc_info=1)
Make sure to keep all indentation as spaces, multiples of 4.
You’ll then need to restart Apache, try to add a user in LDAP, and see what’s in the log.
The users will not appear in the auto-complete list until the user has either logged in or you’ve explicitly typed their username and added them at least once.