Tagged: java, lastLoginTime, LDAP, opendj This topic has 2 replies, 3 voices, and was last updated 5 years, 9 months ago by Ludo. Author Posts February 27, 2017 at 1:20 pm #16025 adrianParticipant 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. February 27, 2017 at 2:01 pm #16027 JnRouvignacParticipant 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. February 28, 2017 at 10:11 am #16040 LudoModerator It is an operational attribute (and it must be so it is allowed in any entry that has a userPassword). Author Posts Viewing 3 posts - 1 through 3 (of 3 total) You must be logged in to reply to this topic.