Hello I trying to create intranet web application where user can change their profile information in AD but while doing this I am getting error message saying that:” System.UnauthorizedAccessException: General access denied error at System.DirectoryServices.Interop.IAds.SetInfo() at System.DirectoryServices.DirectoryEntry.CommitChanges()”. So can anyone suggest me how to solve this issue? Below my code:
I getting error message while calling CommitChanges, so can anyone suggest me what’s solution to this issue.Public sPath As String = "LDAP://domainname/OU=OITS,OU=ODI,DC=aa,DC=bb,DC=cc,DC=dd"
Dim dsUser As DirectoryEntry = New DirectoryEntry(sPath, "domain/AdminID", "AdminPassword", AuthenticationTypes.Secure)
dsUser = dsUser.Children.Find("CN=John")
With dsUser.Properties
.Item("displayname").Value = "John Doe"
End With
dsUser.CommitChanges()
Bookmarks