Clear text passwords and Oracle - arrrrrrgh - please help!

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default Clear text passwords and Oracle - arrrrrrgh - please help!

    Hi,

    I am working on a mobile application that consists of a number of handheld
    scanners, an Xml Web service and an Oracle 9i database in a highly secure
    environment. The .Net Compact Framework application running on the scanners
    executes Web service methods, which in turn execute Oracle database
    functions. The Web service and the Oracle database are running on separate
    servers. The Web service uses the Microsoft OLE DB driver for Oracle.

    The Web.config file contains a connection string in the <Appsettings>
    section that includes the Oracle username and password. The application
    simply reads this connection string and uses it internally to create a
    connection object. The idea is that we can't afford to expose these
    credentials in the connection string, because the firewall is reporting a
    security violation when the application runs.

    I am wondering what the best alternative is, if any. Preventing the username
    and password travelling down the wire from the Web server to the Oracle
    server is the main requirement, and preferably the DBA will have the option
    of changing the Oracle account details (ie a different username and
    password) at any time, therefore it would be preferable not to have the
    ASP.Net worker process (ASPNET) as the Oracle user. I'm assuming that this
    means that they want SQL Authentication and it therefore rules out Windows
    Authentication. Please let me know if I *can* still use Windows
    Authentication under these circumstances.

    I have played with the idea of using Impersonation but I understand that it
    cannot be used if the Oracle server is on a separate box to the Web server
    and also that connection pooling will be affected, which we can't afford.

    Can anyone please let me know if I can use either Windows Authentication or
    a Trusted Connection to provide a solution in these circumstances, or
    anything else!

    If I can use Windows Authentication with a Web.config entry <authentication
    mode="Windows" >, how can I allow the DBA to change the username/password,
    if indeed I can have a user other than ASPNET, without having a major impact
    on the system?

    If I can use a Trusted connection with a connection string something like
    "Data Source=MyOracleDB;Integrated Security=yes;" where do I specify the
    Oracle username/password?

    Preferably there will be no need for a code change if the DBA decides to
    change the Oracle username.

    Are there any alternatives, such as encryption, programmatic security or
    other forms of authentication?

    Please help, I am getting desperate! Many thanks.

    DJ



    John Smith Guest

  2. Similar Questions and Discussions

    1. Clear text in a PDF export
      We have a process at my company to create dynamic PDF documents. The "template" is create with xpath to the database element in the location that we...
    2. CLEAR INPUT TEXT problem
      hi, first i'll excuse for my english the problem is that i want to create a form when the user click on a inputtext is clear its content and let...
    3. Changing Expired Oracle Passwords w/ ASP
      Hi, We have a web application where we want a user to be able to change his/her password if the password has expired but we are unable to do this...
    4. Using Clear Text Authentication
      Hi Although I have been working with ASP for a number of years now, I have always used form/database based login mechanisms. The time has now...
    5. text is not clear
      Hello Annvee, It depends on how large the font might be, more often, small fonts will appear blurry on your screen. Here are some links to help...
  3. #2

    Default RE: Clear text passwords and Oracle - arrrrrrgh - please help!

    I've been looking into this also. What you need to do is use Impersonation.
    This allows a Web Service to run as a specific user. Set this user up with
    an OS Authenticated accout (ops$ in old language). In the web config file you
    put the username/password to impersonate, but to avoid the same cleartext
    problem you do something like this :

    <identity impersonate="true" username="encytped in the registry..."
    password="pointing at an encytped password in the registry..."

    in fact check out this article :

    [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;329290[/url]

    Regards

    Rob J





    "John Smith" wrote:
    > Hi,
    >
    > I am working on a mobile application that consists of a number of handheld
    > scanners, an Xml Web service and an Oracle 9i database in a highly secure
    > environment. The .Net Compact Framework application running on the scanners
    > executes Web service methods, which in turn execute Oracle database
    > functions. The Web service and the Oracle database are running on separate
    > servers. The Web service uses the Microsoft OLE DB driver for Oracle.
    >
    > The Web.config file contains a connection string in the <Appsettings>
    > section that includes the Oracle username and password. The application
    > simply reads this connection string and uses it internally to create a
    > connection object. The idea is that we can't afford to expose these
    > credentials in the connection string, because the firewall is reporting a
    > security violation when the application runs.
    >
    > I am wondering what the best alternative is, if any. Preventing the username
    > and password travelling down the wire from the Web server to the Oracle
    > server is the main requirement, and preferably the DBA will have the option
    > of changing the Oracle account details (ie a different username and
    > password) at any time, therefore it would be preferable not to have the
    > ASP.Net worker process (ASPNET) as the Oracle user. I'm assuming that this
    > means that they want SQL Authentication and it therefore rules out Windows
    > Authentication. Please let me know if I *can* still use Windows
    > Authentication under these circumstances.
    >
    > I have played with the idea of using Impersonation but I understand that it
    > cannot be used if the Oracle server is on a separate box to the Web server
    > and also that connection pooling will be affected, which we can't afford.
    >
    > Can anyone please let me know if I can use either Windows Authentication or
    > a Trusted Connection to provide a solution in these circumstances, or
    > anything else!
    >
    > If I can use Windows Authentication with a Web.config entry <authentication
    > mode="Windows" >, how can I allow the DBA to change the username/password,
    > if indeed I can have a user other than ASPNET, without having a major impact
    > on the system?
    >
    > If I can use a Trusted connection with a connection string something like
    > "Data Source=MyOracleDB;Integrated Security=yes;" where do I specify the
    > Oracle username/password?
    >
    > Preferably there will be no need for a code change if the DBA decides to
    > change the Oracle username.
    >
    > Are there any alternatives, such as encryption, programmatic security or
    > other forms of authentication?
    >
    > Please help, I am getting desperate! Many thanks.
    >
    > DJ
    >
    >
    >
    >
    RobJUK66 Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139