<!-- Membership Provider --> <membership defaultProvider="MyADMembershipProvider" userIsOnlineTimeWindow="15"> <providers> <clear /> <add name="UmbracoMembershipProvider" type="umbraco.providers.members.UmbracoMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Another Type" passwordFormat="Hashed" /> <add name="UsersMembershipProvider" type="umbraco.providers.UsersMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" passwordFormat="Hashed" /> <!-- THIS IS THE NEW PROVIDER --> <add name="MyADMembershipProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ADConnectionString" connectionProtection="Secure" connectionUsername="username" connectionPassword="password" attributeMapUsername="sAMAccountName" /> <!-- END OF AD PROVIDER CODE --> </providers> </membership>
umbracoSettings.config
<providers> <users> <!-- if you wish to use your own membershipprovider for authenticating to the umbraco back office --> <!-- specify it here (remember to add it to the web.config as well) --> <DefaultBackofficeProvider>MyADMembershipProvider</DefaultBackofficeProvider> <!-- <DefaultBackofficeProvider>UsersMembershipProvider</DefaultBackofficeProvider> --> </users> </providers>
When I try to identify a user the umbraco returns the next error
Could not load file or assembly 'Examine.XmlSerializers' or one of STIs dependencies. The system can not find the file specified
LDAP provider returns Could not load file or assembly 'Examine.XmlSerializers'
Hi everyone,
I am trying to configure an installation of umbraco 4.7 with Secure login to an LDAP connection. I modified the web.config as specified in the guide http://msdn.microsoft.com/en-us/library/ms998360.aspx
web.config
<connectionStrings>
<add name="ADConnectionString" connectionString="LDAPS://IP:PORT/ou=XX,dc=XX,dc=XXXXX" />
<remove name="LocalSqlServer" />
</connectionStrings>
<!-- Membership Provider -->
<membership defaultProvider="MyADMembershipProvider" userIsOnlineTimeWindow="15">
<providers>
<clear />
<add name="UmbracoMembershipProvider" type="umbraco.providers.members.UmbracoMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Another Type" passwordFormat="Hashed" />
<add name="UsersMembershipProvider" type="umbraco.providers.UsersMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" passwordFormat="Hashed" />
<!-- THIS IS THE NEW PROVIDER -->
<add name="MyADMembershipProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ADConnectionString" connectionProtection="Secure" connectionUsername="username" connectionPassword="password" attributeMapUsername="sAMAccountName" />
<!-- END OF AD PROVIDER CODE -->
</providers>
</membership>
umbracoSettings.config
<providers>
<users>
<!-- if you wish to use your own membershipprovider for authenticating to the umbraco back office -->
<!-- specify it here (remember to add it to the web.config as well) -->
<DefaultBackofficeProvider>MyADMembershipProvider</DefaultBackofficeProvider>
<!-- <DefaultBackofficeProvider>UsersMembershipProvider</DefaultBackofficeProvider> -->
</users>
</providers>
When I try to identify a user the umbraco returns the next error
Could not load file or assembly 'Examine.XmlSerializers' or one of STIs dependencies. The system can not find the file specified
Its a bug or I'm doing anything wrong?
Same here... i'm using umbraco 4.7.1 version
Edit:
But i test this in another enviroment and worked... probably was a bad LDAP configuration.
is working on a reply...