HP-UX Directory Server 8.1 administrator guide
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
4 Populating directory databases...............................................................................145
4.1 Importing data...............................................................................................................................145
4.1.1 Importing a database from the console.................................................................................146
4.1.2 Initializing a database from the console................................................................................147
4.1.3 Importing from the command line........................................................................................149
4.1.3.1 Importing using the ldif2db command line script........................................................149
4.1.3.2 Importing using the ldif2db.pl Perl script.....................................................................151
4.1.3.3 Importing using the ldif2ldap command line script.....................................................151
4.1.3.4 Importing through the cn=tasks entry..........................................................................151
4.2 Exporting data...............................................................................................................................152
4.2.1 Exporting directory data to LDIF using the console.............................................................153
4.2.2 Exporting a single database to LDIF using the console........................................................154
4.2.3 Exporting to LDIF from the command line...........................................................................156
4.2.3.1 Exporting a database using db2ldif or db2ldif.pl.........................................................156
4.2.3.2 Exporting through the cn=tasks entry...........................................................................157
4.3 Backing up and restoring data......................................................................................................157
4.3.1 Backing up all databases.......................................................................................................158
4.3.1.1 Backing up all databases from the Console..................................................................158
4.3.1.2 Backing up all databases from the command line........................................................159
4.3.1.3 Backing up the database through the cn=tasks entry....................................................159
4.3.2 Backing up the dse.ldif configuration file.............................................................................159
4.3.3 Restoring all databases..........................................................................................................160
4.3.3.1 Restoring all databases from the console......................................................................160
4.3.3.2 Restoring your database from the command line.........................................................161
4.3.3.2.1 Using the bak2db command line script ................................................................161
4.3.3.2.2 Using bak2db.pl Perl script...................................................................................161
4.3.3.2.3 Restoring the database through the cn=tasks entry..............................................161
4.3.4 Restoring a single database...................................................................................................162
4.3.5 Restoring databases that include replicated entries..............................................................162
4.3.6 Restoring the dse.ldif configuration file................................................................................163
5 Organizing entries with roles, class of service, and views...................................165
5.1 Using roles.....................................................................................................................................165
5.1.1 About roles............................................................................................................................165
5.1.2 Managing roles using the console.........................................................................................167
5.1.2.1 Creating a managed role...............................................................................................167
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
6 Table of Contents