MembershipProvider and ADAM



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




.



Relevant Pages

  • Re: Group Authentication against ADAM using WSS v3 provider model.
    ... Do you remember what role provider you were using when this was working, ... ADAM) for membership and SQL for roles, ... Joe Kaplan-MS MVP Directory Services Programming ...
    (microsoft.public.windows.server.active_directory)
  • Re: ADAM and IIS auth
    ... Thanks Joe. ... I'll let you know if we need the role provider - hopefully not. ... if you really want to do Windows basic auth and use domain ... provide one for ADAM. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Architecture: Custom Profile Provider with Active Directory Membership
    ... While you can perform insert/update/delete operations on users, the one thing that you can't change is the username. ... So, it stands to reason that if you perform a rename in AD, you are doing it outside of the context of the MembershipProvider, and unfortunately, it would be up to you to relocate profile information for any accounts that you changed the name of. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: MembershipProvider, ADAM and userProxy
    ... in ADAM via bind proxies and simple bind). ... I have already started working on an ADAM membership ... browse and validate using the Membership provider... ... Except that if I have a user of userProxy class in ADAM, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: ADAM and IIS auth
    ... Writing a role provider for ADAM isn't hard. ... Still, if you really want to do Windows basic auth and use domain accounts, ... it's true that there are currently no hooks for IIS to do authentication ...
    (microsoft.public.windows.server.active_directory)