G
Guest
Hello,
I am trying to find the simplest way to work with ADAM (or any other AD)
and I have discovered the MembershipProvider class.... seems like it is
doing just about everything I need.
So, my project is developed on Windows XP, VS 2005 C# and I am not
targeting ASP.... but seems like this is the best forum for my question.
Here is my configuration file:
<configuration>
<connectionStrings>
<add name="AdamConnectionString"
connectionString="LDAP://localhost:389/O=Microsoft,C=US"/>
</connectionStrings>
<system.web>
<membership defaultProvider="MyADMembershipProvider">
<providers>
<add
name="MyADMembershipProvider"
connectionStringName="AdamConnectionString"
type="System.Web.Security.ActiveDirectoryMembershipProvider,
System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
description="ADAM Provider"
connectionProtection="None" />
</providers>
</membership>
</system.web>
</configuration>
In my code, I try to get the membership provider like so:
MembershipProvider provider =
(MembershipProvider)Membership.Providers["MyADMembershipProvider"];
And I get this error: "Unable to establish secure connection with the
server using SSL."
I have tried different combination, nothing works. Funny becuase if I use
the DirectoryServices classes, I can easily enumerate the content of my ADAM
store.
Is there an article or some reference somewhere to get me started with
providers and ADAM?
Thank you
-Martin
I am trying to find the simplest way to work with ADAM (or any other AD)
and I have discovered the MembershipProvider class.... seems like it is
doing just about everything I need.
So, my project is developed on Windows XP, VS 2005 C# and I am not
targeting ASP.... but seems like this is the best forum for my question.
Here is my configuration file:
<configuration>
<connectionStrings>
<add name="AdamConnectionString"
connectionString="LDAP://localhost:389/O=Microsoft,C=US"/>
</connectionStrings>
<system.web>
<membership defaultProvider="MyADMembershipProvider">
<providers>
<add
name="MyADMembershipProvider"
connectionStringName="AdamConnectionString"
type="System.Web.Security.ActiveDirectoryMembershipProvider,
System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
description="ADAM Provider"
connectionProtection="None" />
</providers>
</membership>
</system.web>
</configuration>
In my code, I try to get the membership provider like so:
MembershipProvider provider =
(MembershipProvider)Membership.Providers["MyADMembershipProvider"];
And I get this error: "Unable to establish secure connection with the
server using SSL."
I have tried different combination, nothing works. Funny becuase if I use
the DirectoryServices classes, I can easily enumerate the content of my ADAM
store.
Is there an article or some reference somewhere to get me started with
providers and ADAM?
Thank you
-Martin