Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 25th, 2008, 05:22 PM
Authorized User
Points: 102, Level: 2
Points: 102, Level: 2 Points: 102, Level: 2 Points: 102, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2005
Location: , , .
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
Default ldap winnt authetication user

note:My intranet is Wnnt and AD.

I want to authenticate user in group with username and password with a ASP page with 2 inputext box and button:

Inputbox_Username
Inputbox_Password

prerss button and authenticate user in domain ="dip" on Group "my_Group"

If the user is in group goto to Autenticate.asp page if not authenticate show message in login page.



Is possible?


Reply With Quote
  #2 (permalink)  
Old January 28th, 2008, 06:04 AM
Friend of Wrox
Points: 489, Level: 7
Points: 489, Level: 7 Points: 489, Level: 7 Points: 489, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2006
Location: Berkshire, United Kingdom.
Posts: 104
Thanks: 9
Thanked 1 Time in 1 Post
Default

Sal,

I would advise you to look at the Technet section of Microsoft's site.

There are some really good examples for ldap connections and user account manipulation.

Also to assist you with the correct object selection i would advise you to download an Ldap reader which will give you the correct AD, OU container locations and user attributes ect ect.!!


Cheers


Aspless



Reply With Quote
  #3 (permalink)  
Old January 28th, 2008, 06:20 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Did you search this forum? This post will assit:

http://p2p.wrox.com/topic.asp?TOPIC_ID=55800

Wind is your friend
Matt
www.elitemarquees.com.au
Reply With Quote
  #4 (permalink)  
Old January 29th, 2008, 03:39 AM
Authorized User
Points: 102, Level: 2
Points: 102, Level: 2 Points: 102, Level: 2 Points: 102, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2005
Location: , , .
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by mat41
 Did you search this forum? This post will assit:

http://p2p.wrox.com/topic.asp?TOPIC_ID=55800

Wind is your friend
Matt
www.elitemarquees.com.au
Hi mat41 (i dont know you rellay name), tks for link...
Sure i have serch in forum but dont find nothing to authenticate user amd group.
The link you suggest me is only for psw and username, or not?
Tks from Italy (Napoli)...
In other case, for now, "Virtual pizza" for you.
Sal.

Reply With Quote
  #5 (permalink)  
Old January 29th, 2008, 10:42 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Its very close to what you need, not alot required to alter it. Get some code going, when you have a specific problem post it. As you see I initiated that post I gave you the link to. This windows LDAP thing is not my area, I had a fair amount of trouble getting the code to what you see in the post.

This forum helped me a great deal:
http://www.tek-tips.com/search.cfm?a...uesttimeout=75

Wind is your friend
Matt
www.elitemarquees.com.au
Reply With Quote
  #6 (permalink)  
Old February 12th, 2008, 11:24 AM
Authorized User
Points: 102, Level: 2
Points: 102, Level: 2 Points: 102, Level: 2 Points: 102, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2005
Location: , , .
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by mat41
 Did you search this forum? This post will assit:

http://p2p.wrox.com/topic.asp?TOPIC_ID=55800

Wind is your friend
Matt
www.elitemarquees.com.au
Hi Mat41...
Peraph solved with the script here... but instead to insert in script the username i want to insert in this asp page a box where the user can insert the user name and a button to authenticate the username in group InpdapNAXX...
How to make that, sorry but really newbie in asp?

Reply With Quote
  #7 (permalink)  
Old February 12th, 2008, 06:35 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Do you have any code put together? The wrox link above gave you the 'cut n paste code' for validating users against thier UN and PW - Have you got this working as a start?

Why do you want to validate them further against a group? Do all the users know thier group, in our AD environment they dont - In fact onlt very few would. Validating a user against thier UN and PW should get them through, then why not tell them thier group? What if they belong to more than ne group? All AD users have usernames and passwords, do they all have groups, im not so sure. Waht is your reason for over complicating access? In this day and age we have to remember far to many logins....

Wind is your friend
Matt
www.elitemarquees.com.au
Reply With Quote
  #8 (permalink)  
Old February 13th, 2008, 03:59 AM
Authorized User
Points: 102, Level: 2
Points: 102, Level: 2 Points: 102, Level: 2 Points: 102, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2005
Location: , , .
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by mat41
 Do you have any code put together? The wrox link above gave you the 'cut n paste code' for validating users against thier UN and PW - Have you got this working as a start?

Why do you want to validate them further against a group? Do all the users know thier group, in our AD environment they dont - In fact onlt very few would. Validating a user against thier UN and PW should get them through, then why not tell them thier group? What if they belong to more than ne group? All AD users have usernames and passwords, do they all have groups, im not so sure. Waht is your reason for over complicating access? In this day and age we have to remember far to many logins....

Wind is your friend
Matt
www.elitemarquees.com.au
sorry me ...
code here:
Code:
<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Nuova pagina 1</title>
</head>

<body>
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
'http://p2p.wrox.com/topic.asp?TOPIC_ID=7848

Set oNetwork = CreateObject("WScript.Network")

sDomain = "DIP" 
sUserName = "OI24683"

'sUserName = oNetwork.UserName
'sUserName = request.servervariables("AUTH_USER") 

Set oUser = GetObject("WinNT://" & sDomain & "/" & sUserName & ",user")

For Each oGroup In oUser.Groups
Select Case(oGroup.Name)
    Case "InpdapNAXX"
    'Response.write("InpdapNAXX")
    Response.Redirect("./default.html")
    Case "Group B" 
    'response.write("Yay")
    Response.Redirect("A.asp")
    Case "Group C"
    response.Redirect("Z.asp")
    Case "Group D"
    Response.redirect("Y.asp")
End Select
Next
%>

</body>

</html>
</form>
Reply With Quote
  #9 (permalink)  
Old February 13th, 2008, 07:32 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Isnt there supposed to be a form to ask for the username and password which gets posted?

I a little confused

Wind is your friend
Matt
www.elitemarquees.com.au
Reply With Quote
  #10 (permalink)  
Old February 13th, 2008, 07:35 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

An iteresting cross post:

http://p2p.wrox.com/topic.asp?TOPIC_ID=7848

Wind is your friend
Matt
www.elitemarquees.com.au
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
winnt.h iceman90289 Visual C++ 2005 2 May 12th, 2008 11:43 PM
Access Problem From Upgrade WinNt -> 2003 BrianWren Internet Information Services 0 March 22nd, 2007 11:39 AM
Help Using LDAP user authentication in ASP page dreamzentrue Classic ASP Basics 0 November 11th, 2005 01:33 PM
database/.net comparison for winnt server qwjunk General .NET 0 August 8th, 2004 05:02 AM



All times are GMT -4. The time now is 12:45 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.