Menu

#5 How to add objectClass attributes?

v1.0_(example)
closed
nobody
None
5
2023-12-28
2023-12-28
No

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

Discussion

  • Benedikt Hallinger

    Hello,
    yes, thats the way to go.
    objectClass is threatened like any other attribute, see the readme file or give the -h option.

    $ ./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
    
     

    Last edit: Benedikt Hallinger 2023-12-28
  • Benedikt Hallinger

    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB