Security

Monitor failed ldap login attemps

tvernick
Engager

We have 389 Directory Server logs and I was wondering if there is a way to monitor for failed authentication attempts? The error code for a failed attempt is err=49 in the log, but the actual username for the failed attempt is on another line. I can't find a good way to search for the uid's with failed logins.

[12/May/2015:15:59:38 +0000] conn=43278605 op=0 BIND dn="uid=todd,ou=people,dc=example,dc=net" method=128 version=3
[12/May/2015:15:59:38 +0000] conn=43278605 op=0 RESULT err=49 tag=97 nentries=0 etime=0

I want to be able to see that "uid=todd" when there is an instance of err=49.

Tags (1)
0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

The most easy way would be a plain transaction:

index=foo sourcetype=bar BIND OR RESULT | transaction conn | search err=49

That'll merge all events for a conn value into one great transaction and filter based on the overall error.

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

The most easy way would be a plain transaction:

index=foo sourcetype=bar BIND OR RESULT | transaction conn | search err=49

That'll merge all events for a conn value into one great transaction and filter based on the overall error.

tvernick
Engager

[12/May/2015:15:59:38 +0000] conn=43278605 op=0 BIND dn="uid=todd,ou=people,dc=example,dc=net" method=128 version=3
[12/May/2015:15:59:38 +0000] conn=43278605 op=0 RESULT err=49 tag=97 nentries=0 etime=0

I want to be able to see that "uid=todd" when there is an instance of err=49.

0 Karma

MuS
SplunkTrust
SplunkTrust

Like @martin_mueller wrote, post some samples. I did such a thing for an Oracle OVD, it's no big deal 😉

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Do post some sample events.

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!

Mastering Threat Intelligence in ES 8.5, Splunk AI Assistant v2, and More from Splunk ...

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

Break the Build: Inside the KubeDoom Lounge at .conf26

    You step up to the machine. The pixelated corridors of a certain 1993 FPS load in front of you, EMP Pulse ...

Splunk Auto Ingestion Parallel Pipeline Scaling

Why this feature matters Many Splunk environments experience ingestion pressure long before the host is fully ...