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

Re: Really confusing responses (was: Re: Can't slapadd ldif file)

Phil Dibowitz wrote:

Luca Scamoni wrote:

dn: cn=Phil Dibowitz,ou=User,c=US
objectclass: person
cn: Phil Dibowitz
sn: Dibowitz
uid: 505
uid: phil


You are telling ldap to create an entry under a root it doesn't have. The root is o=example.com,c=US (you defined it in the first entry) so stick to it:

dn: cn=Phil Dibowitz,ou=User,o=example.com,c=US

Good call. Now I get:

slapadd: dn="cn=Phil Dibowitz,ou=User,o=example.com,c=US" (line=18): attribute 'uid' not allowed

Why is UID not allowed? I've even tried it with just one UID, and it still doesn't work.

The person objectclass doesn't allow the uid attribute. You need to add an objectclass that allows it (such as inetorgperson).
A piece of advice: try giving a look at the FAQ's and the list archives. You'll find a lot of usefull information there.