locked
Active Directory access from WebPart under WSS RRS feed

  • Question

  • User-734430792 posted

    Hello!

    I've made WebPart library which uses class library to access ActiveDirectory (using System.DirectoryServices, LDAP protocol) under WSS.

    WebPart library and my library are both strongly named and deployed to WSS portal (into bin\ directory, not into GAC). All works fine if site has Full trustLevel, but if I set trustLevel to WSS_Medium, I've got SecutiryError Exception in method which creates DirectoryEntry instance.

    What's wrong? What additional permissions I must specify to run WebParts under WSS_Meduim trust-level?

    Saturday, February 18, 2006 9:05 AM

All replies

  • User1354132231 posted
    You are going to need to customize your CAS policy here and add DirectoryServicesPermission with unrestricted access.  It does not ship by default.
    Wednesday, February 22, 2006 10:33 AM