CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: How would i run my application as a admin insted of rightlicking and choose rus a

    Quote Originally Posted by summey View Post
    I need to have the the admin credentials stored inside my application
    Do you think that this is a good idea? What happens if the account or domain changes? Would that break your application?

  2. #17
    Join Date
    Jun 2008
    Posts
    2,477

    Re: How would i run my application as a admin insted of rightlicking and choose rus a

    Quote Originally Posted by Arjay View Post
    Do you think that this is a good idea? What happens if the account or domain changes? Would that break your application?
    I asked the same thing, but got the reply

    Quote Originally Posted by summey View Post
    no they wont have a clue what creds are in the application i just want to authenticated the application to it runs as a admin instead of having to right lick and run it as a admin then entering creds .... i will be changing the password for that account with in my app using updates for the program...
    So who knows.

  3. #18
    Join Date
    Dec 2008
    Posts
    18

    Re: How would i run my application as a admin insted of rightlicking and choose rus a

    the account wont change it will be static administer account i set up in AD and monitor it for use other then being stored inside my code to run this app i just dont know how to do that.... . No way it can be changed unless someone decompiles my app changes it and recompiles it... highly unlikely ... all this does iis unlock locked out users right now i have list the locked out users in a combo box... also im going to set up updates when i build this app so it checks for updates so once a month i can change the password re build and when my app is executed it will look for updates and changes the password the user using it hasnt a clue whats going on except he is unlocking accounts.
    it works great i just want a normal users account to be able to run this one app as a admin so it can unlock that locked out users.

    Thank you for your time.

  4. #19
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: How would i run my application as a admin insted of rightlicking and choose rus a

    Storing logon hardcoded account information inside the app is a security issue - it's not about changing the hardcoded information and recompiling the app, it's about gaining access to the information.

    You may consider hosting a service for this functionality. The service can run under any account information and you can limit access to the service through AD. Then the client app simply connects to the service and wouldn't need any elevated permissions.

  5. #20
    Join Date
    Dec 2008
    Posts
    18

    Re: How would i run my application as a admin insted of rightlicking and choose rus a

    Quote Originally Posted by Arjay View Post
    Storing logon hardcoded account information inside the app is a security issue - it's not about changing the hardcoded information and recompiling the app, it's about gaining access to the information.

    You may consider hosting a service for this functionality. The service can run under any account information and you can limit access to the service through AD. Then the client app simply connects to the service and wouldn't need any elevated permissions.
    Where would be a good place to read up on how to do something like that?

    Thank you for your time
    -Summey

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured