Getting LastAuthTime attribute value

Hi all,
We are trying to get all the user's list from Directory server who have not accessed their account from last 2 years.
For that we came to know that there is an attribute, pwdLastAuthTime, in DS 6 that stores the last authentication time of the user .
This is an operational attribute that is not stored as a part of user profile but can be accessed only by using JNDI...
Please suggest how can we get all the users from DS 6 who have not accessed their account from last two years.
Also is it possible to convert the Java Date object into the format of DS date so that we can exactly find the required users because we think that we have to get the difference of current date and the pwdLastAuthTime attribute value.
If possible, please some sample code for reference.
Thanks
Gaurav Jain

It's possible pwdLastAuthTime may not work out for you here.
We are trying to get all the user's list from Directory server who have not accessed their account from last 2 years.Sun's DS 6.x line has been publicly available for around 18 months, so that's about the maximum delta for pwdLastAuthTime you could possibly have.
More importantly, pwdKeepLastAuthTime must be enabled in the directory server's password policy in order for pwdLastAuthTime to be maintained. Do you know if this is enabled on your server?

Similar Messages

  • How to get the attribute value of an XML file??

    How to get the attribute value of an XML file??
    For example, how to get name and age attributes?
    <student name="Joe" age="20" />

    What are you using to read the XML file??
    On the assumption of JDOM - www.jdom.org. Something along the lines of:SAXBuilder builder = new SAXBuilder(true);
    Document doc = builder.build(filename);
    Element root = doc.getRootElement();
    List children = root.getChildren();
    Element thisElement = (Element)children.get(n);
    String name = thisElement.getAttributeValue("name")
    try
         int age = Integer.parseInt(thisElement.getAttributeValue("age"));
    catch (Exception ex)
         throw new InvalidElementException("Expected an int.....");
    }Ben

  • In Jsp TagLib how can I get the Attribute value (like JavaBean) in jsp

    Dear Friends,
    TagLib how can I get the Attribute value (like JavaBean) in jsp .
    I do this thing.
    public void setPageContext(PageContext p) {
              pc = p;
    pc.setAttribute("id", new String("1") );
              pc.setAttribute("first_name",new String("Siddharth")); //,pc.SESSION_SCOPE);
              pc.setAttribute("last_name", new String("singh"));
    but in Jsp
    <td>
    <%=pageContext.getAttribute("first_name"); %>
    cause null is returing.
    Pls HELP me
    with regards
    Siddharth Singh

    First, there is no need to pass in the page context to the tag. It already is present. How you get to it depends on what type of tag:
    Using [url http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/jsp/tagext/SimpleTagSupport.html]SimpleTagSupport
    public class MyTag extends SimpleTagSupport
      public void doTag()
        PageContext pc = (PageContext)getJspContext();
        pc.setAttribute("first_name", "Siddharth");
        pc.setAttribute("last_name", "Singh");
        pc.setAttribute("id", "1");
    }Using [url http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/jsp/tagext/TagSupport.html]TagSupport or it's subclass [url http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/jsp/tagext/BodyTagSupport.html]BodyTagSupport the page context is aleady declared as an implicit object:
    public class MyTag extends TagSupport
      public void doStartTag()
        pageContext.setAttribute("first_name", "Siddharth");
        pageContext.setAttribute("last_name", "Singh");
        pageContext.setAttribute("id", "1");
    }In each case, this sort of thing should work:
    <mytags:MyTag />
    <%= pageContext.getAttribute("first_name") %>I

  • Runtime error to get the attribute value of an element

    mydoc.xml
    =========
    <?xml version = "1.0"?>
    <persons>
         <person name="Joe" age="22" />
    </persons>
    In mydox.xml, I want to get the attribute values of element person. Of course,
    in the actual XML file, it is more complicated.
    However, I get the following run-time error,
    Exception in thread "main" java.lang.NullPointerException
    at ParserTest.main(ParserTest2.java:18) on line element.hasAttribute("name")
    import java.io.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.*;
    import javax.xml.transform.stream.*;
    import org.w3c.dom.*;
    import javax.xml.parsers.*;
    import org.xml.sax.*;
    public class ParserTest2
         public static void main(String[] args) throws ParserConfigurationException, SAXException
              String xmlFile = "mydoc.xml";
              doc = getDocumentFromFile(xmlFile);
              Element element = doc.getElementById("person");
              //Exception in thread "main" java.lang.NullPointerException
              if (element.hasAttribute("name"))
              {     System.out.println("attribute = " + element.getAttribute("name"));
         public static Document getDocumentFromFile(String xmlFile)
                   try
                        DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                        DocumentBuilder builder = factory.newDocumentBuilder();
                        Document doc = builder.parse(new File(xmlFile));
                        return doc;
                   catch(IOException e)
                   {     e.printStackTrace();
                        return null;
                   catch(SAXException e)
                   {     e.printStackTrace();
                        return null;
                   catch(ParserConfigurationException e)
                   {     e.printStackTrace();
                        return null;
         private static Document doc;
    any ideas? Thanks!!

    [url http://java.sun.com/j2se/1.4.2/docs/api/java/lang/NullPointerException.html]java.lang.NullPointerException
    Thrown when an application attempts to use null in a case where an object is required. These include:
    Calling the instance method of a null object.
    Accessing or modifying the field of a null object.
    Taking the length of null as if it were an array.
    Accessing or modifying the slots of null as if it were an array.
    Throwing null as if it were a Throwable value.
    You know what line it happens on, so you know which of these cases applies. So you know that variable "element" is null at that point. How could it come to be null? You assign to it only once, two lines above. How could that assignment be null? Check the documentation for [url http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Document.html#getElementById(java.lang.String)]org.w3c.dom.Document.getElementById().
    Repeat every time you get one of those exceptions.

  • How to get the attribute values out?

    Hi everyone,
    <root>
    <category name="Mens Clothing" id="0">
    <subcategory>Active/Baselayer Tops</subcategory>
    <subcategory>Active/Baselayer
    Bottoms</subcategory>
    </category>
    <category name="Womens Clothing" id="1">
    <subcategory>aaa</subcategory>
    <subcategory>bbb</subcategory>
    </category>
    </root>
    How to get the attribute values out? For example "Mens
    Clothing" and "Womens Clothing".
    // the line below returns "Active/Baselayer Tops" and
    "Active/Baselayer Bottoms"
    var myXml:XML = new XML(event.result);
    Thanks,
    May

    Here is attribute identifier operator from FB Help:
    @ attribute identifier Operator
    Usage myXML.@attributeName
    Identifies attributes of an XML or XMLList object. For
    example, myXML.@id identifies attributes named id for the myXML XML
    object. You can also use the following syntax to access attributes:
    myXML.attribute("id"), myXML["@id"], and myXML.@["id"]. The syntax
    myXML.@id is recommended. To return an XMLList object of all
    attribute names, use @*. To return an attribute with a name that
    matches an ActionScript reserved word, use the attribute() method
    instead of the @ operator.
    Operands attributeName:* — The name of the attribute.
    Example
    How to use examples
    The first example shows how to use the @ (at sign) operator
    to identify an attribute of an element:
    var myXML:XML =
    <item id = "42">
    <catalogName>Presta tube</catalogName>
    <price>3.99</price>
    </item>;
    trace(myXML.@id); // 42The next example returns all attribute
    names:
    var xml:XML =<example id='123' color='blue'/>
    var xml2:XMLList = xml.@*;
    trace(xml2 is XMLList); // true
    trace(xml2.length()); // 2
    for (var i:int = 0; i < xml2.length(); i++)
    trace(typeof(xml2
    )); // xml
    trace(xml2.nodeKind()); // attribute
    trace(xml2
    .name()); // id and color
    } The next example returns an attribute with a name that
    matches a reserved word in ActionScript. You cannot use the syntax
    xml.@class (since class is a reserved word in ActionScript). You
    need to use the syntax xml.attribute("class"):
    var xml:XML = <example class='123'/>
    trace(xml.attribute("class"));

  • ADF: How to get the attributes' values of one single row from a table?

    Currently I have a table with 3 attributes, suppose A,B and C respectively. And I've added an selectionListener to this table. That means when I select one single row of this table, I wish to get the respective value of A, B and C for that particular row. How do I achieve this?
    suppose the method is like:
    public void selectionRow(SelectionEvent se) {            //se is the mouse selection event
    .......??? //what should I do to get the values of A\B\C for one single row?
    Edited by: user12635428 on Mar 23, 2010 1:40 AM

    Hi
    Assuming you are using Jdev 11g.
    Try with this
    public void selectionRow(SelectionEvent se) {
    String val = getManagedBeanValue("bindings.AttributeName.inputValue");
    public static Object getManagedBeanValue(String beanName) {
    StringBuffer buff = new StringBuffer("#{");
    buff.append(beanName);
    buff.append("}");
    return resolveExpression(buff.toString());
    public static Object resolveExpression(String expression) {
    FacesContext facesContext = getFacesContext();
    Application app = facesContext.getApplication();
    ExpressionFactory elFactory = app.getExpressionFactory();
    ELContext elContext = facesContext.getELContext();
    ValueExpression valueExp =
    elFactory.createValueExpression(elContext, expression,
    Object.class);
    return valueExp.getValue(elContext);
    Vikram

  • In Which table can I get Customize attribute values?

    Hi All,
    I am new to Solution Manager. I have created customize attributes using std and non std ways. And i have used this attributes for create interface scenarios.
    My problem is, I am not able to get the value of attributes which has created using standard way. From which table I can get.
    While create this std attributes, i have added customize table name and corresponding field name in attribute properties.
    Can I get the attributes from this customize table?
    Kindly any one help for me.
    Thanks in Advance.
    -Thulasi

    Hi tulsi,
    I am also looking for the same solution please update me or the thread with the solution
    Saurabh

  • Getting the attribute value from a table from page def using el expression.

    Hi,
    Am using Jdeveloper 11.1.2.0.0 and have a requirement as follows for which a sample is been created. Requirement is as follows..
    1. Have a Taskflow that has a readonly table Employee.
    2. On clicking of a button called "route" checks if the selected row , Manager id attribute value = 200 then navigate to first page else if manager id attribute value is 200 then navigate to second page.
    Through the page def , if it has form , then we can access the attributes like #{data.view_FirstPageDef.ManagerId} . In case of acquiring the same attribute value from table using page def ? is what am unable to get..
    Have achieved the routing concept using the Router activity on Taskflow. But am unable to get the selected row attribute value of a table from the employee page def.. Can someone suggest on the same...
    Thanks and Regards,
    Vinitha G

    On the router, right click its icon in the task flow and create a page definition. Then in the page def file, add an iterator based on the same View Object from the table in the first page, then add a value attribute mapped to managerId in the View Object iterator. Finally in the router you can write EL expressions along the lines of #{bindings.ManagerId.inputValue = 200} or #{bindings.ManagerId.inputValue != 200}.
    CM.

  • Getting invalid-attribute-value Error during Delta Import on Call-based ECMA2

    I'm developing an ECMA2 MA to which supports delta imports.  I have found very few samples of working code to do delta imports, so my attempts are created
    using a lot of trial and error... Any samples of working Call based MA's with delta support would be much appreciated :-)
    The data is located in a SQL server and the schema (for delta) is like this (simplified):
    EmpID string
    Status string
    UPDATESTATUS string (<-- This is the update column with values New/Update/Delete)
    For each EmpID, there may be multiple Status values, i.e. Status should be imported into a multi value attribute in FIM.
    For the full import this is working as expected, but I run into issues when attempting to do the delta imports
    The code for the delta import
    private
    GetImportEntriesResults GetImportEntries_Delta(GetImportEntriesRunStep importRunStep)
    GetImportEntriesResults importReturnInfo;
    List<CSEntryChange> csentries =
    new List<CSEntryChange>();
    string employeeID =
    null;
    string appStatus =
    null;
    string currEmployeeID =
    CSEntryChange csentry =
    null;
    List<string> appStatusList =
    new List<string>();
    string changeMode =
    for (int i = currentReadRecord; i <= da.Tables["AppStatus"].Rows.Count - 1; i++)
    if (currEmployeeID != da.Tables["AppStatus"].Rows[i].ItemArray.GetValue(0).ToString().Trim())
    if (currEmployeeID !=
    "") // this should be true except for the first run
    csentry.AttributeChanges.Add(AttributeChange.CreateAttributeUpdate("IdentityStores", appStatusList));
    csentries.Add(csentry);
    appStatusList = new
    List<string>();
    if (csentries.Count >= m_importPageSize)
                  currentReadRecord = i;
    importReturnInfo = new
    GetImportEntriesResults();
    importReturnInfo.MoreToImport = (i <= da.Tables["AppStatus"].Rows.Count - 1);
    importReturnInfo.CSEntries = csentries;
    return importReturnInfo;
    changeMode = da.Tables["AppStatus"].Rows[i].ItemArray.GetValue(2).ToString().Trim();
    csentry = CSEntryChange.Create();
    csentry.ObjectType = "ApplicationIdentity";
    employeeID = da.Tables["AppStatus"].Rows[i].ItemArray.GetValue(0).ToString().Trim();
    currEmployeeID = (string)employeeID;
    switch (changeMode)
    case "New":
    csentry.ObjectModificationType = ObjectModificationType.Add;
    csentry.AttributeChanges.Add(AttributeChange.CreateAttributeAdd("EmployeeID", employeeID));
    break;
    case "Update":
    csentry.ObjectModificationType = ObjectModificationType.Update;
    csentry.DN = employeeID;
    break;
    case "Delete":
    csentry.ObjectModificationType = ObjectModificationType.Delete;
                         csentry.DN = employeeID;
    break;
    default:
    throw new
    UnexpectedDataException(string.Format("Unknown modification type: {0}", changeMode));
    appStatus = da.Tables["AppStatus"].Rows[i].ItemArray.GetValue(1).ToString().Trim();
    appStatusList.Add(appStatus);
    // save the last object
    if (csentry != null)
    csentry.AttributeChanges.Add(AttributeChange.CreateAttributeUpdate("IdentityStores", appStatusList));
    csentries.Add(csentry);
    importReturnInfo = new
    GetImportEntriesResults();
    importReturnInfo.MoreToImport = false;
    importReturnInfo.CSEntries = csentries;
    return importReturnInfo;
    The code compiles and executes, but the delta import fails with the "invalid-attribute-value" message per csentry.
    From the eventlog I have the following message
    The server encountered an unexpected error while performing an operation for a management agent.
    "System.InvalidCastException: Unable to cast object of type 'System.Collections.Generic.List`1[System.String]' to type 'System.String'.
       at Microsoft.MetadirectoryServices.Impl.Ecma2ConversionServices.AddAttributeToDImage(CDImage* pdimage, String attributeName, AttributeModificationType
    attributeModificationType, IList`1 attributeValueChanges, Int32 escapeReferenceDNValues)
       at Microsoft.MetadirectoryServices.Impl.Ecma2ConversionServices.ConvertToDImage(CSEntryChange csEntryChange, CDImage** ppDImage, Int32 escapeReferenceDNValues)
       at Microsoft.MetadirectoryServices.Impl.ScriptHost.InvokeExtMA_ImportEntry(UInt32 cBatchSize, UInt16* pcszCustomData, UInt32 cFullObject,
    _OCTET* rgoctFullObject, UInt32* rgomodt, UInt32* pcpcszChangedAttributes, UInt16*** prgpcszChangedAttributes, Int32 fIsDNStyleNone, UInt16** ppszUpdatedCustomData, _OCTET* rgoctCSImage, Int32* rgextec, UInt16** rgpszErrorName, UInt16** rgpszErrorDetail, Int32*
    pfMoreToImport)"
    To me it seems as if FIM is unable to process the List of strings that is returned when processing the delta. Remember that this works OK when doing the full import. 
    Do you have any suggestions as to why this fails?
    Kjetil

    Hi,
    Thank you Søren! I got some good clues for the right direction from your answer. If anyone would be looking same answers the correct solution would be down below. I hope it would be help for someone else too.
    Get-Shema.ps1
    $obj
    = New-Object
    -Type PSCustomObject
    $obj
    | Add-Member
    -Type NoteProperty
    -Name "Anchor-Id|String"
    -Value 1
    $obj
    | Add-Member
    -Type NoteProperty
    -Name "objectClass|String"
    -Value "user"
    $Obj
    | Add-Member
    -Type NoteProperty
    -Name "IsLicensed|Boolean"
    -Value $true
    $Obj
    | Add-Member
    -Type NoteProperty
    -Name "FirstName|String"
    -Value ""
    $Obj
    | Add-Member
    -Type NoteProperty
    -Name "LastName|String"
    -Value ""
    $Obj
    | Add-Member
    -Type NoteProperty
    -Name "mail|String"
    -Value ""
    $Obj
    | Add-Member
    -Type NoteProperty
    -Name "immutableId|String"
    -Value ""
    $Obj
    | Add-Member
    -Type NoteProperty
    -Name "DisplayName|String"
    -Value ""
    $Obj
    | Add-Member
    -Type NoteProperty
    -Name "UsageLocation|String"
    -Value ""
    $Obj
    | Add-Member
    -Type NoteProperty
    -Name "ProxyAddresses|String[]"
    -Value ("","")
    $Obj
    | Add-Member
    -Type NoteProperty
    -Name "Licenses|String[]"
    -Value ("","")
    $obj
    Import.ps1
    #Always pass objects as hash table in pipeline
    foreach ($User
    in $Users)
    $obj = @{}
    $obj.Add("Id",
    $User.UserPrincipalName)
    $obj.Add("objectClass",
    "user")
    $obj.Add("IsLicensed",
    $User.IsLicensed)
    $obj.Add("FirstName",
    $User.FirstName)
    $obj.Add("LastName",
    $User.LastName)
    $obj.Add("mail",
    $User.UserPrincipalName)
    $obj.Add("immutableId",
    $User.immutableId)
    $obj.Add("DisplayName",
    $User.DisplayName)
    $obj.Add("UsageLocation",
    $User.UsageLocation)
    $obj.Add("ProxyAddresses", ($User.ProxyAddresses
    -ne ""))
    $obj.add("Licenses", ($User.Licenses.AccountSkuId))
    $obj
    Marti

  • Unable to get VO attribute values from CO extension

    Hi All,
    I have extended a standard controller. Screen has view link. There are fields updatable in both master and child VOs'.
    If i change these fields (messageTextInput), Im able to get the modified values of master VO.
    But Child VO gives me the database value and not the modified value.
    this is the code im using to get values.
    OAViewObject vo = (OAViewObject)am.findViewObject("PosViewLinesVO");
    OAViewObject vo1 = (OAViewObject)am.findViewObject("PosViewShipmentsVO");
    Row row = vo.first();
    while(row != null)
    Number poLineId = (Number)row.getAttribute("PO_LINE_ID");
    Number lineTotal = (Number)row.getAttribute("Total");
    Row row1 = vo1.first();
    while(row1 != null)
    Number poLineId1 = (Number)row1.getAttribute("PoLineId");
    if(poLineId1.equals(poLineId))
    Number lineLocId = (Number)row1.getAttribute("LINE_LOCATION_ID");
    Number price = (Number)row1.getAttribute("NewPrice");
    row1 = vo1.next();
    row = vo.next();
    Please help. Am i missing sometihng.
    Thanks in advance

    are you getting any null pointer ??
    and check OAViewObject vo = (OAViewObject)am.findViewObject("PosViewLinesVO");// is this PosViewLinesVO or PosViewLinesVO1
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                               

  • How to Get xml Attribute value from a given  xpath

    i'm building an xml from 3 columns a,b,c using 'SELECT EXTRACT (XMLELEMENT ("ROOT",.........)'
    and my xml looks something like this
    <ROOT>
    <categories>
    <catogory value="col a value" display="true"/>
    <catogory value="col b value" display="false"/>
    <catogory value="col c value" display="false"/>
    </categories>
    <DATAS>
    </DATA>
    </ROOT>
    now under the datas node i want to use xpath like this
    (case when '/root/categories/catogory/[@display="true"]' then '/root/categories/catogory/@value' else 0 end)
    so tat i get values under data node based on display attributes.... is it possible..
    if not is ther any alternative way of using xpath

    What version of Oracle (4 digits)?
    Are you trying to populate the Data node when you are building the XML originally via your SQL/XML statement or are you talking about modifying some existing XML to add more nodes to it based on data in the XML already?

  • Not getting VO attribute value

    Hi
    I added attribute 1.. attribute 7 PosChangePOPG using personalization option. I'm not using any context in this case. These attributes are from PosViewShipmentsVO view.
    I'm also using my own controller using personalization option.
    when I'm try to get the value of attribute7 entered by user using
    posviewshipmentsvorowimpl.getAttribute7();
    I'm not getting the value.
    Any idea why the attribute7 value is not being returned?
    In my case user is entering the value for only attribute7, other attribute columns are getting populated at the time of PO creation itself.
    Thanks
    Prasad

    Hi ADF 7 ,
    The "Auto Submit" and the LOV is binded to the bean. But still it is not working.
    <font color="red">Tried using the Value change listener and getting the value and it is getting the value. But the Selected item disappears after pressing the Submit button.</font>
    Thanks,
    Nigel.

  • How can I get the Attribute Value in the existing XML Elements-Reg.

    Dear All,<br /><br />  I have the InDesign Document with xml Based, now I want to get the XML Elements name and XML Attributes for each Elements, using SDK Concepts. <br /><br />Example:<br /><br /> <chapter>  chapter1 </chapter> id = "ch001"<br /> <sec> Section ....</sec> id ="se001"<br /> <para> para ....</para> id="pa001"<br /><br />How can I get the XMLElements & XML Attributes in the InDesign-XML Structure.<br /><br />Please  any one can suggest me....<br /><br />Thanks & Regards<br />T.R.Harihara SudhaN

    Dear Dirk
    Many Thanks for the Suggestions, Now I search and study the XML concepts. Meanwhile, I need your suggestions for further Development in SDK -XML concepts.
    I am using the SnippetRunner -SDK file, their given some XML based programmes. [Create XML Elements, Elements + Attributes, XML Comments] and etc...
    Hope U will help me to Develop the SDK- XML Concepts.
    Thanks & Regards
    T.R.Harihara SuduhaN

  • Not getting attribute values in IPC routines Scenerio R/3 B2B using AP 7.0

    Hi,
    Our Scenerio is using ISA R/3 B2B using AP 7.0. I have developed IPC routines but when i debug my routines in SM53 I notice that I'm not getting any attribute value except for VKORG.
    I'm pasting the code below. Please help me if I have to implement some BADI or do something more to get the attribute values.
    I have defined the attributes properly in Routine assignment in tcode /n/sapcnd/ueass
    userexitlogger.writeLogDebug("*requirment 901*" + "Plant = "plant"||ANZ_MONATE ="+ item.getAttributeValue(ANZ_MONATE_STR).toString()"||ANZ_JAHRE="item.getAttributeValue(ANZ_JAHRE_STR).toString()"||MATKL="item.getAttributeValue(MATKL_STR).toString()"||PSTYV="item.getAttributeValue(PSTYV_STR).toString()"||VKORG="item.getAttributeValue(VKORG_STR)"||PRSFD="item.getAttributeValue(PRSFD_STR)"||MVGR2="item.getAttributeValue(MVGR2_STR).toString()"||PRSDT="item.getAttributeValue(PRSDT_STR).toString()"||AUDAT="item.getAttributeValue(AUDAT_STR).toString());
    I would reward points for help
    Many Thanks n regards,
    Dipender

    I would like to go through each Value of the xml file and give each Value a name
    e.g. from the xml file <VentCount Value=1> Retreive the value above and giving it the name VentCount. Then I would beable to use the name vent count as follows:
    setVentCount() //My own method can use as follows: setVentCount(VentCount); I would like to do his for ever value, each value with a specific name

  • How to get attribute value from standard page ?

    Hi,
    How to get attribute value from standard page ?
    String str = (String)vo.getCurrentRow().getAttrbute("RunId");
    But this value is returning a null value ....
    Can anyone help me to get this attribute value which is actually having a actual value .

    getCurrentRow() would always return null if no setCurrentRow() is used.
    Please check the page design and understand how many rows of VO are there. You can also use the following to get the row:
    vo.reset();
    vo.next();
    Regards
    Sumit

Maybe you are looking for