Last post Mar 08, 2006 11:47 AM by dunnry
Feb 27, 2006 05:20 AM|whodunnit|LINK
How to add a user to a group in AD?? The following code does not work. Any help would be appreciated.
Dim gr As DirectoryEntry = New DirectoryEntry("LDAP://cn=group,ou=User,dc=auto,dc=com")
Dim ne As DirectoryEntry = New DirectoryEntry(LDAP://cn=username,ou=User,dc=auto,dc=com)
An unspecified error occurs. What could be the cause of this error? What is the solution?
Feb 27, 2006 01:04 PM|dunnry|LINK
Mar 06, 2006 01:46 AM|whodunnit|LINK
Yeah its a kinda obvious mistake. But after I changed it, it gives me another error. Something like
The server is unwilling to process your request.
The same program is able to create and delete users. I have granted NETWORK SERVICE complete control over the AD. So I do not think it is a problem with the permissions. What could be the cause of this error?
Mar 08, 2006 11:47 AM|dunnry|LINK