473,503 Members | 1,674 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

0x80070005 (E_ACCESSDENIED)) when i add a user to a group

moi
Hello,
I have make a Active Directory Membership to change the user password in the
active directory with ASP.NET2 after a logo page, and it works fine. BUT i
add this code when the password is changed to Add this user in a group, but
i get an 0x80070005 (E_ACCESSDENIED)... : why ? the user is well
authentified with my logon.aspx page .. no ?

Dim objgroup, objuser

objgroup =
GetObject(LDAP://CN=mygroup,OU=Groupe,OU=myusers,dc=domain,dc=com)

objuser = GetObject(LDAP://cn=user,ou=users,dc=domain,dc=com)

objgroup.Add(objuser.adspath)

Thanks a lot ..
Apr 24 '06 #1
1 2105
moi
Ok !
I found that i have to use directoryentry with login and password ...

Thanks !

"moi" <mo*@moi.fr> a écrit dans le message de news:
%2****************@TK2MSFTNGP05.phx.gbl...
Hello,
I have make a Active Directory Membership to change the user password in
the active directory with ASP.NET2 after a logo page, and it works fine.
BUT i add this code when the password is changed to Add this user in a
group, but i get an 0x80070005 (E_ACCESSDENIED)... : why ? the user is
well authentified with my logon.aspx page .. no ?

Dim objgroup, objuser

objgroup =
GetObject(LDAP://CN=mygroup,OU=Groupe,OU=myusers,dc=domain,dc=com)

objuser = GetObject(LDAP://cn=user,ou=users,dc=domain,dc=com)

objgroup.Add(objuser.adspath)

Thanks a lot ..

Apr 25 '06 #2

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

Similar topics

12
2774
by: Google Mike | last post by:
You know, while working on my moonlight corporation's LAMP project at home this weekend, I couldn't help but wonder if people writing similar projects are solving similar problems with having to...
0
1296
by: info | last post by:
This is to announce the inaugural meeting of the Philadelphia XML Users Group. If you're in the Philadelphia area, and you have an interest in XML and related standards in publishing, you're...
1
1377
by: Philadelphia XML User Group | last post by:
Philadelphia XML Users' Group NEXT MEETING: June 13th, 6:00 to 8:00 pm The Users' Group is an open organization that invites participation from anyone in the Delaware Valley and Greater...
0
1970
by: Brian Loesgen | last post by:
The next San Diego .Net User Group meeting is Tuesday, November 25, 2003 at the Scripps Ranch Library. Scripps Ranch Library 10301 Scripps Lake Drive San Diego, CA 92131-1026 Please join us...
0
1780
by: Lester Knutsen | last post by:
Washington Area IBM Informix/DB2 User Group meeting - June 7, 2005 -------------------------------------------------------------- Mark the date, our next user group meeting will be another...
3
1612
by: cameron | last post by:
I need to find a user's memberOf list, (and all nested groups), very quickly. My current method is to iterate through the the results of the the MemberOf property and then do the same to each of...
17
2653
by: TC | last post by:
In the past I always regarded user/group security as fairly tight. It is tricky to implement, but once implemented properly, it can't be cracked except through a dedicated effort. Recently,...
1
2731
by: jatinder.saundh | last post by:
Hi, How do I give create database privielege to a specific user/group at a particular db2 instance ? I read about various authorities like SYSCTRL etc. but I am interested in giving only Create...
4
1430
by: bradallen | last post by:
I've been visiting Portland, OR on a multi-week client project, and am wondering if there are any local Python or Zope programmers in the Portland area. I am only going to be here for a couple...
2
2690
by: henryrhenryr | last post by:
Hi I am trying to debug an upload script and I need to know what the user/group is of the php-script that's running. My problem is that the webserver settings have '48' as the user/group -...
0
7199
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,...
0
7074
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...
0
7273
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,...
1
6982
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...
0
5572
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5000
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4667
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3161
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...
0
374
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...

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.