I'm having an issue removing a person from a group. I receive the following error:
The server is unwilling to process the request. (Exception from HRESULT: 0x80072035)
Here's my code (Sorry it's in VB.NET :-) )
The sGroupDN is the DN of the group I'm trying to remove the person from.
We are at Windows 2003 Functional level in the forest and domain.
I get the error on the CommitChanges method.
Private Sub removeGroup(ByVal sGroupDN As String, ByVal sUID As String)
Dim entry As New DirectoryEntry("LDAP://MRP03:389/" & sGroupDN, cLdapUID, cLdapPWD, AuthenticationTypes.Secure)
Using entry
Try
entry.Properties("member").Remove("CN=Bob Smith")
entry.CommitChanges()
Catch ex As Exception
writeLog("ERROR - REMOVE GROUPS: " & sUID & " | " & ex.Message.ToString)
End Try
End Using
End Sub