Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3679806
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T03:30:08+00:00 2026-05-19T03:30:08+00:00

I have a ASP .Net web appliaction written in Visual Basic .Net running on

  • 0

I have a ASP .Net web appliaction written in Visual Basic .Net running on Windows Server 2003 (IIS 6) that works like the one described in How to grab AD credentials from client machine in a web application?

A user access our Intranet page and it uses Windows Authentication to identify the user. The application then looks up that user in Active Directory and grabs the attribute value for that user’s IpPhone. This number is what we use for Employee ID’s.

In IE8 I can access the site and Windows Auth prompts me and it appears to work but the application is unable to get my Active Directory user “IP Phone” value (AKA my Employee Number). If I add the URL to Trusted Sites, the application works grabs my Employee ID successfully.

That wouldn’t be a big deal except it does this in every browser (FireFox, Safari, and Chrome). I found a workaround for Firefox (ntlm-authenticate, google ‘about config’ for firefox). However this app shouldn’t need to be in Trusted Sites, and I believe if I can get this to work without being in Trusted Sites it will work in all browsers.

Does anyone have any idea whats going on? Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T03:30:09+00:00Added an answer on May 19, 2026 at 3:30 am

    Take a look at the setting in the screenshot below. The automatic logon refers to using your Windows authentication as you access resources via Internet Explorer. In other words, if you access a web page on a server in your directory, the credentials that you logged in on your machine with are automatically passed to the server you’re accessing.

    The credentials are generally, for some reason unknown to me, passed along to trusted sites as well. I don’t know why this is, but I’ve seen this behavior enough to be confident stating it.

    This feature is only available in IE, except for the workaround you found for Firefox, and will not work in other browsers, unless you find similar workarounds.

    A better solution would be to specify the username and password in code as shown here:

    http://msdn.microsoft.com/en-us/library/wh2h7eed.aspx

    This performs a search and passes along a username and password, rather than relying on the Windows Integrated security.

    alt text

    I have a working snippet of code here for getting an email based on username in our domain, that you can modify for your needs:

    Public Function GetEmailFromUserName(ByVal UserID As String) As String
        Dim ReturnValue As String = ""
    
    
        Dim myAD As New System.DirectoryServices.DirectoryEntry("LDAP://mydomain", System.Configuration.ConfigurationManager.AppSettings("adsearchname"), System.Configuration.ConfigurationManager.AppSettings("adsearchpwd"))
        Dim searcher As New System.DirectoryServices.DirectorySearcher(myAD)
        searcher.Filter = ("(anr= " & UserID & ")")
        searcher.PropertiesToLoad.Add("mail")
        For Each myResult As System.DirectoryServices.SearchResult In searcher.FindAll()
            For Each Key As String In myResult.Properties.PropertyNames
                If InStr(myResult.Properties.Item(Key).Item(0), "@") Then
                    ReturnValue = myResult.Properties.Item(Key).Item(0)
                End If
            Next
        Next
    
        Return ReturnValue
    End Function
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a ASP.Net 2.0 web application up and running with the server in
I'm working on an ASP.NET web application, written using Visual Basic, and I'm trying
I have written an ASP.NET web application (not site) in Delphi Prism. Everything works
Suppose you have two seperate ASP.NET Web Application projects that both need to use
I have a really simple ASP.NET web application and a web setup project that
I have 6 servers that i need to deploy my ASP.NET web application to.
We have a web application written in ASP.NET 3.5. In it, we access a
I've inherited a web application written in ASP.NET that has an incomplete implementation of
I have an web application written in ASP.NET (FW 3.5) (along with some VBScript,
I have an ASP.NET web application that has a fileupload control to allow users

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.