From 86ee59ed079e8e9f1e3c88273cb8d00b9c88d378 Mon Sep 17 00:00:00 2001
From: Mark Craig <mark.craig@forgerock.com>
Date: Wed, 01 Feb 2012 16:04:35 +0000
Subject: [PATCH] Don't restart the server, and don't write timestamps more frequently than once per hour.

---
 opendj3/src/main/docbkx/admin-guide/chap-ldap-operations.xml |   25 ++++++++++++-------------
 1 files changed, 12 insertions(+), 13 deletions(-)

diff --git a/opendj3/src/main/docbkx/admin-guide/chap-ldap-operations.xml b/opendj3/src/main/docbkx/admin-guide/chap-ldap-operations.xml
index 20a1278..a23abae 100644
--- a/opendj3/src/main/docbkx/admin-guide/chap-ldap-operations.xml
+++ b/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>
 

--
Gitblit v1.10.0