ed7
(ed)
November 9, 2021, 4:43pm
1
Hello,
I am new in GrayLog, I am trying to set it up with AD. In the user Synchronization I do have:
Base DN: OU=users,dc=my,dc=server,dc=local
I want it to sync with users that are on a specific security groups.
Could yo tell me how can I set it up so graylog can get the users from 2 securitygroups and not from all users? I do not know how I can setup adding only the security groups.
Or if I can add the groups, How can I point it to users only?
tmacgbay
(Tmacgbay)
November 9, 2021, 6:36pm
2
in your search pattern you can put something like this:
(&(objectClass=user)(sAMAccountName={0})(objectCategory=person)(memberOf=CN=gGL_admins,OU=ThunderDrum,OU=ymrt,DC=Myco,DC=internal))
ed7
(ed)
November 10, 2021, 9:27am
3
Hi,
So to add 2 security groups this is what it needs to be right? It looks bigger as my distinguishedname looks like that.
Search Base DN:
OU=Users,DC=mydc,DC=mydc,DC=mydc,DC=local
Search Pattern:
(&(objectClass=user)(sAMAccountName={0})(objectCategory=person)(memberOf=CN=mysecuritygroup1 & memberOf=mysecuritygroup2,OU=Groups,OU=Global,DC=mydc,DC=mydc,DC=mydc,DC=local))
Name Attribute: userPrincipalName
Full Name Attribute: displayName
Default Roles: Reader
ed7
(ed)
November 10, 2021, 11:03am
4
Hello,
Just to let you know that I have managed to make it work as expected. We can now log in with our AD accounts.
Regards,
tmacgbay
(Tmacgbay)
November 10, 2021, 4:06pm
5
Great! Please mark the post that has the answer in it or post up what you did for a solution for future users to search against!
ed7
(ed)
November 11, 2021, 2:51pm
6
The solution for my case:
As I wanted to search for users in two different security groups, below is the solution:
Search Pattern:
(&(objectCategory=user)(objectClass=person)(sAMAccountName={0})(|(memberOf=CN=mysecuritygroup,OU=Mygroup,OU=MyOU,DC=mydc,DC=mydc,DC=mydc,DC=mydc)(memberOf=CN=mysecuritygroup,OU=mygroup,OU=myOU,DC=mydc,DC=mydc,DC=mydc,DC=mydc)))
Mine looks bigger as my distinguishedname looks like that.
Always see your distiguishedname
1 Like
system
(system)
Closed
November 25, 2021, 2:51pm
7
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.