Last user login date

Hi
We use our DS as an authentication service. We have a business requirement whereby if a given user does not authenticate through LDAP after period of inactivity to suspend the
User�s account and subject user to password reset.
H
ow do you retrieve a user's last login date?
The two viable solutions are not pretty: 1) requiring all client applications to update a user attribute "last_logon_date" or 2) using a scheduled script to mine the audit logs.
Any additional solution?
Regards
Bob

Correct.
For Directory Server 5.x, it can implemented as a custom plug-in.
I am not aware of any implementation of such plug-in though.
Ludovic.

Similar Messages

  • Last user login

    Hi all ,
    I need to shutdown a few databases, but before that i need to know the users who had used it and when did they use it.
    How to go about it ?
    I checked and found dba_users view , but that will not give me the information of the last user login with the date.
    Other option is select * from dba_audit_session;
    but for that also , I am not sure if auditing is enabled or not.. Need to check on that.. Also this is my homework that i am doing for the database whose access i will get in a while.. so dont even know the version. All i know is that itys on windows machine.
    any suggestion/help would be appreciated
    KKuKreja

    Hi,
    If you want to check who all are accessing the database just before the shutdown you can check the v$session.
    COLUMN username FORMAT A15
    col osuser for a15
    col module for a15
    COLUMN machine FORMAT A30
    col program for a20
    COLUMN logon_time FORMAT A20
    SELECT NVL(s.username, '(oracle)') AS username,
           s.osuser,
           s.sid,
           s.serial#,
           p.spid,
           s.status,
           s.module,
           s.terminal,
           s.machine,
           s.program,
           TO_CHAR(s.logon_Time,'DD-MON-YYYY HH24:MI:SS') AS logon_time
    FROM   v$session s,
           v$process p
    WHERE  s.paddr  = p.addr
    and s.username not in '(oracle)'
    ORDER BY s.username, s.osuser;But if you want to know who all have accessed till now, auditing is necessary.
    Well, little weird, but if you are on 10g and above check the v$active_session_history where you have 'machine' column.You can get all the distinct machine names from which the connections came to the database.
    Anand
    Anand

  • How to track "Date of Last user Login" across all provisioned systems ?

    We all know how hard it is to track old users - in particular ones that have left and termination paperwork has not been completed (users such as contractors, service technicians etc)
    Anyone think of a way where IDM could track the date/time of last login to each system that it has provisioned that user to ?
    Maybe a new field per system eg LASTLOGIN<ECPxxx> which I can then view along with the User ID Alias ACCOUNT<ECPxxx> field and see ;
    Which Systems the user has a login to
    Date / Time of last login to these systems
    Yes, it can be done manually by logging in to each to the systems and running SUIM, but I would hopping for an elegant solution as part of the IDM process.

    Hi Phil,
    getting the last logon date is dependent on the system to which you are provisioning userids. For some systems you might not be able to retrieve the last logon date at all.
    We have implemented something like that in my previous project for Active Directory, because we needed to implement a custom password ageing functionality that disables accounts when the user does not change his password in time. For Active Directory you can check the lastLogon attribute or alternatively the accountExpires attribute.
    Best regards
    Holger

  • Email Notification - User LogIn date

    Hi All,
    Our client has a requirement to send the email notification to the user if he has not logged in CRMOD for more than 2 days.
    Does anybody has worked on similar kind of request. Please guide
    Regards,
    S

    I'm not doing any homework. I am a beginner and have limited experience. I am using the MVC model 2 architecture and I'm not quite sure how to fit this business requirement in. I don�t understand why some people automatically take this �do your own hw attitude� with beginners. Anyway�
    Here's the situation:
    I�m creating a simple �Domain Registration� app that stores information about registered domains and displays it. The issue is that I need to create a script that sends out an email when the domain�s expiration date is two weeks away. Of course I could have the application check the expiration date for each domain and then send an email depending on whether or not the exp date is two weeks away, but the issue is that I need to have it do this without having to do it manually. In other words, once I run the app, it should do a check for the exp dates in the database and set timers for the emails to go. I was looking at the Timer class but still don' t know where/when to start the timer.
    I�m just asking for generic instructions on how to go about doing this. I don�t need specific java answers because I know java. This is a logic and experience question more than anything else. I hope this helps but if anyone else wants to give it a shot and you need more info let me know and I�ll do my best to give you as much of it as possible.

  • User login data

    Is it possible to get login time history for users on OES11?

    On Thu, 12 Jun 2014 18:56:02 +0000, jasont wrote:
    > Is it possible to get login time history for users on OES11?
    That would be an eDirectory / Auditing question. You'd need to using
    Auditing, which could be the traditional auditing stuff, or the newer XDAS
    stuff. See the docs for details on both.
    David Gersic dgersic_@_niu.edu
    Knowledge Partner http://forums.netiq.com
    Please post questions in the forums. No support provided via email.
    If you find this post helpful, please click on the star below.

  • Can EBS show the last date and time of a user login

    We have a requirement to display users their Last sucessfull login date and time. We would like to display after user have entered username/pwd i.e. Could someone guide how can we schive this ?
    Thanks in Advance
    Dinesh

    Hi,
    This is available through "Signon Audit Unsuccessful Logins" concurrent program.
    How do you audit an Oracle Applications' user? [ID 395849.1]
    Need A Way To Notify Users About Previous Failed Login Attempts [ID 357009.1]
    Thanks,
    Hussein

  • Retrieving Last used User Login Name in OIM 11g R2

    In my scenario, i want to retrieve the last used user login in OIM for user profile, to create next User Login based on last one retrieved ?
    Is there any API method available in User Management to get this value or Any customized DB query that will help ?
    Setup used is OIM 11g R2 PS1.

    Thanks Rajiv for Input !
    Still i have some doubts in my scenario. Actually i have to create new User Login in sequence based on last User Login of Last user created . This is no based on User ID. Also, whatever already existing users with user login are present , they will be uploaded in OIM for first time through trusted reconcilation.
    After reconcilation is done, then hereafter while creating next user i have to update its user login attribute in sequence of latest user login used and check for its uniqueness.Suppose, in case while bulk data import in OIM for first time , the users are not in sequence of User Login attribute, then it will be difficult to get the latest user login. Is there any way to get last user created based on User Login and not on User Id ?
    Hope i have given clear picture of my scenario.

  • Getting the last succesful logoin date for user

    Hi ,
    Iwant to write an java application which will take the userid and get the
    last sucessful login date.
    I used the sap ume apis for this purpose
    There is an API  getLastSuccessfulLogonDate() in the class IUserAccount.
    But it says
    Deprecated.  
    get last sucessful logon date NOTE: This attribute is not automatically updated during login.
    link :https://help.sap.com/javadocs/NW04/current/um/index.html
    What does "attribute not updated  automaticlaly during login implies".
    Is there any other method from where i can get this information
    Regards
    Manoj

    Few things to mention.
    I am using SAP Netweaver 2004s
    When i run the code
    thisUser = userFact.getUser(userid);
                IUserAccount userAccts[] = thisUser.getUserAccounts();
                 System.err.println(" Iterating in for loop ");
                for(int i=0; i<userAccts.length; i++)
                       d= userAccts<i>.getLastSuccessfulLogonDate();
                       System.err.println(" got date ");
                       result = d.toGMTString();
    I get the following exception
    Login date java.lang.NullPointerException
            at SecurityLogic.getLastSuccessfulLogonDate(Unknown Source)
            at SecurityRemoteObjectImpl0.getLastSuccessfulLogonDate(SecurityRemoteOb
    jectImpl0.java:125)
            at SecurityRemoteObjectImpl0p4_Skel.dispatch(SecurityRemoteObjectImpl0p4
    _Skel.java:186)
            at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl
    .java:304)
            at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:19
    3)
            at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4Se
    ssionProcessor.java:122)
            at com.sap.engine.core.service630.context.cluster.session.ApplicationSes
    sionMessageListener.process(ApplicationSessionMessageListener.java:33)
            at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRu
    nner.java:41)
            at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:3
    7)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.ja
    va:100)
            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:1
    70)

  • User login report for given period

    Hi All,
    We have one query relate to user monitoring. We want to get the detail log or report of users login date,time, logout date time and system ip or system name like for the given period.
    Our application environment as
    SAP application : R/3 4.7
    Database : oracle 9.2.0.8
    Thanx in advance
    Regards,
    Vishnu.

    Hi Vishnu,
    kindly consider to use the forum search before posting. similar questions like yours have been posted several times already. In oyur search results you may find for instance [this thread|Re: Last three user logon date and time;
    b.rgds,
    Bernhard

  • Solaris 10 / Sparc: Last Unsuccessful Login

    Hi guys,
    I would like to know if there is a way to configure my "Solaris 10 / Sparc" system in order that, after a user login on the system, the console displays a message containing the Last Successful Login date and the number of failed login the same user attempts since last login successfully carried out . I hope I've been clear even if the requirement is a bit contorted.
    It would be enough for me just know who is the program that produce the message "Last Login: ..." (eg, "Last Login: Mon Jul 6 10:03:59 from 10.173.123.34") in order that I can try to do the same thing with the number of unsuccessful login.
    The message "Last Login: ..." is already printed on my Sistem. So I don't need to configure this: I only need to know how to print the number of failed login the same user attempts since last login successfully carried out.
    I did some research online and almost all advise to put in "/etc /profile" the following lines:
    echo "Login Successful LAST: $ (last-R $ LOGNAME | head -1)"
    echo "Login Unsuccessful LAST: $ (lastb-R $ LOGNAME | head -1)"
    The problem is that on my machine I can not find the command lastb. I can find Only the "last" command.
    Thank you

    lastb is a Linux program, also available on HP-UX but not Solaris.
    For Solaris you use the loginlog file - create a file in /var/adm - touch /var/adm/loginlog. Make it read and write only for the owner, which is root, and in group sys. Any failed logins at the command line login will show up in /var/adm/loginlog. Failures at the GUI login will not, these show up in /var/adm/messages. The only place I can see to get the last login information at the GUI would be from the /.dt/startlog.old in the user's home directory or /var/adm/messages.

  • Last Successful Login

    Hello,Is there any way to get a User's Last Successful Login date/time stamp using MAXL? We are on v6.5.3. Thanks in advance.

    I know you can get this from the GETUSERINFO command in Esscmd. Couldn't find it in MAXL.

  • Method of fetching Account status and user locked date in Portal.

    Hi,
    Can anyone suggest me the method name  in UME API in Sap Ep for fetching User Account Status and Last User Locked Date. Or suggest a related code for it.
    user database is LDAP.
    Thanks

    Hi Abhai,
    The class (actually Interface) you're looking for is IUserAccount. You can get this from the IUser by using the method getUserAccounts().
    The IUserAccount provides all sort of methods like lockDate(), isLocked(), getLockReason().
    See more in https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/library/ep/_d-f/ep%206.0%20sp2%20usermanagement%20public%20api
    Best regards,
    Amit

  • Hi all, can someone help me in getting last login date of a user in CQ5 please?

    Hi all, can someone help me in getting last login date of a user in CQ5 please?

    CQ is REST based and does not have the concept of session. So there is no feature to track login or logout details.  Most of our customers use some kind of central authentication Ex- SSO hence no need arises to have such functionality built in.  However if needed you have the ability to implement such at a project level solution. Ex:- custom login modules or auth-handler by taking project specific constraints and requirements into account

  • Is there a way to audit user accounts by last login date/time?

    Hello all,
    Is there a way to see or report on a user's last login.  I don't see a last login date parameter in the UM record.  I see that all security events are logged in the security log including logon and logoff, but what I need is to be able to produce a report that provides all user accounts which have not been logged on to since a specified date or # of days, i.e. since 01/01/2008 or >180 days.
    Any clues or guidance is appreciated.
    Regards,
    Paul

    Is there a SAP / Portal standard way of accessing this information?
    Our authorisations team have asked me to get them such a report, and I can't find anything on the portal (NW2004) that would give this information. I don't think the basis guys would be terribly chuffed to provide access directly to the database. If this (database access) is the only way, then I suppose a custom developed app could be created and deployed to the portal, but I would have thought this is a reasonalby sensible report so would be standard content somewhere.
    Cheers,
    Andrew

  • Last login date of a deleted user

    Hi there,
    Could you please let me know how to find the last login date of a deleted user in the SAP.
    Thanks
    Amit.

    Hi Bernhard,
    Thanks a ton for the reply.
    you are correct that they you cannot get the details of a deleted user from USR02 but they are ways in which you can still find the last login date of a deleted user.
    One of the ways is using of transaction SUIM but i have no idea why this is not working in my system.
    Anyways if you can find any relevant detail please let me know.
    Regards
    Amit

Maybe you are looking for

  • Order type Personalization Problem in Standard Sales Order Form

    Hi All, We have a problem in personalization of Sales order form.Here we are trying to personalize three field based on order type Scenario 1:_ _Nav-->Oredr Management Super User-->Orders,returns-->Sales Orders-->order type-->standard_ In this type i

  • Sql Query to know the OS in which database is installed

    Hi, I want to know the OS in which my database is installed using SQL Query. Is it possible? Regards Salih KM

  • Autonumbers through dynamic SELECT statement

    Trying to get an autonumber from an order table. The order_id I need from the table is only uniquely identified by the customer_id and the date/time. I've been advised that you cannot get an autonumber back from access without going via a select stat

  • Remove Spacing on the GUI

    hello, here's my problem.. i'm making a program that will act like a graphing calculator but only using JPanels, (yeah, it sucks cause i think we will not discuss about Graphics ;( well anyways i imagined a GUI which will contain maybe 100x100 JPanel

  • Clean Air - WLC 5508

    Hello Do I need to buy additional license for clean air to work, currently my BOQ cover WLC 5508 with 50 AP license  ( part no : AIR-CT5508-50-K9 ) 20 AP ( model 3502  ) Redundant Power supply LIC-CT5508-50  ( is this required to be mentioned ) Also