Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to catch the IP address of user who is netering worng pasword more than 3 times?

former_member185116
Active Participant
0 Kudos

Hello all,

user is getting locked if he/she enters wrong password more than three times,

in our organization we have a user called SAP**** which can accessed by an end user,

sometimes the user is getting locked because some one is entering wrong password more than 3 times(i think intentionally),,

how do i catch who is entering wrong password ,

is there any FM or Table by which i can find the IP of that user..

thanks in advance...

1 ACCEPTED SOLUTION

kiran_k8
Active Contributor

Vinay,

Did you checked the FM TH_USER_INFO ?

Info related to no.of failed logon attempts, you can get it from USR02-LOCNT.

Info on whether a User ID got locked or not, you can get it from USR02-UFLAG.

Info related to latest terminal details of a User login, you can get it from USR41-TERMINAL.

K.Kiran.

18 REPLIES 18

kiran_k8
Active Contributor

Vinay,

Did you checked the FM TH_USER_INFO ?

Info related to no.of failed logon attempts, you can get it from USR02-LOCNT.

Info on whether a User ID got locked or not, you can get it from USR02-UFLAG.

Info related to latest terminal details of a User login, you can get it from USR41-TERMINAL.

K.Kiran.

0 Kudos

Hi kiran,

thanks for your reply,

yes i have checked it, but contains the details of the user who logged just recently,

but how do we find because of whom the the user has been locked(i.e how entered the wrong password)..

horst_keller
Product and Topic Expert
Product and Topic Expert

"netering worng pasword" ?

No wonder user is rejected ...

Nicolas
Active Contributor

Hello,

Did you checked transactions SM21 or SM20 ? When a dialog user has been locked due to incorrect logon, an entry is registered in these transactions. The user's terminal is mentionned.

Regards,

Nicolas

matt
Active Contributor

I do wonder if I can be bothered tohelp people who themselves can't be bothered to quickly check what they've written before posting.

matt
Active Contributor
0 Kudos

What is the nature of the account you suspect is being hacked? Is it used only by a single named person, or is it used to access a service provided on your SAP system - via RFC for example?

ChrisSolomon
Active Contributor

"in our organization we have a user called SAP**** which can accessed by an end user"

So you are saying you have multiple people (all end users?) sharing a single SAP user account?

Jelena
Active Contributor

I hope SAP legal department does not browse SCN...

0 Kudos

"oh la la" sounds like Diageo 🙂

Former Member

Hi Vinay,

You can check the details of terminal in tcode STAD but, this depends on the how much old data is retained in your system.

Else the only way is by enabling auditing in the system (tcode SM19) and check the logs in SM20.

USR41-TERMINAL will only give the details of current user.

Regards

Prithviraj

ChrisSolomon
Active Contributor

Matthew Billingham writes:

"I do wonder if I can be bothered to people who themselves can't be bothered to quickly check what they've written before posting."

I will assume this was intended as part of the joke and not correct you, MB! haha

matt
Active Contributor
0 Kudos

All I can say is... thank goodness for moderator enhanced privileges!

ChrisSolomon
Active Contributor
0 Kudos

And you STILL didn't correct it! hahahahaha

Former Member

in our organization we have a user called SAP**** which can accessed by an end user

Sharing a generic account by many people is a license violation, First go and fix it. You can take a look at audit logs (SM20) to identify the terminal Id from which this Id got locked. But for this you need to have audit log enabled in your system.

Regards,

Harish Karra

matt
Active Contributor

Incremental improvements! 😄

Former Member

1. What is the purpose of the user ID?

2. Why it is shared with multiple people (It's against the SAP rules of usage). Shared ID is never recommended.

Further, SM20 audit logs will only give you the information when the audit log is enabled. It is never a recommendation to set audit log if the ID is extensively used especially when the activity of the user is high.

For your requirement, I advise to have one custom program developed to find out the login/logout time and the user terminal along with the lock status. There is no standard report available.

Regards, Raghu Boddu

Former Member

Couldn't you could do an implicit enhancement in SAP's code where that logon failure message is coming from, adding any code you need? This seems like a very reasonable use of implicit enhancement.

Buce

0 Kudos

Buce,

Agree that creating an IMPLICIT Enhanement is much easier wherever it is possible to create one.But,imho it should not be the option for every custom requirement within the Standard Process flow.Developer should be judicious before creating an Implicit Enh.

To my knowledge,I don't see any need here to interfere with the Standard Process flow by creating an Implicit enhancement.Awaiting experts to Opine.

K.Kiran.