469,603 Members | 2,110 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,603 developers. It's quick & easy.

manipulating LDAP directory via System.DirectoryServices assembly

bdm
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

Nov 17 '05 #1
0 1529

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Andrew | last post: by
4 posts views Thread by Nico Koenig | last post: by
5 posts views Thread by Bryan | last post: by
2 posts views Thread by Neil via .NET 247 | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.