473,326 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Login using NT login details from web form problems

need a ASP.NET C# web page that lets a user enter their NT user name
and password and passes to NT to see if they are a valid NT login.

I am aware of the System.DirectoryServices.DirectoryEntry classes, and
tried to use these, but they are not installed on the web server at
present - I get a
>CS0234: The type or namespace name 'DirectoryServices' does not exist in the class or namespace 'System' (are you missing an assembly reference?)
error

Is there another way of logging in via NT, or how does
System.DirectoryServices.DirectoryEntry get installed on the web
server?

If I have posted this in the wrong group, please do let me know which
group I should post in.

Sep 1 '06 #1
2 2225
Hi

The class reference(System.DirectoryServices) would be readily available, if
the machine has .NET framework installed. With the error message you have
listed, it seems you are missing the reference. What you could do is try
adding reference to System.DirectoryServices to your project and compile it.
It should definitely work.

Let me know if you need any more help.

Prem

"DavidADEW" wrote:
need a ASP.NET C# web page that lets a user enter their NT user name
and password and passes to NT to see if they are a valid NT login.

I am aware of the System.DirectoryServices.DirectoryEntry classes, and
tried to use these, but they are not installed on the web server at
present - I get a
CS0234: The type or namespace name 'DirectoryServices' does not exist in the class or namespace 'System' (are you missing an assembly reference?)

error

Is there another way of logging in via NT, or how does
System.DirectoryServices.DirectoryEntry get installed on the web
server?

If I have posted this in the wrong group, please do let me know which
group I should post in.

Sep 1 '06 #2

Thanks for your message.

Am I not right in saying that by referring to
System.DirectoryServices.DirectoryEntry in the code I don't need a
refenece - I do this elsewhere with other code for drawing etc.? I am
using ASP.NET C#?
Prem Kumar wrote:
Hi

The class reference(System.DirectoryServices) would be readily available, if
the machine has .NET framework installed. With the error message you have
listed, it seems you are missing the reference. What you could do is try
adding reference to System.DirectoryServices to your project and compile it.
It should definitely work.

Let me know if you need any more help.

Prem

"DavidADEW" wrote:
need a ASP.NET C# web page that lets a user enter their NT user name
and password and passes to NT to see if they are a valid NT login.

I am aware of the System.DirectoryServices.DirectoryEntry classes, and
tried to use these, but they are not installed on the web server at
present - I get a
>CS0234: The type or namespace name 'DirectoryServices' does not exist in the class or namespace 'System' (are you missing an assembly reference?)
error

Is there another way of logging in via NT, or how does
System.DirectoryServices.DirectoryEntry get installed on the web
server?

If I have posted this in the wrong group, please do let me know which
group I should post in.
Sep 1 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Wayne Smith | last post by:
Applies to: Microsoft FrontPage 2000, Microsoft Access 2000, IIS 5.0 Operating System: Microsoft Windows 2000 Professional I am trying to protect a portion of a web site by allowing users to...
0
by: Dam6 | last post by:
Hello, Having a bit of trouble with a simple login page etc using an access db. (Using DW 2004 and databases from Sean R. Nicholson) I've created a virtual application, added the dw ctrls and...
12
by: Michael | last post by:
Please Help me. I've got a .Net 2003 program that attaches to a SQL Server machine and I'm getting the above error when a user tries to log in. The SQL server is setup to use Windows Auth. and I...
1
by: xcelmind | last post by:
Hello Dev. Guru, I want to at this time introduce myself. I am Stanley Ojadovwa by name. I’m a freelance and a newbie in web application development. I’m currently using ASP as my application...
3
JamieHowarth0
by: JamieHowarth0 | last post by:
Hi folks, Got a bit of an interesting question. I'm in the process of learning ASP.NET using Microsoft's CTP of Visual Web Studio "Orcas". Part of my classic ASP website incorporates a login...
10
nathj
by: nathj | last post by:
Hi, I have a quick favour to ask - would someone please check over this concept for me? Basically I need to generate a login script and while time is on my side I want to invest in writing my...
1
by: Kandiman | last post by:
Hiya, i made a asp page, and one of my divs (as a include) is as below. the problem is if the main page is resubmitted, i get logged out again?... heres the code.. i think its on the value=true...
3
by: burrashiva | last post by:
:( ::) Hello there, I recently started Web Designing with PHP, Javascript and AJAX. I am facing a problem which I will try to explain: If I am successful in conveying the problem to you...
3
by: satishknight | last post by:
Hi, Can some one tell me how to change the validation sequence for the code pasted below, actually what I want it when any one enters the wrong login information (already registered users) then it...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.