Hi all,
I have gotten my ratticdb installation to authenticate against active directory properly, but I am having some difficulty in limiting the users which are allowed to authenticate. I have created a security group in AD entitled "ratticdb", and then added the users which should be allowed to auth against ratticdb, however this is not working (in that it allows any user with verifiable credentials in).
my local.cfg is as follows (edited for privacy):
[ldap]
# LDAP server details
binddn = ld...@example.local
bindpw = password
userbase = CN=ratticdb,DC=example,DC=local ## limit login to users within ratticdb security group
userfilter = (sAMAccountName=%(user)s)
groupbase = OU=rattic,DC=example,DC=local ## only display groups from within the rattic OU
groupfilter = (objectClass=group)
grouptype = ActiveDirectoryGroupType
staff = CN=Domain Admins,CN=Users,DC=example,DC=local ## give domain admins staff privileges
requirecert = True
In this scenario, my test user which is NOT a member of 'ratticdb' can login successfully to rattic. Should I be able to limit logins in this fashion (as I typically can with other LDAP based auth), or am I approaching it incorrectly?
Secondarily, when a user logs in the Groups listing shows every group that the user is a member of. Instead of taking that approach (which can include a LOT of random groups/email lists), I had hoped to create a new OU entitled "rattic", and then create a few security groups under there such as "rattic-dev", "rattic-sysadmin", etc. Hopefully you can glean what I am trying to do based on my local.cfg above, but again, it is not working as I had thought it might.
Any insight would be helpful!
Thanks,
Nick