Last post Dec 07, 2006 12:37 PM by JJ_Berg
Oct 19, 2006 01:33 PM|Webmaster_Volkan|LINK
I have developed a project where I use AD to authenticate users via a form. It's working fine when I build it from VS 2005 but when I deploy it to server it's not working. I can authenticate users but I can't
get user's first and last name. I have the code below, if you can let me know what I'm doing wrong, I'll appreciate.
Partial Class _Default
Protected Sub Page_Load(ByVal sender
ByVal e As System.EventArgs)
'To retrieve list of all LDAP users
Dim sServerName As
String = "mail"
Dim oRoot As DirectoryEntry =
New DirectoryEntry(LDAP://my ldap)
Dim oSearcher As DirectorySearcher =
Dim oResults As SearchResultCollection
Dim oResult As SearchResult
oSearcher.Filter = (
oResults = oSearcher.FindAll
For Each oResult
'Label which displays current user's first and last name
Getname.Text = oResult.GetDirectoryEntry().Properties("cn").Value
Oct 23, 2006 01:11 PM|Webmaster_Volkan|LINK
Ryan Dunn send me this post in directoryprogramming.net
Nov 02, 2006 07:33 PM|bunmiog|LINK
I am having the same problem our web server is IIS5.0 since there is no app pool in IIS5 is there another workaround.
Dec 01, 2006 02:39 PM|Webmaster_Volkan|LINK
There is no app pool in IIS 5.1 or 5, but there is an equivalent method that will work. Simply set the Anonymous account for the vdir to be the domain service account and put <identity impersonate="true"/> in the web.config. Assuming you have anonymous
access enabled, it will use this account for unmanaged security context.
Dec 06, 2006 02:41 PM|JJ_Berg|LINK
Ok, I have the same problem, but a different scenario. I have a web application developed in 2.0. The web config file is setup for Windows authentication and to impersonate. Then the application is setup on a web server with IIS 6.0. In IIS the application
is set for Integrated Windows authentication and Digest Windows authentication. Anonymous access is turned off. The Active Directory server is separate from the web server, so I know that is causing a double hop issue between client --> web server --> AD
server. However, I don't know how to fix it. I have an application pool setup for just this application and I tried changing the identity to a user account and adding that account to the IIS_WGM on the web server. That ended up making the application prompt
the user for a username and password. Any suggestions for my situation.
Dec 07, 2006 12:37 PM|JJ_Berg|LINK