[KLUG Members] Pesky LDAP
Jim C
members@kalamazoolinux.org
Tue, 10 Sep 2002 00:37:44 -0700
OK I got the system to except the dn but it kicked out due to the
absence of a definition for an attribute. This clued me in on the fact
that the schema needs quite a bit of extending. I found the following
site which talks about how to go about doing this:
http://www.yolinux.com/TUTORIALS/LinuxTutorialLDAP-GILSchemaExtension.html
Problem is that it reccomends makeing the following changes to the
following files:
> Edit file: /etc/openldap/schema/cosine.schema Change the lines:
>
> Change: NAME ( 'mobile' 'mobileTelephoneNumber' )
> to: NAME ( 'mobile' 'mobileTelephoneNumber' 'cellPhone' )
> Also change: NAME ( 'pager' 'pagerTelephoneNumber' )
> to: NAME ( 'pager' 'pagerTelephoneNumber' 'pagerPhone' )
>
>
> Edit file: /etc/openldap/schema/core.schema Change the lines:
>
> Change: attributetype ( 2.5.4.20 NAME 'telephoneNumber'
> to: attributetype ( 2.5.4.20 NAME ( 'telephoneNumber'
'xmozillaanyphone' )
Now what I've heard is that you should never edit the distributed
schemas. Rather you should create your own schema file and append it.
Consequently, I made files with the appropriate changes and copied them
to /etc/openldap/schema/ The original files were left at
/usr/share/openldap/schema/. When I tried to include them in slapd.conf
I got errors such that other dependant schemas could not find parent
clases etc.
Now it seems to me that the simple addition of a name shouldn't affect
other schemas in this manner. Since it does seem to however, can't I
just specify an alias in local.schema and then include local.schema in
slapd.conf? Can I get an example of how to do this?
Adam Williams wrote:
>>Greetings. I am new on the list. My troubles are primarily in the LDAP
...
>
> or maybe a multivalued dn
> cn=MyTestUser+mail=Dude@spudly.com,ou=Addressbook,dc=example,dc=net
>
> but I think the latter gets pretty unreadable after awhile.