I found some piece of code for myself
DirectoryEntry dsParentEntry = new DirectoryEntry(LDAP, UserName, Password);
DirectoryEntry dsGroupEntry = dsParentEntry.Children.Find("MyGoup", "group");
// Fails in this line giving syntax error.
object newEntry = dsGroupEntry.Invoke("add", new Object[]{oUser.Path});
dsGroupEntry.CommitChanges();
can anyone tell me the cause of the syntax error
Regards
Ganesh
|