Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 ASP ADSI/WinNT Security Problems :: Help ::
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Lycaster
New Member

USA
60 Posts

Posted - 26 April 2002 :  18:17:54  Show Profile  Visit Lycaster's Homepage  Send Lycaster an AOL message
I wrote some code that would let me authenticate via Active Directory or a WinNT Member Directory. When I first ran this code below, everything worked fine. An hous later it diddnt. I am getting this error description: "The system cannot find the path specified."

In the time between it working and not working, there was no change to the code what-so-ever.


ADSIProvider = "WinNT:"

UserName = Request.Form("UserID")
UserPass = Request.Form("Password")

Dim oSec
Dim sChckID

If LoadContent(oSec, "Security", Application("AdminData"), True, "", "Title ASC") Then

sDomain = oSec("Domain")
sGroup = oSec("Container")
UserAcct = sDomain & "\" & UserName

'On Error Resume Next

Set oUser = GetObject(ADSIProvider)
Set oDsUser = oUser.OpenDSObject(ADSIProvider & "//" & sDomain & "/" & UserName & ",user", _
UserAcct, UserPass, 1)

If err.Number = 0 Then
For each group in oDsUser.groups
If group.name = sGroup Then

If LoadContent(oAdmins, "Division Admins", Application("AdminData"), True, "", "[Division Name] ASC") Then
sChckID = Trim(Request.Form("UserID"))
sFilter = "UserID = '" & sChckID & "'"
oAdmins.Filter = sFilter
sUserID = oAdmins("UserID")
If UserName = sUserID Then
If Trim(Session("DivisionDisplay")) = oAdmins("Division") Then
Session("DisplayName") = oDsUser.Fullname
Session("DivisionDisplay") = Trim(Request("Divisions"))
Session("WACDivisionAdminUserId") = Trim(Session("DivisionDisplay"))
Response.Redirect "../index.asp"
Else
Response.Redirect "Login.asp?Err=" & err.helpfile & ""
End If
Else
Response.Redirect "Login.asp"
End If
End If
Else
Response.Redirect "Login.asp?Err=" & err.helpfile & ""
End If
Next
Else
Response.Redirect "Login.asp?Err=" & err.helpfile & ""
End If

End If

Set oDsUser = Nothing
Set oUser = Nothing


Can someone help?

Thanks

Jared Wuliger
jared@oxcyon.com
www.oxcyon.com

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 26 April 2002 :  18:49:13  Show Profile
Do you know after what line it gives you that error?

Also, check out this MS KB Article:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q218497

Nikkol

Edited by - Nikkol on 26 April 2002 19:05:49
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07