Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Frank Kremers 2 posts 73 karma points
    May 11, 2016 @ 13:59
    Frank Kremers
    0

    Change ConnectionString dynamically in code

    Hi,

    After install of the newest Umbraco CMS, the connection string to our SQL Server is of course visible in our web.config.

    We know that this file is not reachable for the clients, but someone who has access to the server could see it. And our companies policy is not to use passwords etc. in those config files.

    Is there a possibility to add the connectionstring dynamically somewhere in our code?

    I already searched in the forum for this, but I found no satisfied/old answers.

    Regards, Frank

  • Dennis Adolfi 1082 posts 6449 karma points MVP 6x c-trib
    May 11, 2016 @ 14:42
  • Frank Kremers 2 posts 73 karma points
    May 11, 2016 @ 14:55
    Frank Kremers
    1

    Hi Dennis,

    Thank you for your answer. We already tested this with Encryption and it indeed works. But we wondered if it is possible to change dynamically the umbracoDbDSN connectionstring in code, so we could add a custom encryption.

    Regards, Frank

  • Dennis Adolfi 1082 posts 6449 karma points MVP 6x c-trib
    May 11, 2016 @ 18:18
    Dennis Adolfi
    0

    I understand, just though I chip in in-case you had'nt thought about encryption. Not sure how to add it dynamically unfortunately. :(

    Best of luck to you!

Please Sign in or register to post replies

Write your reply to:

Draft