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

Re: how to customise database fields



gary wrote:

> Below is my ldif file and error that i got
>
> test04.ldif file
> # Jason's entry
> dn: cn=Jason Tan, dc=tstest, dc=aspiren, dc=com
> cn: Jason Tan G K
> cn: Jason
> sn: Tan
> objectClass: inetorgperson
> mail: jason@yahoo.com
> uid: 12345
>

objectclass     ( 2.16.840.1.113730.3.2.2 NAME 'inetOrgPerson'
    DESC 'RFC2798: Internet Organizational Person'
    SUP organizationalPerson
    STRUCTURAL
        MAY (
                audio $ businessCategory $ carLicense $ departmentNumber $
                displayName $ employeeNumber $ employeeType $ givenName $
                homePhone $ homePostalAddress $ initials $ jpegPhoto $
                labeledURI $ mail $ manager $ mobile $ o $ pager $
                photo $ roomNumber $ secretary $ uid $ userCertificate $
                x500uniqueIdentifier $ preferredLanguage $
                userSMIMECertificate $ userPKCS12 )
        )

as u can see, objectclass inetorgperson doesn't allow cn and sn, define objectclass
person additionally to inetorgperson in your ldif-file.
did u read the admin guide? if not, do so.
http://www.openldap.org/doc/admin/

> Another thing, with this included schemas can i add on other fields like address,
> tel, pager and etc...as employee details..

you can add each attribute/objectclass, that is defined in the schema files you
include in your slapd.conf, but you have to define the appropriate objectclasses
too. see the admin guide.

--
Daniel Tiefnig
Servertechnology
INFONOVA IT GmbH