Hello,
I want to insert new records into an openldap server using the assembly
mentioned above. I am kind of stuck I haven't found any examples of how
to do this exactly (that I understand??)
basically I need to insert the contents of an ldif file like this:
dn: ui******@foobar.com, ou=accounts, o=company, c=CC
cn: john doe
sn: doe
objectClass: top
objectClass: person
objectClass: inetOrgPerson
objectClass: qmailUser
mail: jo**@foobar.com
mailHost: smtp.foobar.com
mailMessageStore: /var/qmail-ldap/maildirs/jo**@foobar.com
uid: jo**@foobar.com
userPassword: {SSHA}+QFwJY+lN0BgVS3L+Y+ZvWgEGB92UKy3
so when you look up
ldap://hostname/ui******@foobar.com, ou=accounts, o=company, c=CC
you'd get back all this info
I have been unable to do this just messing around with the msdn
samples. I'm sure there is something I just don't understand.
The System.DirectoryServices.Add method's declaration/template whatever
the C# name for it is:
DirectoryEntry* Add(String* name, String* schemaClassName);
the schemaClassName part completely escapes me as to what this should
be.
Any help is appreciated.
thank you,
bdm