473,806 Members | 2,771 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Tex t
Dim strAttrValue As String = Me.TextBox2.Tex t

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

If objADObject.Pro perties(Me.Text Box1.Text).Coun t > 0 Then
'özelligin degerini okuma
-
objADObject.Pro perties("givenN ame")(0) ="new value"
Else
objADObject.Pro perties("givenN ame").Add("new value")
End If
objADObject.Com mitChanges()
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 1469
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.Tex t
Dim strAttrValue As String = Me.TextBox2.Tex t

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

If objADObject.Pro perties(Me.Text Box1.Text).Coun t > 0 Then
'özelligin degerini okuma
-
objADObject.Pro perties("givenN ame")(0) ="new value"
Else
objADObject.Pro perties("givenN ame").Add("new value")
End If
objADObject.Com mitChanges()
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.Tex t
Dim strAttrValue As String = Me.TextBox2.Tex t

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

If objADObject.Pro perties(Me.Text Box1.Text).Coun t > 0 Then
'özelligin degerini okuma
-
objADObject.Pro perties("givenN ame")(0) ="new value"
Else
objADObject.Pro perties("givenN ame").Add("new value")
End If
objADObject.Com mitChanges()
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
2752
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 render as best as they can elements (and/or attribute too? can't remember) that they ignore. e.g.: I know that fieldset will be rendered as a block level element in NS 4.7+, almost just like div.
2
6822
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, ByVal E As DataGridCommandEventArgs) Try
8
9037
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, although it varies over time. The daemon that gets the error exits and restarts a few seconds later. Usually it's fine then, but sometimes the error happens three or more times in a row. Occasionally, instead, we get "ERROR: Cannot insert a...
5
7828
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 Files\IBM\SQLLIB\bin\db2.exe CREATE TOOLS CATALOG SYSTOOLS USE EXISITING DATABASE DWCTRLDB FORCE" to initialize and\or migrate the DB2 tools catalog database. The return value is "5104".
4
2379
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 two fields: a primary key and another holding a string. In table B there are three fields: a primary key, a foreign key (which links to the primary key in A) and other field holding a string.
0
3237
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 given all the attributes which are needed, for the user, in the code and also the proper path where the user has to be added. Please have a look at my code CODE] // This is a class file which stores all the info required for the user
0
2921
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 dbms_lob.writeappend, I am getting the following error..Command text was not set for the command object. I've researched this in the net as much as I could, but I'm lost in what I am doing wrong. Can you help please? Here is my code... ...
0
6613
by: .nLL | last post by:
Erorr is --------------------- Microsoft VBScript runtime error '800a0046' Permission denied /a.asp, line 3 -----------------------
0
9719
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9598
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10623
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10373
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5683
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4330
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3852
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3010
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.