[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Schema Tutorial?



Jim Hud wrote:

> Can anyone point me to documentation or tutorial that covers schema
> definition and use?
>
> Thanks

for 1.2.x it's quite easy to add schema definitions.
create a textfile with the following format:

objectclass <name>
     [ requires <attrs> ]
     [ allows <attrs> ]

with <attrs> being a list of attributes (e.g. uid, cn, sn), separated by
',' (without the quotes, of course). (see also slapd.oc.conf for
predefined definitions)

then add a line
include         /usr/local/openldap/etc/openldap/my.schema.conf (or
whatever your file would be)
and a line
schemacheck on
to your slapd.conf file

see the administrator guide chapter 5.4 for more information:

http://www.umich.edu/~dirsvcs/ldap/doc/guides/slapd/5.html#RTFToC34

regards
--
Daniel Tiefnig
Servertechnology
INFONOVA IT GmbH