[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
How to define new objectclass and attributes (ITS#575)
Full_Name: Koon-Fu Yim
Version: 1.2.10
OS: Red Hat 6.0
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (202.84.172.230)
I am new to LDAP and have installed and configured Openladp 1.2.10 on my Red Hat
6.0 server for qmail evaluation test.
Having defined dn for organzation and person entries in the database for
testing, I can retrieve and update the entries without problem.
I removed the database files from /var/qmail/users and started new definition
for new objectclass qmailUser into the slapd.oc.conf file. Details of the entry
is shown below:
objectclass qmailUser
requires
objectclass,
mail,
uid,
allows,
mailMessageStore,
homeDirectory,
userPassword
mailAlternateAddress,
qmailUID,
qmailGID,
mailQuota,
mailHost,
mailForwardingAddress,
deliveryProgramPath,
qmailDotMode,
deliveryMode,
mailReplyText,
accountStatus
I also added the following entries into the slapd.at.conf file:
attribute mailAlternateAddress cis
attribute qmailUID ces
attribute qmailGID ces
attribute mailMessageStore cis
attribute homeDirectory cis
attribute mailQuota ces
attribute mailForwardAddress cis
attribute deliveryProgramPath cis
attribute deliveryMode cis
attribute mailReplyText cis
attribute mailDotMode cis
attribute mailHost cis
attribute accountStatus cis
My slapd.conf have been updated as follow:
include /usr/local/etc/openldap/slapd.at.conf
include /usr/local/etc/openldap/slapd.oc.conf
schemacheck on
pidfile /usr/local/var/slapd.pid
argsfile /usr/local/var/slapd.args
loglevel 4
database ldbm
lastmod on
suffix "o=cwhkt, c=hk"
rootdn "cn=root, o-cwhkt, c=hk"
rootpw secret
index mail, mailAlternateAddress, uid
indes default none
directory /var/qmail/users
After defining the above information, I kill -9 all the slapd processes and
restart them again using a script"/usr/local/libexec/slapd
-f /usr/local/etc/openldap/slapd.conf" from the /root directory. No response was
shown after I started this command.
Why? How and where can I define new qmail objectclass and attributes in order to
start my qmail-ldap test.
Thanks.