We have an application in manged C++ that resets userpasswords in Active
Directory with a new temporary password and then sets the user must change at
next login with the following code:

if(user->Properties->Contains("pwdLastSet"))
{
Object* pwdSet = __box(0);
user->Properties->get_Item("pwdLastSet")->set_Item(0, pwdSet);
}

where user is a directoryEntry object. After applying .Net Framework 1.1
Service pack 1 the previous code gets a "Specified methos not supported
error". It is clearly the Service Pack causing this because I have run the
app on other boxes without the SP and removed the SP from this box. All, of
the other Active Directory calls in the application (reset password, remove
account lock out) work. Any ideas?

Re: .Net Framework 1.1 Service Pack 1 - Active Directory by Willy

Willy
Wed Sep 29 08:54:37 CDT 2004

try:

user->Properties->get_Item("pwdLastSet")->set_Value(pwdSet);

Willy.

"andyo" <andyo@discussions.microsoft.com> wrote in message
news:D5559534-74B2-4A57-9E0C-07B76D48DDAC@microsoft.com...
> We have an application in manged C++ that resets userpasswords in Active
> Directory with a new temporary password and then sets the user must change
> at
> next login with the following code:
>
> if(user->Properties->Contains("pwdLastSet"))
> {
> Object* pwdSet = __box(0);
> user->Properties->get_Item("pwdLastSet")->set_Item(0, pwdSet);
> }
>
> where user is a directoryEntry object. After applying .Net Framework 1.1
> Service pack 1 the previous code gets a "Specified methos not supported
> error". It is clearly the Service Pack causing this because I have run the
> app on other boxes without the SP and removed the SP from this box. All,
> of
> the other Active Directory calls in the application (reset password,
> remove
> account lock out) work. Any ideas?