473,325 Members | 2,442 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

error when updating user attributes

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?
Nov 18 '05 #1
2 1452
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!
***************************

"Mesut KoÅŸucu" wrote:
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?

Nov 18 '05 #2
so, how can i pass the security problem?
is there else method to update user profiles over web without security
problem?
thanks
"Cowboy (Gregory A. Beamer) - MVP" wrote:
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!
***************************

"Mesut KoÅŸucu" wrote:
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?

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: DU | last post by:
Hi! I really need to understand what is so-called browser error correction mechanisms. Can you explain this? I read somewhere (and I no longer can find where I read that) that browsers try to...
2
by: Sean | last post by:
Hi, I am facing a problem, and i don't know why the error is being generated. I am updating a datagrid with an XML file. My code is Protected Sub UpdateCommand(ByVal Sender As Object,...
8
by: Kragen Sitaker | last post by:
ERROR: Cannot insert a duplicate key into unique index pg_class_relname_nsp_index We've been getting this error in our application every once in a while --- typically once an hour to once a day,...
5
by: azgoddess1 | last post by:
During the installation I get these error messages: ***** SQL1390C The environment variable DB2Instance is not defined or is invalid An error ocured while loading the command "C:\Program...
4
by: Geoff | last post by:
Hi I'm hoping somebody can help me with the following problem that has occurred to me. Suppose I have two tables in an SQL Server database. Let's call these tables A and B. Assume that A has...
0
by: rbukkara | last post by:
Hi, I have got the following error while trying to add a user in the LDAP Directory. javax.naming.NameNotFoundException: ; remaining name 'uid=vassila,ou=People,dc=cs,dc=uno,dc=edu' I have...
0
by: mbenedict | last post by:
I am rather new at this code and am attempting to modify existing code to use clob datatypes, which I have never used before. The database tables have been set up for clob data. When trying to use...
0
by: .nLL | last post by:
Erorr is --------------------- Microsoft VBScript runtime error '800a0046' Permission denied /a.asp, line 3 -----------------------
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.