These procedures use many different commands and several different configuration files. Add the paths to these commands to your own shell paths or $MANPATH.
![]() |
Executable programs and scripts: |
/opt/SUNWmail/bin /opt/SUNWmail/sbin /opt/SUNWconn/bin /opt/SUNWconn/sbin |
![]() |
Directory man pages: |
/opt/SUNWmail/man /opt/SUNWconn/man |
![]() |
Directory and other management scripts ("slapd" to start/stop the directory server, "web500gw" to start/stop the HTML dirsvc server, etc.): |
/etc/init.d |
![]() |
Default location of directory configuration files: |
/etc/opt/SUNWconn/ldap/current |
![]() |
Saving and Restoring Existing Data in the Directory |
Although the directory can't be used to route mail for SIMS until after it is populated with entries, don't assume that the current directory is completely empty. Do not use ldif2ldbm(1M) or do any other actions which truncate the directory without first saving possible contents using the ldbmcat(1M). Save the contents of the directory for later restoration (using ldif2ldbm) as follows:
1. | su to root |
2. | Make sure neither SIMS nor slapd are running: |
/etc/init.d/im.server stop /etc/init.d/slapd stop |
3. | cd /opt/SUNWconn/sbin |
4. | Decide on a destination directory which has sufficient space to store the contents of the directory in LDIF. In this example we use /tmp. |
5. | Run the ldbmcat command. |
In the C shell: |
% ./ldbmcat -n /var/opt/SUNWmail/ldap/dbm/id2entry.dbb >& /tmp/dbm.ldif |
Note that if the directory was empty this will produce an empty file. In this case, you do not need to run the subsequent steps to restore data. |
6. | After saving the existing data to a file (/tmp/dbm.ldif in this example), create the new LDIF for entries you plan to add (ex: new.ldif). |
This process is described the sections that follow. |
7. | Concatenate the new LDIF onto the old. |
Example: cat new.ldif >> dbm.ldif |
8. | Load the database with the new LDIF using ldif2ldbm. |
If your database is not empty then you will have to use the -c argument to ldif2ldbm to overwrite the database. |
Example: ldif2ldbm -c -i dbm.ldif |
Note that faster loading can be attained by using the -j parameter to ldif2ldbm. |