Discussion:
ldifde , cvsde or dsmod
(too old to reply)
drpepper
2006-11-08 19:13:01 UTC
Permalink
i have a DL group that i would like to modify managedby field, can someone
tell me how to use dsmod to modify that field or ldifde ?

i tried ldifde import from csv file and i not sure i got my colums
here is my example

objectclass DN
managedby
group cn=groupname,=dc=domain,=dc=com cn=user2,=test,dc=domain,dc=com

c:\ldifde -i -f c:\import.csv
Wolfgang Kais
2006-11-11 23:41:16 UTC
Permalink
Hello "drpepper".
Post by drpepper
i have a DL group that i would like to modify managedby field, can
someone tell me how to use dsmod to modify that field or ldifde ?
i tried ldifde import from csv file and i not sure i got my colums
here is my example
objectclass DN
managedby
group cn=groupname,=dc=domain,=dc=com cn=user2,=test,dc=domain,dc=com
c:\ldifde -i -f c:\import.csv
Using -i with csvde, you only can add new objects but cannot modify
existing ones.
Also, your DNs contain too many =s.
[BTW: using csvde, the first column has to be DN, so (if it worked)
the file would look like this (2 lines):
dn,objectClass,managedBy
"cn=groupname,dcdomain,dc=com",group,"cn=user2,test,dc=domain,dc=com"
]
You cannot change the managedBy attribute using "dsmod group".
For ldifde, try this in import.ldf (six lines)

dn: cn=groupname,dcdomain,dc=com
changeType: modify
replace: managedBy
managedBy: cn=user2,test,dc=domain,dc=com
-

Import this at a command prompt using:
ldifde -i -v -j . -k -f import.ldf
--
Regards,
Wolfgang
Loading...