error when updating user attributes

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi all
i get a error when update user attributes
the error is "General access denied error "

the code is

Dim strAttrName As String = Me.TextBox1.Text
Dim strAttrValue As String = Me.TextBox2.Text

Dim objADObject As New
DirectoryEntry("LDAP://CN=ukosucu1,CN=Users,DC=proje,DC=com")
Dim strOldValue As String
Try

If objADObject.Properties(Me.TextBox1.Text).Count > 0 Then
'özelligin degerini okuma
-
objADObject.Properties("givenName")(0) ="new value"
Else
objADObject.Properties("givenName").Add("new value")
End If
objADObject.CommitChanges()
Catch objExp As Exception
'MsgBox("Error setting object: " & strADsPath)
MsgBox("Error: " + objExp.Message)
Return
End Try

can you help me?
 
Anonymous web access? If so, this is normal behavior, as you would not want
any old hacker in the world updating your Active Directory. Either hook the
logged in user to their AD token, or (even easier) switch to windows
authentication and turn off anonymous access in IIS. Then, only those without
permissions to update AD get this errror.


---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
so, how can i pass the security problem?
is there else method to update user profiles over web without security
problem?
thanks
 
Back
Top