i connect to ACtiveDirectory as Administratotr .
hr = pUser->Put(L"pwdLastSet",svar);
hr = pUser->SetInfo();
why hr = E_ACCESSDENIED
i connect to ACtiveDirectory as Administratotr .
hr = pUser->Put(L"pwdLastSet",svar);
hr = pUser->SetInfo();
why hr = E_ACCESSDENIED
ok ifind it :)) i had to use ADsOpenObject() for connecting to object .but i used ADsGeObject()