| 68 | |
| 69 | |
| 70 | 10. Restart directory |
| 71 | |
| 72 | {{{ |
| 73 | [oracle@grinnell ~]$ /srv/dsee7/bin/dsadm restart /srv/servers/slapd-grouper-test |
| 74 | Directory Server instance '/srv/servers/slapd-grouper-test' stopped |
| 75 | Directory Server instance '/srv/servers/slapd-grouper-test' started: pid=17197 |
| 76 | }}} |
| 77 | |
| 78 | 11. Check config |
| 79 | |
| 80 | {{{ |
| 81 | [oracle@grinnell ~]$ /srv/dsee7/bin/dsadm info /srv/servers/slapd-grouper-test/ |
| 82 | Instance Path: /srv/servers/slapd-grouper-test |
| 83 | Owner: oracle(oinstall) |
| 84 | Non-secure port: 1389 |
| 85 | Secure port: 1636 |
| 86 | Bit format: 64-bit |
| 87 | State: Running |
| 88 | Server PID: 17197 |
| 89 | DSCC url: - |
| 90 | Instance version: D-A30 |
| 91 | }}} |
| 92 | |
| 93 | 12. Set server properties. This is based on existing UA documentation the production directory servers. |
| 94 | |
| 95 | {{{ |
| 96 | [oracle@grinnell ~]$ /srv/dsee7/bin/dsconf set-server-prop -p 1389 look-through-limit:unlimited |
| 97 | Enter "cn=Directory Manager" password: |
| 98 | [oracle@grinnell ~]$ |
| 99 | [oracle@grinnell ~]$ /srv/dsee7/bin/dsconf set-server-prop -p 1389 pwd-check-enabled:on |
| 100 | Enter "cn=Directory Manager" password: |
| 101 | Enabling "pwd-check-enabled" property automatically sets the value of "pwd-accept-hashed-pwd-enabled" property to "off". |
| 102 | [oracle@grinnell ~]$ |
| 103 | [oracle@grinnell ~]$ /srv/dsee7/bin/dsconf set-server-prop -p 1389 pwd-lockout-duration:30m |
| 104 | Enter "cn=Directory Manager" password: |
| 105 | [oracle@grinnell ~]$ |
| 106 | [oracle@grinnell ~]$ /srv/dsee7/bin/dsconf set-server-prop -p 1389 pwd-lockout-enabled:on |
| 107 | Enter "cn=Directory Manager" password: |
| 108 | [oracle@grinnell ~]$ |
| 109 | [oracle@grinnell ~]$ /srv/dsee7/bin/dsconf set-server-prop -p 1389 pwd-max-age:57w1d |
| 110 | Enter "cn=Directory Manager" password: |
| 111 | [oracle@grinnell ~]$ |
| 112 | [oracle@grinnell ~]$ /srv/dsee7/bin/dsconf set-server-prop -p 1389 pwd-max-failure-count:5 |
| 113 | Enter "cn=Directory Manager" password: |
| 114 | [oracle@grinnell ~]$ |
| 115 | [oracle@grinnell ~]$ /srv/dsee7/bin/dsconf set-server-prop -p 1389 pwd-max-history-count:5 |
| 116 | Enter "cn=Directory Manager" password: |
| 117 | [oracle@grinnell ~]$ |
| 118 | [oracle@grinnell ~]$ /srv/dsee7/bin/dsconf set-server-prop -p 1389 pwd-min-length:8 |
| 119 | Enter "cn=Directory Manager" password: |
| 120 | [oracle@grinnell ~]$ |
| 121 | [oracle@grinnell ~]$ /srv/dsee7/bin/dsconf set-server-prop -p 1389 pwd-must-change-enabled:off |
| 122 | Enter "cn=Directory Manager" password: |
| 123 | [oracle@grinnell ~]$ |
| 124 | [oracle@grinnell ~]$ /srv/dsee7/bin/dsconf set-server-prop -p 1389 pwd-root-dn-bypass-enabled:on |
| 125 | Enter "cn=Directory Manager" password: |
| 126 | [oracle@grinnell ~]$ |
| 127 | [oracle@grinnell ~]$ /srv/dsee7/bin/dsconf set-server-prop -p 1389 pwd-user-change-enabled:off |
| 128 | Enter "cn=Directory Manager" password: |
| 129 | [oracle@grinnell ~]$ |
| 130 | [oracle@grinnell ~]$ /srv/dsee7/bin/dsconf set-server-prop -p 1389 search-size-limit:unlimited |
| 131 | Enter "cn=Directory Manager" password: |
| 132 | }}} |
| 133 | |
| 134 | 13. Copy production schema. (Assume that grinnell has a copy of the production "config" directory located at /srv/tmp/config.) |
| 135 | |
| 136 | {{{ |
| 137 | mv /srv/servers/slapd-grouper-test/config/schema/99user.ldif /srv/tmp/99user.ldif.orig |
| 138 | cp /srv/tmp/config/schema/99user.ldif /srv/servers/slapd-grouper-test/config/schema/ |
| 139 | chown oracle:oinstall /srv/servers/slapd-grouper-test/config/schema/99user.ldif |
| 140 | }}} |
| 141 | |
| 142 | 14. Configure attribute uniqueness plugin. |
| 143 | |
| 144 | {{{ |
| 145 | [oracle@grinnell ~]$ /srv/dsee7/bin/dsconf create-plugin -p 1389 -H /srv/dsee7/lib64/uid-plugin.so -F NSUniqueAttr_Init -Y preoperation "ARSCSystemID Uniqueness" |
| 146 | Enter "cn=Directory Manager" password: |
| 147 | [oracle@grinnell ~]$ /srv/dsee7/bin/dsconf set-plugin-prop -p 1389 "ARSCSystemID Uniqueness" desc:"Enforce unique attribute values..." version:7.0 vendor:"Sun Microsystems, Inc." depends-on-type:database |
| 148 | Enter "cn=Directory Manager" password: |
| 149 | Directory Server must be restarted for changes to take effect. |
| 150 | [oracle@grinnell ~]$ /srv/dsee7/bin/dsconf enable-plugin -p 1389 "ARSCSystemID Uniqueness" |
| 151 | Enter "cn=Directory Manager" password: |
| 152 | Directory Server must be restarted for changes to take effect. |
| 153 | [oracle@grinnell ~]$ /srv/dsee7/bin/dsconf set-plugin-prop -p 1389 "ARSCSystemID Uniqueness" argument:"ARSCSystemID" argument:"dc=alaska,dc=edu" |
| 154 | Enter "cn=Directory Manager" password: |
| 155 | Directory Server must be restarted for changes to take effect. |
| 156 | |
| 157 | [oracle@grinnell ~]$ /srv/dsee7/bin/dsconf create-plugin -p 1389 -H /srv/dsee7/lib64/uid-plugin.so -F NSUniqueAttr_Init -Y preoperation "UASystemID Uniqueness" |
| 158 | Enter "cn=Directory Manager" password: |
| 159 | [oracle@grinnell ~]$ /srv/dsee7/bin/dsconf set-plugin-prop -p 1389 "UASystemID Uniqueness" desc:"Enforce unique attribute values..." version:7.0 vendor:"Sun Microsystems, Inc." depends-on-type:database |
| 160 | Enter "cn=Directory Manager" password: |
| 161 | Directory Server must be restarted for changes to take effect. |
| 162 | [oracle@grinnell ~]$ /srv/dsee7/bin/dsconf enable-plugin -p 1389 "UASystemID Uniqueness" |
| 163 | Enter "cn=Directory Manager" password: |
| 164 | Directory Server must be restarted for changes to take effect. |
| 165 | [oracle@grinnell ~]$ /srv/dsee7/bin/dsconf set-plugin-prop -p 1389 "UASystemID Uniqueness" argument:"UASystemID" argument:"dc=alaska,dc=edu" |
| 166 | Enter "cn=Directory Manager" password: |
| 167 | Directory Server must be restarted for changes to take effect. |
| 168 | |
| 169 | |
| 170 | [oracle@grinnell ~]$ /srv/dsee7/bin/dsadm restart /srv/servers/slapd-grouper-test |
| 171 | Directory Server instance '/srv/servers/slapd-grouper-test' stopped |
| 172 | Directory Server instance '/srv/servers/slapd-grouper-test' started: pid=27485 |
| 173 | }}} |
| 174 | |
| 175 | 15. The top of the dse.ldif file contains ACIs. Copy the ACIs from the production dse.ldif file to the dse.ldif file on grinnell at /srv/servers/slapd-grouper-test/config/dse.ldif. |
| 176 | |
| 177 | {{{ |
| 178 | aci: (targetattr != "aci") (targetscope = "base") (version 3.0; aci "Enable r |
| 179 | ead access to rootdse for anonymous users"; allow(read,search,compare) user |
| 180 | dn="ldap:///anyone"; ) |
| 181 | aci: (targetattr = "*") (version 3.0; acl "Enable full access for Administrat |
| 182 | ors group"; allow (all)(groupdn = "ldap:///cn=Administrators,cn=config"); ) |
| 183 | aci: (targetattr = "userPassword") ( version 3.0; acl "allow userpassword self |
| 184 | modification"; allow (write) userdn = "ldap:///self";) |
| 185 | aci: (targetattr = "*") (version 3.0; acl "Enable full access for Directory Se |
| 186 | rvices Managers"; allow (all)(userdn = "ldap:///cn=*,cn=Administrators,cn=ds |
| 187 | cc");) |
| 188 | aci: (targetattr = "aci") (targetscope = "base") (version 3.0; acl "Enable roo |
| 189 | t ACI modification by Directory Services Managers"; allow (all)(userdn = "ld |
| 190 | ap:///cn=*,cn=Administrators,cn=dscc");) |
| 191 | }}} |