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 ..
 

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

Top