Solved

netusersetinfo as a standard user?

Posted on 2007-03-21
5
640 Views
Last Modified: 2008-05-31
We have a web application running in IIS/Coldfusion.

One of the requirements of the app is that users can change their domain passwords from within the web app.  This is necessary as not all users of the app will be domain users (ie do not log onto machines on the domain, they authenticate agaisnt the domain solely for acces to the app).

We are using HP ProtectTools authentication services for domain authentication, meaning that all password functions must use their PwdGenUtil.dll.

Our web developer has written the code to change passwords using the dll and thisworks perfectly when logged in as a user with domain administration privileges, however it fails with an 'access denied' erro when run as a standard user (we have put the same code into a vbscript and tested at the command prompt and get the same results there).

Having spoken to HP, their code uses 'netusersetinfo' to change the password.  Reading up on this function, it would seem that this it requires admin rights on the domain to work.

Is there anything we can do to get this working as a standard user (short of granting all users the right to change passwords, which is not really an option!).

Thanks
Richard
0
Comment
Question by:richardchesterton
  • 2
5 Comments
 
LVL 34

Expert Comment

by:Dave_Dietz
ID: 18773697
Is the PwdGenUtil.dll instantiated as a COM+ component in your password changing app?

Dave Dietz
0
 

Author Comment

by:richardchesterton
ID: 18791773
Hi Dave

Thanks for your response.

I forwarded your question t our web developer and his response was:

"yes, I believe so. I think that anytime any code has to interact with any system components, the only way to do this is through creating a COM object and passing the data around through that."

Hardly conclusive, but unfortunately that's the best I can get at this stage.  If you have any way of clarifying this, please let me know (I am no expert in coding or web creation).

Thanks
Richard
0
 
LVL 34

Accepted Solution

by:
Dave_Dietz earned 500 total points
ID: 18798044
It may be possible to set the DLL up in a COM+ package set to activate as a Server package.

This way you can set the identity of the package to that of an administrator and *just* the DLL will run with elevated privileges.

May want to bring this idea up with your developer....  :-)

Dave Dietz
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
In-place Upgrading Dirsync to Azure AD Connect
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question