This topic has 2 replies, 3 voices, and was last updated 5 years, 4 months ago by Ludo.

  • Author
    Posts
  • #16025
     adrian
    Participant

    Hi everyone,

    I am trying to get lastLoginTime attribute for concrete user in OpenDJ using JAVA and LDAP connection, but my code returns null. Part of my code where I am getting this attribute is shown below.

    Attributes attributes= ctx.getAttributes(userDN);
    lastLogin.setText(String.valueOf(attributes.get(“lastLoginTime”)));

    Thanks for your help.

    #16027
     JnRouvignac
    Participant

    I wonder if lastLoginTime is an operational attribute.
    If so, then you need to ask the lastLoginTime attribute to be requested specifically, like any other operational attributes.

    #16040
     Ludo
    Moderator

    It is an operational attribute (and it must be so it is allowed in any entry that has a userPassword).

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

©2022 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?