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

ldapmodify



I been playing with ldapmodify. The goal is to change 1 or more attributes.

Ex: ldapmodify -x -D "cn=Manager,dc=reph,dc=org" -W 
dn: gpmId=2,dc=reph,dc=org
changetype: modify
replace: mail
mail: someaddress@moocow.com
replace: gpmZip
gpmZip: 1111

the object 
dn: gpmId=2,dc=reph,dc=org
objectclass: top
objectclass: gpmUser
gpmId: 2
uid: Some User
mail: someuser@mocow.com
gpmZip: 1111


The error from ldapmodify is:
ldap_modify: Undefined attribute type
        additional info: replace: attribute type undefined

ldif_record() = 17


To get it to work I had to do the following:
Ldapmodify -x -D "cn=Manager,dc=reph,dc=org" -W
dn: gpmId=2,dc=reph,dc=org
changetype: modify
replace: gpmZip
gpmZip: 121212

dn: gpmId=2,dc=reph,dc=org
changetype: modify
replace: mail
mail: steve@stevie.com


It would be truly annoying if I had to create a separate entry for each
entry I wanted to modify in an object class for the same dn.

-------------
Theodore Reph
treph@att.net