search
Japanese Chinese Nederlands Espanol Italiano Deutsch Francais Twitter Rss Feeds
.NET Framework GroupsView
Deployment Server
.NET Distributed_Apps
.NET
.NET ADO.NET
.NET ASP.NET
.NET ASP.NET Security
.NET ASP.NET Webcontrols
.NET ASP.NET Web Services
.NET Clr
.NET Compact Framework
.NET Drawing
.NET Interop
.NET Micro Porting
.NET Performance
.NET Web Services
.NET Windows Forms
.NET Windows Forms Controls
.NET General
.NET Csharp
.NET Visual Basic
.NET Vc
.NET Security
.NET Xml
Scripting Jscript
Scripting Visual Basicscript
Scripting Wsh
Smartphone Developer
Visual Basic Com
Visual Basic Controls
Visual Basic Crystal
Visual Basic Database Ado
Visual Basic Syntax
Visual Basic Vista Compatibility
Visual Basic Winapi
Vc Atl
Vc Debugger
Vc Language
Vc Mfc
Vc Stl
Visio Developer Visual Basica
Vsnet Debugging
Windows Powershell
Windowsce Embedded Vc
Xml
Xsl

Group SummariesView
.NET Framework
Access
BizTalk
Certifications
CRM
DDK
Exchange Server
FoxPro
French
French .NET
Games
German
German .NET
Graphic Design
IIS
Internet
ISA Server
Italian
Italian .NET
Maps
MCIS
Miscellaneous
Mobile Application Development
Money
MSN
Networking
Office
Ops Mgr
Publisher
Security
SharePoint
Small Business
Spanish
Spanish .NET
SQL Server
Systems Management Server
Transaction Server
Virtual PC / Virtual Server
Visual Studio
Win32
Windows 2000
Windows 2003 Server
Windows 7
Windows Live
Windows Media
Windows Update
Windows Vista
Windows XP
 

View All Microsoft NET ASP NET Security Posts  Ask A New Question 

Getting a AD user name ... - David Lozzi

Monday, December 03, 2007 11:59 AM

Howdy,

I have an ASP.Net 2.0 web application for which all i need to do is grab the
user's login name. Currently, IIS is configured for anonymous access, which
i need to keep. I tried request.servervariables("LOGON_USER") and
REMOTE_USER, both return nothing. If I disable anonymouse security in IIS it
works and returns my login name.

I have also enabled forms authentication on my application, see below, and i
simply get page cannot be found, which is getting annoying. I don't need to
do anything with AD except get the user name, so using the full membership
class for AD is a little over kill. I am storing all of the user's
permissions for the app in the application using basic session strings. But
i'll do what it takes. Any ideas??

connectionString="LDAP://delphi.local/CN=Users,DC=delphi,DC=local" />

type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="ADConnectionString" connectionUsername="delphi\dlozzi"
connectionPassword="12345"/>

Thanks!!

David Lozzi
Blog: http://www.lozzi.net
reply
 

Why not just enable Windows authentication in IIS? - Joe Kaplan

Monday, December 03, 2007 7:59 PM

Why not just enable Windows authentication in IIS?  It is by far the easiest
way to go.  What is the attraction with doing forms authentication?

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
reply

I did. I don't know why I wanted forms auth... - David Lozzi

Tuesday, December 11, 2007 1:21 PM

I did. I do not know why I wanted forms auth... been a long freaken month

Thanks
reply

Previous Microsoft NET ASP NET Security conversation.