B
Bryan Yeo
Was trying to remove a user from the AD.
DirectoryEntry entry = new DirectoryEntry("LDAP://domain","username",
"password");
DirectoryEntries entriesChild = entry.Children;
DirectoryEntry gpMemberEntry = new DirectoryEntry("LDAP://" + strname);
entry.Children.Remove(gpMemberEntry);
Can anyone tell me whats wrong?
Thanks
Bryan
DirectoryEntry entry = new DirectoryEntry("LDAP://domain","username",
"password");
DirectoryEntries entriesChild = entry.Children;
DirectoryEntry gpMemberEntry = new DirectoryEntry("LDAP://" + strname);
entry.Children.Remove(gpMemberEntry);
Can anyone tell me whats wrong?
Thanks
Bryan