How to find out the list of all user's whose passwords are expired

Hi
i had tried to find out the list of all user's whose passwords are expired.
i had written some jndi code by finding the max age and then find out the current time and subtracted this current time from max age using the following code
"Attributes attbts=ctx.getAttributes("cn=pwdpolicy");
String maxAge=(String)attbts.get("pwdMaxAge").get();
Date Today = new Date();
System.out.println("maxAge"+maxAge);
long curTime=(Today.getTime())-Long.parseLong(maxAge)*1000;"
and then parse it and create a string time as follows
String time=year+month+day+hour+minute+second+"Z";
where "year" "month" etc were parsed from curTime
now i can get the list by using following code
"String filterCriteria="(&(objectclass=person)(pwdChangedTime>="+time+")";
NamingEnumeration results = ctx.search(baseDN,filterCriteria, sc); "
but the current time which i am getting is the time of my system not the time of ldap server
so my questions are following;
1.Can there is any way by which i can get the tivole sever's system time.
2.If there is no way then can you suggest any other way to find out the list of user's whose passwords are expired.
please help me.
Thanks.
Krishan Rathi.

Hi,
Thanx for ur reply..
I got the list from the table...
thanks,
sivagami

Similar Messages

  • How ti find out the list of all z tables.

    Hi Experts,
    I have to find out all the z tables of pp,pm and qm module so that i can know that the authorization group is filled or not.
    Pls its urgent.

    hi
    good
    you can use se11 to search any kind of table if you know the particular table name or else you can use z* as a search options for searching any kind of table.
    After getting the table name you can check the authorization check.
    thanks
    mrutyun^

  • How can i get the list of all users present in the UME ?

    Hi Experts,
    How can i get the list of all users present in the UME ?
    Is there any API or function Code to get all user list??
    Please help me out!!!
    Help will be rewarded
    -pankaj chouhan

    Hi Pankaj,
    find the official NetWeaver security javadocs (including access to UME) <a href="http://help.sap.com/javadocs/NW04S/current/se/index.html">here</a>. Look for classs UMFactory and proceed from there.
    Best regards,
    Martin

  • How to find out the cost of SAP user for a particular user id

    Dear All,
    I got one issue like how to find out the cost of SAP user, i mean for a particular user id.
    Could you please advice me regarding this.
    Raghu

    Hello Raghu,
    I got one issue like how to find out the cost of SAP user, i mean for a particular user id.
    Could you please advice me regarding this.
    I think you need to reach out to BASIS consultant to check out the Cost involved for User ID for the SAP application.
    Regards,
    Sarthak

  • How can i get the list of all users present in the LDAP

    Hi Experts,
    How can i get the list of all users present in the LDAP ?
    Is there any API or function Code to get all user list??
    Please help me out!!!
    Help will be rewarded

    Well it will depend on exactly where your UME configuration points to in the LDAP tree but yes, it is possible to get all users.  Something like the following should do it:
    import com.sap.security.api.*;
    import com.sapportals.portal.prt.component.*;
    IUserFactory iuf;
    ISearchResult isr;
    IUser user
    String userid;
    iuf = UMFactory.getUserFactory();
    isr = iuf.getUniqueIDs();
    you will need to iterate the ISearchResult object but you can get IUser objects by
    userid = (String)isr.next();
    user = iuf.getUser(userid);
    then you can imanipulate / identify / or whatever you need with the user object
    Haydn

  • How to find out the list of patches applied without using inventory?

    Hi,
    I have been asked this question once.
    How will you find out the list of patches applied to Oracle Database Home without using commands like opatch lsinventory -detal etc...
    I think registry$history is a view from where we can find out the list of patches applied.
    But I think it will not include all the bug fixes,stand alone or one-off patches.It will mainly list out the CPU patches applied(correct me if I am wrong).
    Thanks,
    Rushi

    Hi;
    Thanks Helios,
    Your welcome
    Could you tell me how do you all senior people manage to find metalink note for almost everything?There is nothing special, For me I just make more search at metalink than googling so after sometimes you started to notice which note could be related wiht issues more clearly.. Just keep searching at metalink and focus what you are searching only.. ;)
    If you could guide me I can do it my self and stop bothering you for some silly doubts.You dont bother me and also I belive the other forum users ;) We are also learning new information wiht user questions ;)
    Regard
    Helios

  • How to find out the list of field exists for a particular transaction

    Hi all,
    Can u please help me find out the list of field exits available for a particular Tcode?
    Is it similar to User exit or . . . . ?
    Thanks,
    C.Selvaraj
    SAP-QM

    Create a program and add this code to find user exit
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
    tables : tstct.
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    parameters : p_tcode like tstc-tcode obligatory.
    select single * from tstc where tcode eq p_tcode.
    if sy-subrc eq 0.
      select single * from tadir where pgmid = 'R3TR'
      and object = 'PROG'
      and obj_name = tstc-pgmna.
      move : tadir-devclass to v_devclass.
      if sy-subrc ne 0.
        select single * from trdir where name = tstc-pgmna.
        if trdir-subc eq 'F'.
          select single * from tfdir where pname = tstc-pgmna.
          select single * from enlfdir where funcname =
          tfdir-funcname.
          select single * from tadir where pgmid = 'R3TR'
          and object = 'FUGR'
          and obj_name eq enlfdir-area.
          move : tadir-devclass to v_devclass.
        endif.
      endif.
      select * from tadir into table jtab
      where pgmid = 'R3TR'
      and object = 'SMOD'
      and devclass = v_devclass.
      select single * from tstct where sprsl eq sy-langu and
      tcode eq p_tcode.
      format color col_positive intensified off.
      write:/(19) 'Transaction Code - ',                        "#EC NOTEXT
      20(20) p_tcode,
      45(50) tstct-ttext.
      skip.
      if not jtab[] is initial.
        write:/(95) sy-uline.
        format color col_heading intensified on.
        write:/1 sy-vline,
        2 'Exit Name',                                          "#EC NOTEXT
        21 sy-vline ,
        22 'Description',                                       "#EC NOTEXT
        95 sy-vline.
        write:/(95) sy-uline.
        loop at jtab.
          select single * from modsapt
          where sprsl = sy-langu and
          name = jtab-obj_name.
          format color col_normal intensified off.
          write:/1 sy-vline,
          2 jtab-obj_name hotspot on,
          21 sy-vline ,
          22 modsapt-modtext,
          95 sy-vline.
        endloop.
        write:/(95) sy-uline.
        describe table jtab.
        skip.
        format color col_total intensified on.
        write:/ 'No of Exits:' , sy-tfill.                      "#EC NOTEXT
      else.
        format color col_negative intensified on.
        write:/(95) 'No User Exit exists'.                      "#EC NOTEXT
      endif.
    else.
      format color col_negative intensified on.
      write:/(95) 'Transaction Code Does Not Exist'.            "#EC NOTEXT
    endif.
    at line-selection.
      get cursor field field1.
      check field1(4) eq 'JTAB'.
      set parameter id 'MON' field sy-lisel+1(10).
      call transaction 'SMOD' and skip first screen.
    Rewards if useful........................
    Minal

  • How to find out the list of implemented OSS Notes in a particular period.

    Hi Friends,
    Need help.
    I need to find out the list of OSS Notes implemented in a period in a particular system.
    Could you please suggest the table or program or any way to find out the OSS Notes Implemented date wise?
    Thanks in Advance.
    Sreenivas

    Hi Sreenivas.
    How did you find the solution to this? Trying to do the same thing!
    Cheers,
    Tom

  • How to find out the list of workflows with active event linkage?

    Hi All,
    I want to find out the list of workflows whoe event linkage is activated in the system.
    Through SWU0, we can get a list of workflows attached to a particular event of a business object.
    Thanks,
    Sivagami

    Hi,
    Thanx for ur reply..
    I got the list from the table...
    thanks,
    sivagami

  • How to find out the list of includes:

    Hi,
    I want to find out the list of includes, hw can I do that..
    Suppose: ex: I want to know all the includes starting with zabc* hw can I do it, and one more question, where all the (total) includes will be stored.
    Akshitha.

    Hi akshitha,
    1. We can do that from se38.
    2. in se38, Press Ctrl + F
    3. A new window will come for search.
    4. <b>by pressing 4th button on toolbar, expand the search window.</b>
    5. <b>In "Program Type", enter   :   I   (for include only)
       In Program Name" enter    : ZABC*</b>
    6. Execute.
    regards,
    amit m.

  • How to find out the list of users who used Discoverer

    Dear All,
    We have Oracle E-Business Suite 11.5.10.2 with Disco. 4i.
    We need to know how we can find out the Employee ID, Responsibility, Org... who used discoverer during a specific period in the past ? For example the last year.
    Any help plz.
    Regards,
    Mohammad Muhtadi

    I'm not sure You can get the responsibilities or the org that was used in that specific run but as for getting when it was run and by whom...
    Try that SQL:
    select distinct
    qs.qs_doc_name workbook,
    --qs.qs_doc_details worksheet,
    case when instr(qs.qs_doc_owner,'#')=1 then substr(qs.qs_doc_owner,2,10) else qs.qs_doc_owner end workbook_owner,
    qs.qs_created_date run_date,
    case when instr(qs.qs_created_by,'#')=1 then substr(qs.qs_created_by,2,10) else qs.qs_created_by end apps_user_id,
    fu.user_name apps_user_name,
    ppf.FULL_NAME user_full_name,
    ppf.EMPLOYEE_NUMBER user_employee_number
    from
    eul_us.eul4_qpp_stats qs,
    fnd_user fu,
    per_people_f ppf
    where to_number(substr(qs.qs_created_by,2,10))=fu.user_id(+)
    and fu.employee_id=ppf.PERSON_ID
    and sysdate between ppf.EFFECTIVE_START_DATE and ppf.EFFECTIVE_END_DATE
    change the "eul_us" to the discoverer schema.
    Basically the primary data you are looking for lies in the qpp_stats table...

  • How to find out the list of DCs changed in the MSS 600 Support PackageXX

    Hi
    We are trying to instal patches from "MSS 600 support package 07" to "MSS 600 support package 17"  at the same time we have 4 custom DCs in place.
    Our custom DCs have dependencies in MSS standard DCs.
    Question is how do we know the list ot DC changed/modified in suport package XX ?
    Is there a description of DCs changed in the support package? Or is there a description on SC level so we could trace it
    GRANT POINTS!!!
    Thanks
    Denis

    Papaden- Please use metadata comparision tool to find the changes in webdynpro DCs.
    http://help.sap.com/saphelp_nw70/helpdata/en/6e/0e184188b4f16fe10000000a1550b0/frameset.htm
    Thanks,
    Raj

  • How to find out the list of Production orders created for sales orders

    Dear All,
    Our company wants to generate a report for a List of Materials sold out in a particular Product Hierarchy. Along with that we want to know the list of Production orders created for the sales orders.
    How to identify the production orders which are created based on Sales orders.
    Kindly suggest.
    Regards,
    Mullairaja

    Check these threads
    [Sale Order & Production Order|Sale Order & Production Order;
    [Re: Linking Production Order against a Sale Order MRP run|Linking Production Order against a Sale Order MRP run;
    thanks
    G. Lakshmipathi

  • How to find out the idoc type required for our requirement

    Hi,
         How to find out the list of available idoc type in SAP. It will be good if i get to know the table name where all the idoc type definitions are gets stored.
    Say i have some requirement and for that requirement how i can find the proper idoc type to be used. (assume functional consultant is not providing that information)
    Points will be given for the useful answers
    Thanks,
    Prasanna

    Hi prasanna,
                    we can get SAP idoc types in tcode we31.For every requirment there will be different message type.
    For example we want idoc type for account invoice receipt.
    First find out message type for that purpose which can be found in we81-ACC_INVOICE_RECEIPT.
    Get this message type and search in we82  where we can find message type and idoc type linkage.
    try this way.
    Reward if it is usful.
    Thanks,
    Srikanth.A

  • How to find out the tables that will be affected using a transaction

    Hi,
    How to find out the list of database tables that will be affected when we use a standard transaction(ex. VA01, MM01..)...?(like When we create a salesorder, which tables and which fields will be affected..?)
    Is there any transaction or a simple way to find out the solution?
    Thanks,
    Pradeep.

    Hi,
    Give transaction code and in menu(system- status),  double click onthe Program name.
    Check in TOP INCLUDE - you will find all the tables related to that transaction.
    Thanks,
    Anitha

Maybe you are looking for

  • Form where testing if radiobuttonlist is null and then display message

    I created a test form to try to get this work and can't seem to make it work. In my form I have a ddlist on page 1. on page 2 I have a subform that the selection in the ddl makes visible--that's working. There is a radiobuttonlist in the subform. I'd

  • Certain symbols are not shown ( see screen shot) How to resolve?

    From this website the logo and arrows are not shown whereas when I am using internet explorer they do show up. What is wrong in my settings and how to adjust these?

  • Business Role to System/Technical Role Mapping in CUP

    All, In our design of CUP we are having end-users logon and choose their "business role" and having CUP select the system/tecnhical roles. For example, we want an AP Clerk to be able to logon and choose "AP Clerk" and have role A, B & C from ECC sele

  • Adobe Acrobat Standard 8.12 keeps crashing

    Hello I have an issue with Adobe Acrobat Standard 8.12.  When I load up Acrobat and go into the EDIT menu and then choose Preferences I get the following error. I initially uninstalled Adobe Acrobat Standard 8.12 and then reinstalled the application

  • Hyperion Planning hypadmin password change?

    Experts and or knowledgeable hyperionites, I am being asked to reset the Hypadmin password for our Hyperion Planning system. I am new to Hyperion and baffled at where to even start. Can anyone help in finding all the locations where this password mig