[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: additional info: no structural object class provided
Problem solved
I was forgotten to add objectClass: inetOrgPerson to my entries.ldiff
On Tue, 2003-08-26 at 15:58, Matthijs Mohlmann wrote:
> That's the error when i tried to add a entry
>
> My ldiff file looks:
>
> # Users in de LDAP database.
> dn: uid=matthijs,ou=users,dc=active2,dc=homelinux,dc=org
> objectClass: krb5Principal
> objectClass: posixAccount
> cn: Matthijs Mohlmann
> krb5PrincipalName: matthijs@ACTIVE2.HOMELINUX.ORG
> uidNumber: 1003
> gidNumber: 100
> uid: matthijs
> description: users
> userPassword: {KERBEROS}matthijs@ACTIVE2.HOMELINUX.ORG
> homeDirectory: /home/users/matthijs
> loginShell: /bin/bash
>
> if you can see at the userPassword attribute i have a Kerberos server to
> authenticate myself and the users.
>
> But when i try to add a entry then happens this:
> Server:~/ldapusers# ldapadd -f entries.ldiff -D
> "cn=admin,dc=active2,dc=homelinux.org,dc=org" -W
> Enter LDAP Password:
> SASL/GSSAPI authentication started
> SASL username: admin@ACTIVE2.HOMELINUX.ORG
> SASL SSF: 56
> SASL installing layers
> adding new entry "uid=matthijs,ou=users,dc=active2,dc=homelinux,dc=org"
> ldapadd: update failed:
> uid=matthijs,ou=users,dc=active2,dc=homelinux,dc=org
> ldap_add: Object class violation (65)
> additional info: no structural object class provided
>
> When i add the following entry to entries.ldiff:
> krb5PrincipalRealm: ACTIVE2.HOMELINUX.ORG
>
> Then i get the following error:
>
> Server:~/ldapusers# ldapadd -f entries.ldiff -D
> "cn=admin,dc=active2,dc=homelinux.org,dc=org" -W
> Enter LDAP Password:
> SASL/GSSAPI authentication started
> SASL username: admin@ACTIVE2.HOMELINUX.ORG
> SASL SSF: 56
> SASL installing layers
> adding new entry "uid=matthijs,ou=users,dc=active2,dc=homelinux,dc=org"
> ldapadd: update failed:
> uid=matthijs,ou=users,dc=active2,dc=homelinux,dc=org
> ldap_add: Invalid syntax (21)
> additional info: krb5PrincipalRealm: value #0 invalid per syntax
>
> I've checked the openldap-software mailing lists and get one result but
> i don't know what it means.
>
> http://www.openldap.org/lists/openldap-software/200306/msg00293.html
>
> Maybe you can help me ?
>
> (This is my first time i setup a OpenLDAP server)
>
>