Solved

Passing domain user credential into windows user environment variable

Posted on 2010-11-16
5
1,010 Views
Last Modified: 2012-05-10
Hi there,

We have an application runnin on XP box which also a domain member desktop that basically  require username and password authentication. This application will not prompt to authenticate if we can specify the username and password when launching the application executable file (for e.g. : abc.exe /username=usr /password=pwd).
My question is whether it is possible to pass the windows domain user credential value into the username and password parameter above. I understand username variable (%username%) will work, but how about the password variable.

If someone can shed the light on how to achieve this, that would be much appreciated.

Cheers,
0
Comment
Question by:brothertu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 6

Accepted Solution

by:
sconstable earned 250 total points
ID: 34150629
There is no enviroment variable for password.  To pass a user credential you would have have the user save the password into a variable or file.  The other option is if the application would support passing a Kerberos token or NTLM LSA token to it.
0
 
LVL 1

Author Comment

by:brothertu
ID: 34151178
Thanks for your advice. Don't think this application support passing kerberos token or NTLM LSA (will confirm with the application developer). Don't really like to save domain user password in a plain text file, so are there any options that will make this work without doing password saving in a clear text.

Thanks,
0
 
LVL 66

Expert Comment

by:johnb6767
ID: 34151628
Any chance you can store a password for the server it connects to in  start>run>"control userpasswords2"

Not sure what the apps do, but maybe an option?
0
 
LVL 1

Author Comment

by:brothertu
ID: 34159691
Hi John,

Don't think it will work since the apps frontend client software is on the client XP machine in which the users will log into it using the domain credential and at the moment when a user launch that frontend application the user will be prompted for user and password against the application credential own database. And the end users just want some sort of 'single sign on' functionality which when they launch the application it will not prompting credential anymore and it just logged the users in. According to the developer we should be able to pass the windows logon domain environment variables when launching the application (for e.g. "abc.exe /username=usernamex /password=userpassword"). I understand the 'usernamex' might be easily replaced by %Username%, but I'm just wondering about the password, how could they will be passed without storing the password in a clear text.

Thanks,
0
 
LVL 66

Expert Comment

by:johnb6767
ID: 34161775
There is no variable for the password, or at least I have never heard of one..... Thats why I was wondering what the app actually did.....
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. 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

Always backup Domain, SYSVOL etc.using processes according to Microsoft Best Practices. This is meant as a disaster recovery process for small environments that did not implement backup processes and did not run a secondary domain controller that ne…
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

726 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