codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Windows Authentication using LDAP get user first name  dbenoit64 at 12:27 on Tuesday, March 15, 2005
 

Im running an asp.net application that uses windows authentication. My program is sitting on an intranet.
Im trying to get to the details of my users so I can display their last name and first name.

I can display their login name like so: HttpContext.Current.User.Identity.Name
I can display their windows identity like so: =System.Security.Principal.WindowsIdentity.GetCurrent.Name.ToString()

In control panel>Admin tools>Computer Management I can look at users and groups and see that a user has a number of fields associated with him/her. For example Alias, Assistant, City, Fax Number, First Name etc,...)

Im just not sure how to go about doing so. I've researched it a bit and found that I should probably be using Active Directory/LDAP and sample code gives me the following error:

The specified domain either does not exist or could not be contacted.

I cannot get identity impersonate="true"/ to work either.

At this point I dont know even where I should start. Some help and/or sample code would really help

Thanks

Dave








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Data
•  sort with javascript
•  setting default frame for an ASP.net app
•  Password creation and password protected site
•  Script For Customers To Upload Images To My Server
•  next and previous buttons
•  Re: C# and EXCEL question saving a file saving the the first column as read only
•  Windows Authentication using LDAP get user first name
•  Javabeans incorporating sql query.


Recent Articles
Communicating with the Database (Using ADO)
MagicGrid
Simple Thumbnail Browsing Solution
Type Anywhere
A Better Moustrap: FmtDate to replace FormatDateTime
ASP.NET Forum Source Code
Internal Search Engine
Javascript Growing Window
Simple date validation
Search engine friendly URLs using ASP.NET (C#.NET)


Site Survey
Help us serve you better. Take a five minute survey. Click here!

© Copyright codetoad.com 2001-2005