473,569 Members | 3,040 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ADSI - Authenticating Users

I need to authenticate users to enter in a NTLM-protected virtual directory,
but I can't pop up a NT-login dialogue box - I can only do a web-based
username/password form (my client is a "usability" firm!). After searching
and searching, I finally found up with this solution to use ADSI to
authenticate users transparently:

http://www.eggheadcafe.com/articles/20010126.asp

I tried the script and I am able to authenticate that the user exists with
the correct password, but when I redirect the user to the virtual directory,
the popup box is still popping up! I think what is happening is that I am
not actually passing the username/password to the NT server.

Is anybody familiar with using ADSI for NT log in's? Am I on the right
track? And if so, how do I actually do this so that the NT login box
doesn't pop up?

I'm so close now...=)
Sophia
Jul 19 '05 #1
9 2267

"Pravin Patil" <pr******@maste k.com> wrote in message
news:6D3D3C57-E508-41A2-B35E-
I guess you have not changed authentication settings in IIS.
Try to change it to Anonymous.


Thanks Pravin,

But I need the folder(s) to be secure.....each client gets their own
directory and they shouldn't be allowed to browse other client's folders.
Wouldn't changing it to anonymous allow anybody to browse to the virtual
directories if they know what the URL is?

What I'm trying to do is basically give clients a web-based interface to
their individual folders. I can understand how to prevent access to
unauthorized users if this was a webpage, but it's a folder....and that's
different, right?

Also, the virtual directory is a different application from the webpage I'm
redirecting from on IIS - could that be the problem as well? I am
authenticating from http://client.servername.com to the virtual directory on
http://client.servername.com/ClientNumber1 based on their username.

Thanks for any assistance - I'm new to all this and was thrown into this
project!
Sophia
Jul 19 '05 #2
"Sophia" <So********@hot mail.invalid> wrote in message
news:10******** *****@corp.supe rnews.com...

"Pravin Patil" <pr******@maste k.com> wrote in message
news:6D3D3C57-E508-41A2-B35E-
I guess you have not changed authentication settings in IIS.
Try to change it to Anonymous.
Thanks Pravin,

But I need the folder(s) to be secure.....each client gets their own
directory and they shouldn't be allowed to browse other client's folders.
Wouldn't changing it to anonymous allow anybody to browse to the virtual
directories if they know what the URL is?

What I'm trying to do is basically give clients a web-based interface to
their individual folders. I can understand how to prevent access to
unauthorized users if this was a webpage, but it's a folder....and that's
different, right?

Also, the virtual directory is a different application from the webpage

I'm redirecting from on IIS - could that be the problem as well? I am
authenticating from http://client.servername.com to the virtual directory on http://client.servername.com/ClientNumber1 based on their username.

Thanks for any assistance - I'm new to all this and was thrown into this
project!


The problem is that web-based authentication involves the browser and the
ADSI code does not. IIS cannot control access to resources if you
authenticate in the way your article describes - your web application would
have to handle control access. In other words, you would need to write
something like an ASP application that would use the ADSI code to
authenticate and set a session variable, and then check that session var on
every page to see if a user is authenticated.

As an alternative, you can look at a 3rd party product like Authentix:
http://www.flicks.com/flicks/authx.htm

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserv...y/centers/iis/

Jul 19 '05 #3
Hmm...maybe I'm thinking too narrowly-minded. I don't have to use ADSI.

Originally, I was redirecting a user from a login page to a virtual
directory with a URL that looked like https://username:pa******@www.URL.com,
but with Microsoft's new security update, I can no longer pass the login
information in the URL. The user should end up on a page that is basically
an FTP directory that they can view in their browser. Is there any way that
I can do this without the NT login box popping up?

I did some research and it looks like I would be able to do this if I had
Integrated Authentication turned on, but since the server I am working with
is Windows NT, the most I can do is use Basic Authentication or NTLM (am I
correct on this?)

How are other people doing it these days, after Microsoft's security update?

Thanks!!
Sophia
Jul 19 '05 #4
"Sophia" <So********@hot mail.invalid> wrote in message
news:10******** *****@corp.supe rnews.com...
Hmm...maybe I'm thinking too narrowly-minded. I don't have to use ADSI.

Originally, I was redirecting a user from a login page to a virtual
directory with a URL that looked like https://username:pa******@www.URL.com, but with Microsoft's new security update, I can no longer pass the login
information in the URL. The user should end up on a page that is basically an FTP directory that they can view in their browser. Is there any way that I can do this without the NT login box popping up?

I did some research and it looks like I would be able to do this if I had
Integrated Authentication turned on, but since the server I am working with is Windows NT, the most I can do is use Basic Authentication or NTLM (am I
correct on this?)


No - they are the same thing.

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserv...y/centers/iis/

Jul 19 '05 #5
Hi Sophia!

I am having the same problem as you, but I have just started.

I have a webapp where I have all user data in my sql server, so I check
authentication against the database. That means I use anonymous access.
I have also checked the Integrated windows authentication. (Windows 2000
server SP3.)

Now, I need to develop some addition to the app, so that users can
upload pictures to a folder. Even create their own folders within their
root folder. I have thought the exact same as you. No one should be able
to view each others files, therefore the need to create an nt user for
every user. That way, no others will have access to the folder(s). But,
I wan't to be able to log in the user to the nt account without any
"login to Network" pop-up. Hopefully through VBScript.

Did you ever find a solution too the problem??? I am very interested in
your reply!!

Henning :-)

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #6
"kongsballa " <ko*********@de vdex.com> wrote in message
news:%2******** **********@TK2M SFTNGP11.phx.gb l...
Hi Sophia!

I am having the same problem as you, but I have just started.

I have a webapp where I have all user data in my sql server, so I check
authentication against the database. That means I use anonymous access.
I have also checked the Integrated windows authentication. (Windows 2000
server SP3.)

Now, I need to develop some addition to the app, so that users can
upload pictures to a folder. Even create their own folders within their
root folder. I have thought the exact same as you. No one should be able
to view each others files, therefore the need to create an nt user for
every user. That way, no others will have access to the folder(s). But,
I wan't to be able to log in the user to the nt account without any
"login to Network" pop-up. Hopefully through VBScript.

Did you ever find a solution too the problem??? I am very interested in
your reply!!

Henning :-)


Sorry, I can't help you.....I never found the solution to my problem. =(

I just told my client that I couldn't do it with the way their system is set
up. =P

But if you or anybody else figures it out, I'm still interested in hearing
how to do this!

Sophia
Jul 19 '05 #7
"Sophia" <So********@hot mail.invalid> wrote in message
news:10******** *****@corp.supe rnews.com...
"kongsballa " <ko*********@de vdex.com> wrote in message
news:%2******** **********@TK2M SFTNGP11.phx.gb l...
Hi Sophia!

I am having the same problem as you, but I have just started.

I have a webapp where I have all user data in my sql server, so I check
authentication against the database. That means I use anonymous access.
I have also checked the Integrated windows authentication. (Windows 2000
server SP3.)

Now, I need to develop some addition to the app, so that users can
upload pictures to a folder. Even create their own folders within their
root folder. I have thought the exact same as you. No one should be able
to view each others files, therefore the need to create an nt user for
every user. That way, no others will have access to the folder(s). But,
I wan't to be able to log in the user to the nt account without any
"login to Network" pop-up. Hopefully through VBScript.

Did you ever find a solution too the problem??? I am very interested in
your reply!!

Henning :-)

Sorry, I can't help you.....I never found the solution to my problem. =(

I just told my client that I couldn't do it with the way their system is

set up. =P

But if you or anybody else figures it out, I'm still interested in hearing
how to do this!


I guess you didn't read my last post?

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserv...y/centers/iis/

Jul 19 '05 #8

"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message

I guess you didn't read my last post?

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserv...y/centers/iis/


Hi Tom -

I did read your post (and thanks!), but I don't think I understand what to
do....I don't understand what kind of setting to use for security, and how
to let my server know that it's been authenticating.

Kind of a newbie at this...=)

Sophia
Jul 19 '05 #9
"Sophia" <So********@hot mail.invalid> wrote in message
news:10******** *****@corp.supe rnews.com...

"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message

I guess you didn't read my last post?

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running

IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserv...y/centers/iis/


Hi Tom -

I did read your post (and thanks!), but I don't think I understand what to
do....I don't understand what kind of setting to use for security, and how
to let my server know that it's been authenticating.

Kind of a newbie at this...=)


You can use NTLM on IIS 4 if you want to login users without prompting them.
See http://support.microsoft.com/?kbid=264921

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserv...y/centers/iis/

Jul 19 '05 #10

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

Similar topics

6
4416
by: Miguel Orrego | last post by:
Hi, I have found some code that authenticates users agains a domain using ADSI. I then redirect to another page and pass the username they have entered as a string. However, it would be nice to also get their full name from Active Directory once authenticated. Can anyone suggest how I may modify this code to achieve this? I would also like...
0
1738
by: Srinivas | last post by:
Hi, I've one system in which Active directory is installed. That system is the domain controller as well as web server - A test machine. Trying all following to Authenticate Users using VB as well as ASP. I need ASP solution (and no component required etcc..). Things seems to work fine but stuck badly from past two days.
2
2441
by: Enigma Webmaster | last post by:
Hi All, We've written a couple of functions which, when run in VB6 work fine and allow AD users to be updated. When we include the code into an ASP Page and try and update a users information (i.e. Mobile Phone Number) we get a failure as below... Error Number:- -2147467259 Automation error Unspecified error Can anyone see why this is...
3
2200
by: Tom Petersen | last post by:
My users logon to the Patriot domain, my intranet is on sdsddata01 server. I have a form that people have to click on a dropdown list to pick their name from the list when submitting a form. Is there any way to grab their username via ADSI so I can query it against a database that will get submitted against a form. I have seen a few...
14
5206
by: Arran Pearce | last post by:
Hi, I am looking for a way to use System.DirectoryServices to find all users on a domain whos accounts are either locked out or disabled. I have used ADSIEdit and the mmc schema add-in to try and find properties for these things but have not had any luck so far. Also i did a search on the Platform SDK doc's. It has examples in VB and C++...
3
16429
by: mrwoopey | last post by:
Hi, I am using the example "Authenticate against the Active Directory by Using Forms Authentication and Visual Basic .NET": http://support.microsoft.com/default.aspx?scid=KB;EN-US;326340 But I am having a problem figuring out the LDAP:// The LDAP:// that I pass looks like this (i substitued generic the
8
1784
by: msnews.microsoft.com | last post by:
I have ADSI code that I can make work at the command line. I cannot in any way get it to work in asp.net. Even using Windows authentication, impersonation on, and providing the credentials hardcoded, I cannot make this same code happen. This is all I am trying to do: static void Stuff() { //we don't need the credentials on this form // so...
1
2738
by: andy | last post by:
Has anyone ever experienced any problems authenticating with an ADSI application where after so long it stops responding. I can not track down what is causing the problem. I have a login page that uses the following code. Dim oADsObject Set oADsObject = GetObject(strADsPath) Dim strADsNamespace Dim oADsNamespace strADsNamespace =...
8
3119
by: John | last post by:
Hi, gurus, How can I implement the following feature in C#: Set objGroup = GetObject("WinNT://" & strComputer & "/" & strGroup & ", group") For Each objMember In objGroup.Members WScript.Echo vbCrLf & " Name: " & objMember.Name Next
0
7703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7930
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8138
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6290
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5514
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5228
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2118
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1229
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
950
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.