Results 1 to 5 of 5

Thread: Reading Values of UserName & Password from external Source

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 1999
    Location
    Saudi Arabia, Gulf side, Qatif
    Posts
    142

    Reading Values of UserName & Password from external Source

    I have the following line in my web.config file

    <identity impersonate="true" userName="XXXXXX" password="XXXXXXX"/>

    I am looking for a way to read the user name and password parameters from other source file such as text file been saved in other server

    Please assist

    Many thanks
    On error goto vbforums.com

  2. #2
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,597

    Re: Reading Values of UserName & Password from external Source

    You shouldn't use sensitive info in web.config in the first place.
    Also text files cannot read parameters and this seems suspicious so i can't help.
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  3. #3
    Smooth Moperator techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,531

    Re: Reading Values of UserName & Password from external Source

    What do you mean "on other server" ???

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jul 1999
    Location
    Saudi Arabia, Gulf side, Qatif
    Posts
    142

    Re: Reading Values of UserName & Password from external Source

    What I mean is that I want to save the password in a text file saved in file share server and then let web.config read it. the purpose of this is to enable my VB6 program changing the password in the text file instead of logging to the server and edit the web.conig.
    On error goto vbforums.com

  5. #5
    Frenzied Member KGComputers's Avatar
    Join Date
    Dec 2005
    Location
    Cebu, PH
    Posts
    2,020

    Re: Reading Values of UserName & Password from external Source

    http://www.hanselman.com/blog/AvoidU...nInASPNET.aspx

    the purpose of this is to enable my VB6 program changing the password in the text file instead of logging to the server and edit the web.conig.
    So, vb6 program will read the web.config file and at the same time,
    logs password in the text file?

    Since your first post is about impersonation, here's supplementary
    reading on impersonation.
    Impersonation In ASP.NET
    CodeBank: VB.NET & C#.NET | ASP.NET
    Programming: C# | VB.NET
    Blogs: Personal | Programming
    Projects: GitHub | jsFiddle
    ___________________________________________________________________________________

    Rating someone's post is a way of saying Thanks...

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