Security

Unable to authenticate users in active directory

jeffwarn
Explorer

I have splunk configured to authenticate against AD. I have my service account set and the following options configured:

User Base DN: OU=Users,OU=My City,OU=North America,DC=us,DC=mydomain,DC=com

User Name Attribute: samaccountname

Group Mapping: memberof

Group Base DN: OU=Groups,OU=My City,OU=North America,DC=us,DC=mydomain,DC=com

Group Name Attribute: cn

Group Member Attr: member

Once saved, I can get a list of my groups just fine when I click on the "Configure LDAP Role Mapping" link. This is where it gets strange. I have a few users in a group called "Product Ops". In this group, there are about 10 users defined (example):

CN=Some Person,OU=Users,OU=My City,OU=North America,DC=us,DC=mydomain,DC=com

I assign this group "Product Ops" to the user role and click save. No users are able to log in and I find something like this in the logs:

splunkd.log:03-14-2011 16:04:09.722 WARN AuthenticationManagerLDAP - User 'someuser' had 6 values for mapping attribute 'memberof'. Group members should be uniquely defined.

splunkd.log:03-14-2011 16:04:09.724 ERROR AuthenticationManagerLDAP - User 'someuser' has matching LDAP groups, but none are mapped to Splunk roles

Now if I added a new group in my AD called "Splunk Users" and instead of putting the user directly into the group and just move the "Product Ops" into is, the user can log in just fine.

What am I missing here? I'm at the point where I'd much rather just link individual users from AD to splunk roles (can this be done?)

Tags (2)
1 Solution

gkanapathy
Splunk Employee
Splunk Employee

The Group Mapping attribute in AD should be left blank, or set to "distinguishedName" or "dn". This attribute specifies what field within the user record maps to the Group Member Attribute within the group. In AD (and LDAP in general) groups are not stored on the user object, but on the group object. The AD users memberof attribute is a synthetic attribute based on the group member attribute

View solution in original post

gkanapathy
Splunk Employee
Splunk Employee

The Group Mapping attribute in AD should be left blank, or set to "distinguishedName" or "dn". This attribute specifies what field within the user record maps to the Group Member Attribute within the group. In AD (and LDAP in general) groups are not stored on the user object, but on the group object. The AD users memberof attribute is a synthetic attribute based on the group member attribute

jeffwarn
Explorer

Thanks that did it. On a side note, that actually broke the way it was working (embedded groups), but I saw that technically isn't supported at the moment.

0 Karma

praveenkpatidar
Explorer

Perfect It works for me after 3 days of headache.
THanks a ton !!!

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

SOK it to Me: Top 3 Benefits of Using Splunk Operator on Kubernetes that’ll Make ...

    Thursday, July 9, 2026  |  11:00AM–12:00PM PDT Duration: 1 hour (includes Q&A) Managing can feel like a ...

Upgrade Prep for 10.4, Network Observability Deep Dives, and More from Splunk Lantern

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...

Splunk Developer Day announcements: AI agents, MCP tools, Forecasting, and Custom ...

Splunk Developer Day was packed with product and platform updates for developers building in the AI ...