[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Adding and objectClass to an existing entry
- To: OpenLDAP Users <openldap-software@OpenLDAP.org>
- Subject: Adding and objectClass to an existing entry
- From: Jason Joines <joines@bus.okstate.edu>
- Date: Wed, 18 Feb 2004 14:41:12 -0600
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040112
I need to add an object class to an existing person's ldap entry. I'm
using OpenLDAP 2.0.23 and have and ldif file like this:
dn: uid=jo,dc=mydomain,dc=net
changetype: modify
add: objectClass
objectClass: inetOrgPerson
This format works just fine for adding regular attributes such as
givenname, etc. When I use it to try and add the objectClass I get this:
ldapmodify -x -W -f modifypersonobjectclass.ldif
Enter LDAP Password:
modifying entry "uid=jo,dc=mydomain,dc=net"
ldap_modify: Invalid syntax
additional info: objectClass: value #0 invalid per syntax
ldif_record() = 21
How do you add an objectClass to an existing entry?
Thanks,
Jason Joines
===========