# Graylog doesn't map AD Goups

**URL:** <https://community.graylog.org/t/graylog-doesnt-map-ad-goups/13139>\
**Category:** Graylog Central (peer support)\
**Created:** [December 11, 2019, 7:03pm UTC](https://community.graylog.org/t/graylog-doesnt-map-ad-goups/13139 "2019-12-11T19:03:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![atarallo](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@atarallo](https://community.graylog.org/u/atarallo)\
**Post date:** [December 11, 2019, 7:03pm UTC](https://community.graylog.org/t/graylog-doesnt-map-ad-goups/13139/1 "2019-12-11T19:03:56Z")

</div>

I have Graylog 2.3.2 successfully authenticating users against an AD Server. But I can’t map groups. I know [this topic appeared before](https://community.graylog.org/t/ldap-doesnt-map-groups/9070), but haven’t found any successful solution.

**ServerType:** AD  
**Server Address:** ldap://srvdc01:389

USER MAPPING  
**BaseDn:** ou=Usuarios,DC=company,dc=net  
**Search Pattern:** (saMAccount={0})  
**Dispaly Name Attribute:** DisplayName

GROUP Mapping  
**GroupSearch Base DN:** ou=Seguridad,ou=Grupos,DC=company,dc=net  
**Group Search Pattern** (&(objectClass=group)|((cn=Apps_DESA)(cn=GRO_)))  
**Groupname Attribute:** cn

I´ve tested with a simpler Search pattern, just objectClass=group. Without success

---

<div class="post-metadata">

**Author:** ![shoothub](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/shoothub/32/6412_2.png) [@shoothub](https://community.graylog.org/u/shoothub)\
**Post date:** [December 12, 2019, 8:03am UTC](https://community.graylog.org/t/graylog-doesnt-map-ad-goups/13139/2 "2019-12-12T08:03:52Z")

</div>

Are you 100% sure, that groups are located in right OU?  
Because by default AD groups are located under cn=user,dc=company,dc=com

Another issue I see, that you use bad group search pattern, your pattern should be:  
(&(objectClass=group)(|(cn=Apps _DESA)(cn=GRO_)))

You should always check if your ldap filter is right. Easiest way is to open mmc console Active Directory Users and Computers - Saved Searches - New query. In your case, try to simulate your query, filling up field like this: Query root: browse OU Seguridad under OU Grupos. After that click Define Query… in find selectbox choose Custom search and in tab Advanced insert your query. Click OK. And then try to find your groups - click Refresh if you change something in query. That way you can try if your query is OK.  
The last step will be to insert query in graylog.

Check also this great articles:  
[https://social.technet.microsoft.com/wiki/contents/articles/5392.active-directory-ldap-syntax-filters.aspx](https://social.technet.microsoft.com/wiki/contents/articles/5392.active-directory-ldap-syntax-filters.aspx)  
[https://confluence.atlassian.com/kb/how-to-write-ldap-search-filters-792496933.html](https://confluence.atlassian.com/kb/how-to-write-ldap-search-filters-792496933.html)

> **[Active Directory LDAP Query Examples – TheITBros](https://theitbros.com/ldap-query-examples-active-directory/)**
>
> In this short post we'll share some useful examples of LDAP query to Active Directory and show how to execute them

---

<div class="post-metadata">

**Author:** ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jan/32/11_2.png) [@jan](https://community.graylog.org/u/jan)\
**Post date:** [December 12, 2019, 10:14am UTC](https://community.graylog.org/t/graylog-doesnt-map-ad-goups/13139/3 "2019-12-12T10:14:17Z")

</div>

@atarallo

first check what @shoothub wrote and in addition you might want to move away from this ancient version. I do not know how well that ldap group mapping worked in that version …

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [December 26, 2019, 10:14am UTC](https://community.graylog.org/t/graylog-doesnt-map-ad-goups/13139/4 "2019-12-26T10:14:20Z")

</div>

Closed on December 26, 2019, 10:14am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
