2009-10-09

2009-10-09 Friday - C# ActiveDirectory Application Authorization

Today I spent some time researching the integration of ActiveDirectory as the Authorization mechanism for users of a C# application (e.g. based on their Role / Group membership).

This line of code will return the user's current logon domain / name:
System.Security.Principal.WindowsIdentity.GetCurrent().Name;


Here are some of the more interesting links I found:

Howto: (Almost) Everything In Active Directory via C#
http://www.codeproject.com/KB/system/everythingInAD.aspx


http://directoryprogramming.net/

Managing Directory Security Principals in the .NET Framework 3.5
http://msdn.microsoft.com/en-us/magazine/dvdarchive/cc135979.aspx


Developing Applications Using Windows Authorization Manager
http://msdn.microsoft.com/en-us/library/aa480244.aspx

Application Security through Active Directory and ADAM
http://weblogs.asp.net/rosherove/archive/2004/03/04/83934.aspx


How To: Use ADAM for Roles in ASP.NET 2.0
http://msdn.microsoft.com/en-us/library/ms998331.aspx


TechArena Community > Technical Support > Computer Help > Windows Server > Active Directory
C# AD Scripting
http://forums.techarena.in/active-directory/



Other resources that may have some useful informaiton that I still need to review:

http://forums.techarena.in/active-directory/


C# Forums CSharpFriends > CSharpAspNetAnyQuestionIsOk > Setting Permissions
http://www.csharpfriends.com/forums/showpost.aspx?postid=9005

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/rolebasesecure.asp

.NET Framework Class Library
http://msdn.microsoft.com/en-us/library/ms229335.aspx


Integrating LDAP Active Directory into your ASP.Net Web Portal (C# or VB.NET)
http://www.dotnetactivedirectory.com/ActiveDirectory-ASP.NET-csharp-vb.html

http://forums.techarena.in/active-directory/

Using Forms Authentication with Active Directory
http://www.beansoftware.com/ASP.NET-Tutorials/Forms-Authentication-Active-Directory.aspx

How To Implement Forms-Based Authentication in Your ASP.NET Application by Using C# .NET
http://support.microsoft.com/?scid=kb%3Ben-us%3B301240&x=12&y=12

Active Directory in C# ASP .NET Web Applications
http://www.primaryobjects.com/CMS/Article61.aspx

Generic Authentication Call to Active Directory in C#
http://stackoverflow.com/questions/778990/generic-authentication-call-to-active-directory-in-c


How To: Use Forms Authentication with Active Directory in ASP.NET 2.0
http://msdn.microsoft.com/en-us/library/ms998360.aspx

How To: Encrypt Configuration Sections in ASP.NET 2.0 Using DPAPI
http://msdn.microsoft.com/en-us/library/ms998280.aspx

No comments:

Copyright

© 2001-2021 International Technology Ventures, Inc., All Rights Reserved.