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

M

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 ..
 
Joined
May 19, 2006
Messages
1
Reaction score
0
Solution

I am having the exact same problem. Can you please explain in more detail how you solved it, perhaps even with some code snips...

I'm also having problems deleting users. If I call DirectoryEntry.DeleteTree() after fetching the user, it throws an E_ACCESSDENIED excepion.

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,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top