HP-UX Directory Server Administrator Guide HP-UX Directory Server Version 8.1 (5900-3098, May 2013)

3.7.5.1 Specifying one attribute and one subtree.............................................................143
3.7.5.2 Specifying one attribute and multiple subtrees......................................................143
3.7.6 Replication and the attribute uniqueness plug-in...........................................................144
3.7.6.1 Simple replication scenario................................................................................144
3.7.6.2 Multi-master replication scenario........................................................................144
3.8 Subtree Rename and Entry Move .....................................................................................144
4 Populating Directory Databases................................................................147
4.1 Importing data................................................................................................................147
4.1.1 Importing a database from the console........................................................................148
4.1.2 Initializing a database from the console......................................................................149
4.1.3 Importing from the command line...............................................................................151
4.1.3.1 Importing using the ldif2db command line script...................................................151
4.1.3.2 Importing using the ldif2db.pl Perl script..............................................................153
4.1.3.3 Importing using the ldif2ldap command line script................................................153
4.1.3.4 Importing through the cn=tasks entry...................................................................153
4.2 Exporting data...............................................................................................................154
4.2.1 Exporting directory data to LDIF using the console.......................................................155
4.2.2 Exporting a single database to LDIF using the console.................................................156
4.2.3 Exporting to LDIF from the command line...................................................................158
4.2.3.1 Exporting a database using db2ldif or db2ldif.pl.................................................158
4.2.3.2 Exporting through the cn=tasks entry..................................................................159
4.3 Backing up and restoring data.........................................................................................159
4.3.1 Backing up all databases.........................................................................................160
4.3.1.1 Backing up all databases from the Console..........................................................160
4.3.1.2 Backing up all databases from the command line.................................................161
4.3.1.3 Backing up the database through the cn=tasks entry.............................................161
4.3.2 Backing up the dse.ldif configuration file....................................................................161
4.3.3 Restoring all databases............................................................................................162
4.3.3.1 Restoring all databases from the console.............................................................162
4.3.3.2 Restoring your database from the command line..................................................163
4.3.3.2.1 Using the bak2db command line script .......................................................163
4.3.3.2.2 Using bak2db.pl Perl script........................................................................163
4.3.3.2.3 Restoring the database through the cn=tasks entry........................................163
4.3.4 Restoring a single database......................................................................................164
4.3.5 Restoring databases that include replicated entries.......................................................164
4.3.6 Restoring the dse.ldif configuration file.......................................................................165
5 Organizing Entries with roles, Class of service, and Views...........................166
5.1 Using roles.....................................................................................................................166
5.1.1 About roles..............................................................................................................166
5.1.2 Managing roles using the console..............................................................................168
5.1.2.1 Creating a managed role...................................................................................168
5.1.2.2 Creating a filtered role......................................................................................171
5.1.2.3 Creating a nested role.......................................................................................174
5.1.2.4 Viewing and editing an entry's roles...................................................................177
5.1.2.5 Modifying a role entry......................................................................................179
5.1.2.6 Making a role inactive or active.........................................................................181
5.1.2.7 Deleting a role.................................................................................................183
5.1.3 Managing roles using the command line.....................................................................184
5.1.3.1 Examples: managed role definition......................................................................185
5.1.3.2 Example: filtered role definition..........................................................................186
5.1.3.3 Example: nested role definition...........................................................................186
5.1.4 Using roles securely..................................................................................................187
5.2 Assigning class of service................................................................................................187
5.2.1 About CoS..............................................................................................................188
6 Contents