Adding as many columns with the header objectClass as needed, each containing fixed values. Is this the only easy way to get the needed attributes?
Thanks in advance!
Andrea
Hello, yes, thats the way to go. objectClass is threatened like any other attribute, see the readme file or give the -h option.
objectClass
-h
$ ./csv2ldif2.pl -b cn=test <<CSV cn,mail,objectClass,objectClass Foo Bar,foo.bar@example.com,inetOrgPerson,person Test Baz,test.baz@example.com,inetOrgPerson,person CSV dn: cn=Foo Bar,cn=test cn: Foo Bar mail: foo.bar@example.com objectClass: inetOrgPerson objectClass: person dn: cn=Test Baz,cn=test cn: Test Baz mail: test.baz@example.com objectClass: inetOrgPerson objectClass: person
Log in to post a comment.
Hello,
yes, thats the way to go.
objectClassis threatened like any other attribute, see the readme file or give the-hoption.Last edit: Benedikt Hallinger 2023-12-28