Security

How to get login id of current user ?

Kyeryeon
New Member

Hello

I want to set "User Search Filter" for LDAP

some tool support as like

"This filter is used to determine the LDAP entry for current user. For example: (&(uid={0})(objectclass=person)). In this example, {0} represents login name of current user."

SPlunk,, How to get login id of current user ?

Have a nice day

Tags (2)
0 Karma

s2_splunk
Splunk Employee
Splunk Employee
| rest /services/authentication/current-context | table username
0 Karma

lycollicott
Motivator

This is the correct answer to the question that was asked.

0 Karma

Kyeryeon
New Member

Hello thanks.
but i want to use setting on web page about "User base filter".

Setting > Access controls > Authentication method > LDAP Settings

![alt text][1]

0 Karma

lycollicott
Motivator

First......
Why?

Second......
If you are trying to customize Setting > Access controls > Authentication method > LDAP Settings then you shouldn't do that.

0 Karma
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk on November 6 at 11AM PT, and empower your SOC to reach new heights! Duration: ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...