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

  • Thread starter Thread starter moi
  • Start date Start date
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 ..
 
Back
Top