error when updating user attributes

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?
 
G

Guest

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!
***************************
 
G

Guest

so, how can i pass the security problem?
is there else method to update user profiles over web without security
problem?
thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top