 |
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

January 25th, 2008, 05:22 PM
|
|
Authorized User
|
|
Join Date: Nov 2005
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
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?
|
|

January 28th, 2008, 06:04 AM
|
|
Friend of Wrox
|
|
Join Date: Dec 2006
Posts: 104
Thanks: 9
Thanked 1 Time in 1 Post
|
|
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
|
|

January 29th, 2008, 03:39 AM
|
|
Authorized User
|
|
Join Date: Nov 2005
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
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.
|
|

January 29th, 2008, 10:42 PM
|
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
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
|
|

February 12th, 2008, 11:24 AM
|
|
Authorized User
|
|
Join Date: Nov 2005
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
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?
|
|

February 12th, 2008, 06:35 PM
|
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
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
|
|

February 13th, 2008, 03:59 AM
|
|
Authorized User
|
|
Join Date: Nov 2005
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
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>
|
|

February 13th, 2008, 07:32 PM
|
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
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
|
|

February 13th, 2008, 07:35 PM
|
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
|
|
 |