Bonjour,
J'utilise MOSS2007 et j'ai certains problèmes pour activer l'authentifcation par formulaires.
J'ai suivi les étapes de ces 2 sources :
1° source : le livre de Microsoft, Office Sharepoint Server 2007.
2° source : http://weblog.vb-tech.com/nick/archi...6/14/1617.aspx
Voilà le détail de mes démarches :
1- In the central administration, configure "Authentication providers" for the web application
=> Enable Anonymous access : checked
=> Authentication Type : Forms
=> Membership provider name: AspNetSqlMembershipProvider
2- Configure a database "aspnetdb" (for the server "XX\OfficeServers") to host users and credentials with the aspnet_regsql.exe tool.
(J'ai 2 serveurs SQL dans les services : OfficeServers and SqlExpress , quelqu'un sait-il la différence et lequel je dois utiliser ?).
3- In the web.config files of the Central Administration website and the one in my sharepoint application website, add those lines :
<connectionStrings>
<remove name="LocalSqlServer" />
<add name="LocalSqlServer" connectionString="data source=MOSS;Integrated Security=SSPI;Initial Catalog=aspnetdb" />
</connectionStrings>
4- Dans Visual Studio 2005, je crée un site web vide avec juste dans le fichier web.config les lignes <connectionStrings> ci-dessus, ensuite je vais dans le menu Website\ASP.NET Configuration.
L'onglet Security me donne toujours la même erreur:
There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store.
The following message may help in diagnosing the problem: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
Toutes les opéraions sont effectuées sur le serveur même, en local. Ais-je besoin de droits particuliers pour accéder à la DB ? Ou bien je dois configurer autre chose, sql provider,.. ?
Merci de me donner des pistes de solutions.
Partager