Re: MembershipProvider, ADAM and userProxy



Thank you Steven,
Your help is appreciated.

-Martin

"Steven Cheng[MSFT]" <stcheng@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:xUEZXxMzGHA.3392@xxxxxxxxxxxxxxxxxxxxxxxx
Hi Martin,

Yes, you're right. After lookup the diassembly code of the
ActiveDirectoryMembershipProvider, I found the following code fragement
which hard code the DirectorySearcher's filter as (objectClass = user):

===============================
private MembershipUser FindUser(DirectoryEntry containerEntry, string
filter, SearchScope searchScope, bool retrieveSAMAccountName, out
DirectoryEntry userEntry, out bool resetBadPasswordAnswerAttributes, out
string sAMAccountName)
{
MembershipUser user1 = null;
DirectorySearcher searcher1 = new DirectorySearcher(containerEntry);
searcher1.SearchScope = searchScope;
searcher1.Filter = "(&(objectCategory=person)(objectClass=user)" +
filter + ")";

...............................

}
================================

So I agree with you that building a custom provider would be a reasonable
solution. Also, you can even make it more flexible(add more configurable
options) so that it can fit more scenarios.

For building custom membership providers, here are some good reference
maybe helpful to you:


#Source Code for the Built-in ASP.NET 2.0 Providers Now Available for
Download
http://weblogs.asp.net/scottgu/archive/2006/04/13/442772.aspx

#Provider Toolkit
http://msdn.microsoft.com/asp.net/downloads/providers/default.aspx


Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no
rights.






.



Relevant Pages

  • Re: MembershipProvider, ADAM and userProxy
    ... private MembershipUser FindUser(DirectoryEntry containerEntry, string ... filter, SearchScope searchScope, bool retrieveSAMAccountName, out ... So I agree with you that building a custom provider would be a reasonable ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Help with configuring Connection Filtering - RBL - zen.spamhau
    ... provider that you want to match in this connection filter, ... Click Match Filter Rule to the Following Mask, ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)
  • re: [msh] What is the -Filter param for on get-property, get-childit
    ... In a SQL provider, for example, it would probably be additions: ... Allowing the provider to do the filtering is usually faster, sometimes less powerful, and inconsistent by design: ... TotalMinutes: 0.00887455 ... What is the Filter for? ...
    (microsoft.public.windows.server.scripting)
  • Re: Do you have filters for spam messages on cell phones?
    ... Talk to your email provider. ... like spam filter to keep unsolicited messages from bombarding. ... wireless service provider. ...
    (microsoft.public.windowsxp.hardware)