2009-03-11 4 views
1

J'ai une instance de SQL Server 2005 Reporting Services vers l'extérieur (Internet). Je veux activer l'authentification par formulaires à l'aide d'ASP.NET 2.0. Plusieurs sites Web expliquent comment configurer cela pour fonctionner, mais aucune des instructions n'aboutit à une solution complète. Est-ce que quelqu'un a des instructions claires qui sont faciles à suivre et qui fonctionneront?Comment puis-je configurer SSRS 2005 pour utiliser l'authentification par formulaire ASP.NET 2.0?

J'utilise Windows Server 2003

Répondre

1

Lisez la section "Intégration de Reporting Services dans une application ASP.NET" de MSDN - Best Practices for Configuring Forms Authentication in Reporting Services 2005.
Vous devez modifier Web.config dans les applications SSRS et ASP.NET: «... définissez les attributs des sections forms et machineKey du fichier Web.config sur les mêmes valeurs pour toutes les applications participant à l'authentification par formulaires partagée ... "

<configuration> 
    <system.web> 
    <authentication mode="Forms" > 
     <!-- The name, protection, and path attributes must match 
      exactly in each Web.config file. --> 
     <forms loginUrl="login.aspx" 
     name=".ASPXFORMSAUTH" 
     protection="All" 
     path="/" 
     timeout="30" /> 
    </authentication> 

    <!-- Validation and decryption keys must exactly match and cannot 
     be set to "AutoGenerate". The validation and decryption 
     algorithms must also be the same. --> 
    <machineKey 
     validationKey="C50B3C89CB21F4F1422FF158A5B42D0E8DB8CB5CDA1742572A487D9401E3400267682B202B746511891C1BAF47F8D25C07F6C39A104696DB51F17C529AD3CABE" 
     decryptionKey="8A9BE8FD67AF6979E7D20198CFEA50DD3D3799C77AF2B72F" 
     validation="SHA1" /> 
    </system.web> 
</configuration> 

Voir MSDN - Forms Authentication Across Applications pour plus de détails.

Aussi, installez Reporting Services samples for Microsoft SQL Server 2005 SP2 et regardez dans "Sample FormsAuthentication"

Questions connexes