mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Mark Craig
01.04.2012 86ee59ed079e8e9f1e3c88273cb8d00b9c88d378
Don't restart the server, and don't write timestamps more frequently than once per hour.
1 files modified
25 ■■■■ changed files
opendj3/src/main/docbkx/admin-guide/chap-ldap-operations.xml 25 ●●●● patch | view | raw | blame | history
opendj3/src/main/docbkx/admin-guide/chap-ldap-operations.xml
@@ -243,14 +243,14 @@
   <para>First set up an attribute to store a last login timestamp.
   You can do this by adding a schema file for the attribute.</para>
   <screen>$ cat /path/to/OpenDJ/config/schema/98-lastLogin.ldif
#
# Schema definition for a generalizedTimeMatch lastLoginTime attribute
#
   <screen>$ ldapmodify
 --port 1389
 --hostname opendj.example.com
 --bindDN "cn=Directory Manager"
 --bindPassword password
dn: cn=schema
objectClass: top
objectClass: ldapSubentry
objectClass: subschema
changetype: modify
add: attributeTypes
attributeTypes: ( lastLoginTime-oid
  NAME 'lastLoginTime'
  DESC 'Last time the user logged in'
@@ -260,14 +260,13 @@
  SINGLE-VALUE
  NO-USER-MODIFICATION
  USAGE directoryOperation
  X-ORIGIN 'OpenDJ examples' )
  X-ORIGIN 'OpenDJ example documentation' )
Processing MODIFY request for cn=schema
MODIFY operation successful for DN cn=schema
</screen>
   <para>Restart OpenDJ after you add the schema file.</para>
   <screen>$ stop-ds --restart</screen>
   <para>Configure the applicable password policy to write the last login
   timestamp when a user authenticates. The following command configures the
   default password policy to write the timestamp in generalized time format
@@ -282,7 +281,7 @@
 --bindPassword password
 --policy-name "Default Password Policy"
 --set last-login-time-attribute:lastLoginTime
 --set last-login-time-format:"yyyyMMddHHmmss'Z'"
 --set last-login-time-format:"yyyyMMddHH'Z'"
 --trustAll
 --no-prompt</screen>