[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

VB.NET Mixed authentication mode & obtaining logged domain accout name from remote website?

Posted on 2009-12-29
2
Medium Priority
?
529 Views
Last Modified: 2013-12-24
Hi Sir/Madam,

Most users in my network environment logged into their system using domain accounts, which is managed by the company AD server. Most of their computers have joined the company domain, however, some haven't. The web application to be created is a portal service which will be hosted on one of the machines, and users will log onto the site remotely from their own machines or external network.

This situation requires mixed authentication to be used. The users will be able to directly bypass the login page when they logged into their computer that has joined the domain with their domain account. Otherwise, they will be prompted to the login page (computer not joined to the domain or access from external network) and manually input their domain user/pass to login.

I have no problem implementing the forms authentication and authenticate the AD via LDAP. However, I cannot get the NTLM authentication part working properly with VB.NET. Should I use Windows authentication mode or forms for my situation? I just cant find the right sample online.

During my testing, I have encountered problems when tried to obtain local User.Identity.Name from website hosted on remote server. For example, I logged into my computer A with "domain\steven". I want to access a website hosted on computer B and obtain "domain\steven", however, currently it returns the user logged for computer B. Furthermore, is it correct to obtain the domain account name logged for the currernt system by using User.Identity.Name and trim the machine name out afterwards?

Thanks for the help in advance.

Steven
0
Comment
Question by:chokobu22
2 Comments
 
LVL 4

Accepted Solution

by:
TMarkham1 earned 1500 total points
ID: 26241960
0
 

Author Closing Comment

by:chokobu22
ID: 31671054
Not all question has been answered in the article provided.
0

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question