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

Re: how to customise database fields



Yes, is my mistake, forgot the comma behind cn=Jason Tan.
But I tried already, but it doesn't help to resolve my problem.
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

error
# ldapadd -x -D "cn=Manager, dc=tstest, dc=aspiren, dc=com
" -w secret -f test04.ldif

adding new entry "cn=Jason Tan, dc=tstest, dc=aspiren, dc=com"
ldap_add: Invalid syntax
        additional info: value contains invalid data

ldif_record() = 21


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

thanks for all advise given....

rdgs,
gary



Daniel Tiefnig wrote:

> gary wrote:
>
> > ldapadd -x -D "cn=Manager, dc=tstest, dc=aspiren, dc=com" -w secret -f
> > test04.ldif
> > adding new entry "cn=Jason Tan dc=tstest, dc=aspiren, dc=com"
>
> must be "cn=Jason Tan, dc=tstest, dc=aspiren, dc=com"
> you forgot the comma behind 'cn=Jason Tan'
> if this doesn't help, please post the original ldif-file, so we can have a look
> at it.
>
> > ldap_add: Invalid syntax
> >         additional info: value contains invalid data
> >
> > ldif_record() = 21
> > I do tried to add
> > include         /usr/local/etc/openldap/schema/pilot.schema
> > but when to restart slapd, it prompt me for the following
> >
> > /usr/local/etc/openldap/schema/inetorgperson.schema: line 142: AttributeType
> > not
> >  found: "audio"
>
> stay using cosine.schema, as kurt said, i hope he'll explain why pilot.schema
> doesn't work, i can't tell at the moment.
>
> regards
> --
> Daniel Tiefnig
> Servertechnology
> INFONOVA IT GmbH