[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Adding an object class with required attributes to an existing entry
- To: openldap-technical@openldap.org
- Subject: Adding an object class with required attributes to an existing entry
- From: Nick Milas <nick@eurobjects.com>
- Date: Fri, 16 Dec 2011 14:49:57 +0200
- User-agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0
Hi,
I want to add a new objectclass using an ldif; this objectclass requires
some attributes (according to schema). I can't make it work.
For posixAccount class, required attributes are:
cn
gidNumber
homeDirectory
uid
uidNumber
I already have cn and uid.
I am trying:
dn: uid=userx,ou=people,dc=example,dc=com
changetype: modify
add: ObjectClass
objectClass: posixAccount
uidNumber: 1700
homeDirectory: /var/members/userx
gidNumber: 48
loginShell: /bin/false
and it fails.
I've tried other ways too, like including existing objectclasses in the
LDIF (I've read about that in a blog), using a separate add statement
for optional attribute loginShell, etc. but nothing worked.
If the ObjectClass to add does not specify REQUIRED attributes in the
schema, there is no problem in adding it.
How should I formulate the LDIF?
Please advise.
Thanks,
Nick