I'm trying to build a simple Web interface for account management with ADAM, and it almost works. The problem may be a lack of understanding on my part, but neither Google nor MSDN have yielded a clue.
Here's the puzzle:
In order to drive some ASP.NET controls for the administration interface, I would like to use an ObjectDataSource. It's a small directory and the interface only needs to be very simple.
The membership provider correctly authenticates ADAM accounts, and I find that the supplied Web Site configuration tool in VS can manage these accounts as well. Cool.
The ActiveDirectoryMembershipProvider is documented as having GetUser and GetAllUsers methods, but it is also noted that these methods will throw a NotSupportedException, because Active Directory does not provide all of the required attributes. This is
absolutely true, on both .NET 2.0 and .NET 3.5 I get exceptions because "The property 'LastActivityDate' is not supported by the Active Directory membership provider".
So, it must be possible for ASP.NET Membership facilities to query ADAM, but perhaps using some other methods. Any ideas how?
The closest thing to a solution that I've found is the workaround here:
Stuart Ellis
0 Points
1 Post
ActiveDirectoryMembershipProvider with ObjectDataSource
Jan 30, 2008 01:19 PM|LINK
Hi,
I'm trying to build a simple Web interface for account management with ADAM, and it almost works. The problem may be a lack of understanding on my part, but neither Google nor MSDN have yielded a clue.
Here's the puzzle:
So, it must be possible for ASP.NET Membership facilities to query ADAM, but perhaps using some other methods. Any ideas how?
The closest thing to a solution that I've found is the workaround here:
http://forums.asp.net/p/979834/1250559.aspx#1250559
Thanks in advance
membership adam activedirectory