Solved

netusersetinfo as a standard user?

Posted on 2007-03-21
5
626 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
Comment Utility
Is the PwdGenUtil.dll instantiated as a COM+ component in your password changing app?

Dave Dietz
0
 

Author Comment

by:richardchesterton
Comment Utility
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
Comment Utility
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Resolve DNS query failed errors for Exchange
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …

771 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now