Hi ,
I am very very new to VB and don't know how to proceed with coding this.
I have a file in excel in the format below
Name....................UID...................Password
Marie Lily...............myoune.................9eW2n+st
Rita Jain..................rjain....................yE#eCA2a
Peter Craig.............pcraig.....................Qutru4r?
and I need to convert this data/excel sheet into the format below:
dn: cn=myoune,cn=Users,ou=MyDomain,dc=com
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: person
objectClass: top
givenName: Marie
sn: Lily
uid: myoune
userPassword: 9eW2n+st
dn: cn=rjain,cn=Users,ou=MyDomain,dc=com
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: person
objectClass: top
givenName: Rita
sn: Jain
uid: rjain
userPassword: yE#eCA2a
dn: cn=pcraig,cn=Users,ou=MyDomain,dc=com
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: person
objectClass: top
givenName: Peter
sn: Craig
uid: pcraig
userPassword: Qutru4r?
I have some 2,000 records as such to do the conversion and it is very tiresome to manually create this file. Is there any way to expedite this process using a VB.NET program to create the file? Truthfully, the file being created can be a txt file and the extension changed to LDIF before importing. I'm using VB.NET 2005 and have the whole Visual Studio 2005 installed.
I would really appreciate if anyone can help.
Thank you.