Modifying the LDAP Directory Server Schema

After you have completed upgrading to SIMS 3.5, do the following steps:

  1. Login as root.

 
% su
Password: <Enter your root password>
 

  2. Edit the slapd.at.conf file.

 
% /bin/vi /etc/opt/SUNWconn/ldap/current/slapd.at.conf 
 

  3. Go to the end of slapd.at.conf and include the contents of the following file to specify the new object classes and attributes for the Sun Web Access feature.

 
/etc/opt/SUNWmail/dir_svc/WebAccess.at.conf
 

  4. Edit the slapd.oc.conf file.

 
/etc/opt/SUNWconn/ldap/current/slapd.oc.conf 
 

  5. Go to the end of slapd.oc.conf and include the contents of the following files to specify the new object classes and attributes for the Sun Web Access feature.

 
/etc/opt/SUNWmail/dir_svc/WebAccess.oc.conf
 


Note - If you use the include directive, used elsewhere in slapd.conf, to include a file containing the above text, the SunDs admin server will not start successfully. Instead, include the above text lines directly.
  6. Save your changes and exit the editor.
  7. Stop the LDAP directory server.

 
# /etc/init.d/slapd stop
 


Note - E-mail users will not be able to login to their mailboxes while the LDAP directory server is down.
  8. Regenerate indexes.

 
# /opt/SUNWconn/sbin/idxgen /var/opt/SUNWconn/ldap/dbm
 

If you have changed the location of the datastore, you should run idxgen on the server where the datastore is located. The following line defines the location of the datastore in /etc/opt/SUNWconn/ldap/current/slapd.conf.

 
directory /var/opt/SUNWconn/ldap/dbm
 

The amount of time required to regenerate the indexes depends on the number of entries in the LDAP Directory. Do not regenerate indexes while slapd is running.


Caution - Generating indexes could take several hours for large volume of entries.
  9. Restart the LDAP directory server.

 
# /etc/init.d/slapd start
 

  10. Confirm that the LDAP directory server is running.

 
# /bin/ps -eaf | /bin/grep slapd
root 17254 1 0 15:40:26 ?
0:00 /opt/SUNWconn/ldap/lib/slapd -p 389 -n 256
 

If you have incorrectly configured the slapd.conf file and slapd does not restart, you may find diagnostic messages displayed on your console or in these log files.

 
/var/adm/messages
 
/var/opt/SUNWconn/ldap/log/slapd.log
 

See the man page in slapd.conf(4) for further details of the required format of slapd.conf.




Copyright © 1999 Sun Microsystems, Inc. All Rights Reserved.