Re: Calling 'NetUserChangePassword' for changing other user password
- From: Shlom <devshlom@xxxxxxxxx>
- Date: Sun, 20 Jul 2008 00:55:59 -0700 (PDT)
On Jul 17, 1:57 pm, Shlom <devsh...@xxxxxxxxx> wrote:
Hi,
I have user Target and Changer on domain (one of the following
servers: 2000,2003 and 2008)
In my program (C/C++), I perform a logon via the function
'WNetAddConnection2' with user Changer user and then I call
'NetUserChangePassword' with the Target user...
This works fine, BUT:
I want to know how is it possible that even a limited user can do such
an operation (logon via 'WNetAddConnection2' and then change pass with
'NetUserChangePassword' for the target user)
In the MSDN it clearly says:
"The default ACL permits only Domain Admins and Account Operators to
call this function. On a member server or workstation, only
Administrators and Power Users can call this function."
=> how a limited user make this operation succeeded?
Pls let me know what you think.
I using a limited user.
but now I have a bigger issue - pls note:
In the MSDN for NetUserChangePassword there is a note:
"Windows NT: A server or domain can be configured to require a user
to log on before changing the password on a user account. In that
case, only members of the Administrators or Account Operators local
group or the user can change the password for a user account. If logon
is not required, a user can change the password for any user account,
as long as the user knows the current password."
This is the exact scenario I'm having.
I just want to know, why the MSDN specifies only win NT? Is it
possible that this is the behavior for other OS? where can I find a
documentation for that?
tx
.
- References:
- Prev by Date: Copying directory and file structure, while retaining permissions
- Next by Date: Re: Copying directory and file structure, while retaining permissions
- Previous by thread: Calling 'NetUserChangePassword' for changing other user password
- Next by thread: Re: Unable To Ping Outside Windows 2003 Server
- Index(es):
Relevant Pages
|