ldapmodify + objectclasses


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users ldapmodify + objectclasses
# 1  
Old 05-11-2010
ldapmodify + objectclasses

can anyone please guide me for changing objectclass

Current objectclass
Code:
objectClasses: ( 2.5.6.6 NAME 'person' DESC 'RFC2256: a person' SUP top STRUCTURAL MUST ( sn $ cn ) MAY ( userPassword $ telephoneNumber $ seeAlso $ description ) )

Wanted like this
Code:
objectClasses: ( 2.5.6.6 NAME 'person' DESC 'RFC2256: a person' SUP top STRUCTURAL MUST cn MAY ( sn $ userPassword $ telephoneNumber $ seeAlso $ description ) )

tried to change by using below command
Code:
$ldapmodify -d -1 -D "cn=admin,dc=example,dc=com" -w secret -f modify.ldif

$cat modify.ldif
dn: cn=schema
changetype: modify
add: objectclasses
objectClasses: ( 2.5.6.6 NAME 'person' DESC 'RFC2256: a person' SUP top AUXILIARY MUST cn MAY ( sn $ userPassword $ telephoneNumber $ seeAlso $ description ))



getting error
Code:
ldap_modify: Invalid syntax (21)
additional info: objectclasses: value #0 invalid per syntax

Thanks in advance

Last edited by pludi; 05-11-2010 at 01:52 AM.. Reason: code tags, please...
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

ERROR: ldapmodify: wrong attributeType at line 6, entry "olcDatabase={0}hdb,cn=config"

please use code tags, thanks Initially olcDatabase={2}config.ldif file was in non-prod and it does not have any entries of database and password as well that is why I was getting error as “ldap_bind: Invalid credentials (49)”¯ , I was comparing with my production olcDatabase={2}config.ldif file ... (1 Reply)
Discussion started by: Bibhusisa
1 Replies

2. Red Hat

LDAP configuration with ldapmodify

Hello everybody At the beginning i would like to apologize for my english and im not sure if this thread is in the right place so if it isn't please move it to other one. Ok let's start. I have to admit that i am totally beginner with ldap but i really would like to learn how to configure it.... (0 Replies)
Discussion started by: alan200
0 Replies

3. UNIX for Dummies Questions & Answers

ldapmodify: keystroke to apply changes

Hi, I need to modify some entries in LDAP, but with what keystroke do I exit and apply the changes? Thanks Brissix (0 Replies)
Discussion started by: brissix
0 Replies
Login or Register to Ask a Question