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

Re: Secret not in database



Seau Yeen Su <seauyeen@mgrc.com.my> writes:

> Hi Michael,
>
[...]
> However, when i tried to add my users using ldfi format, i encounter some
> problems.
>
> First, it's the schema issue. When i included inetorgperson schema, it keeps
> on throwing messages about certain audio, homePhone objectClass structural
> object not existing. So, i removed all those objects ldap complains and i
> managed to start my slapd.

read the comments in inetorgperson.schema, in particular about
'Depends upon'.

>
> After that, when i tried to add my user with the ldif format as below:
>
> dn: ou=people,dc=synamatixdev,dc=com
> ou: people
> objectClass: organizationalunit
> objectClass: inetorgperson

why do you wnat to add objectclass inetorgperson to this entry?

> dn: uid=user1,ou=people,dc=synamatixdev,dc=com
> uid: user1
> cn: Mary
> cn: Mary Terry
> objectClass: inetorgperson
> objectClass: account
> objectClass: top
> objectClass: shadowAccount
> sn: Terry
> userPassword: user123
>
> I receive the error message below when i tried to add with slapadd:
> str2entry: invalid value for attributeType objectClass #1 (syntax
> 1.3.6.1.4.1.1466.115.121.1.38)
> I am not very sure about the objectClass allowed for OpenLdap 2.3.27. Why does
> it say there's invalid value for attributeType? PLease help, thanks!

Read about structural objectclasses and their
requirements, in particular RFC 4512, section 2.4.2. Objectclass
inetorgperson and objectclass account are both of type structural, but
belong to different objectclass chains. 

-Dieter

-- 
Dieter Klünter | Systemberatung
http://dkluenter.de
GPG Key ID:8EF7B6C6
53°08'09,95"N
10°08'02,42"E