Networking Forums

Networking Forums > Computer Networking > Windows Networking > Calling 'NetUserChangePassword' for changing other user password

Reply
Thread Tools Display Modes

Calling 'NetUserChangePassword' for changing other user password

 
 
Shlom
Guest
Posts: n/a

 
      07-17-2008, 10:57 AM
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.
 
Reply With Quote
 
 
 
 
Shlom
Guest
Posts: n/a

 
      07-20-2008, 07:55 AM
On Jul 17, 1:57*pm, Shlom <devsh...@gmail.com> 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

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing password abay Wireless Networks 0 03-10-2006 06:15 PM
Changing nis password Mauricio Tavares Linux Networking 0 08-09-2005 12:09 PM
Changing my password Gordon Wireless Internet 5 06-02-2005 12:12 AM
Password changing Yvonne Windows Networking 0 11-12-2003 05:57 PM
changing network password JBG Windows Networking 1 09-02-2003 12:34 AM



1 2 3 4 5 6 7 8 9 10 11