Medium Trust and oledb access

Discussion in 'ASP .Net Security' started by John Dalberg, Jul 9, 2004.

  1. John Dalberg

    John Dalberg Guest


    I am configuring a server for a shared hosting environment and want to lock
    down the server. I changed the trust level to medium but all MySQL apps
    can't access any MySQL database. I understand that oledb needs full trust.

    Is there a way around this like changing a setting in the
    web_mediumtrust.config file? One solution I read was to place database
    access assmebly in the assembly. I don't really want to do this everytime a
    programmer creates a new one.

    My other questions is do I really need medium trust if all sites use
    impersonation and and not allow overrides in machine.config? Is setting
    impersonation enough for locking the sites so that they can't access the
    registry, event log, files outside their folder.. etc?

    John Dalberg, Jul 9, 2004
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.