Salutations,
My capacity for problem solving has been exhausted and I need your help! I work on a company intranet website that is used to track how many hours we teach and our certifications. This has been in place for about 3.5 years now and has been fine. NOW, the network has undergone a serious change...specifically our logon id's. We used to use lastnameFM (ex: smithja for John A Smith). Now, our logon id's are first.last (ex john.smith for John Smith). For some reason, now noone can access the site. The site currently resides on Windows NT Server (yikes) and uses Oracle 9i as our database. I have created test id's using the new naming standard and they still do not work. Here is part of the code for access purposes:
set objRec = objConn.execute
(" SELECT p.fname, p.lname, p.logon_id, p.section, p.rank AS ""rank"", p.security_level, mai "& _
" FROM dco.personnel p, dco.lk_martial_arts_levels lk " & _
" WHERE p.logon_id = (SELECT SUBSTR(UPPER('" & strUserLogon & "'),9)AS ""logon_id"" FROM dual) " & _
" AND p.ma_qual = lk.qual(+)")
IF objRec.EOF THEN
Response.Redirect("unauthorized.html")
ELSE
strUserSection = TRIM(objRec("section"))
strUserSecurity = objRec("security_level")
strUserName = objRec("lname")
strUserRank = TRIM(objRec("rank"))
strMAI = TRIM(objRec("mai"))
Session("index") = "true"
END IF
For some reason, it ALWAYS goes to EOF and redirects to the unauthorized page. I believe it has something to do with the '.' in the logon id's, but I admit, I am not that experienced with ASP enough to know that. Can ANYONE confirm that and assist me with this? Thanks!
Semper Fidelis,
Kaytu
My capacity for problem solving has been exhausted and I need your help! I work on a company intranet website that is used to track how many hours we teach and our certifications. This has been in place for about 3.5 years now and has been fine. NOW, the network has undergone a serious change...specifically our logon id's. We used to use lastnameFM (ex: smithja for John A Smith). Now, our logon id's are first.last (ex john.smith for John Smith). For some reason, now noone can access the site. The site currently resides on Windows NT Server (yikes) and uses Oracle 9i as our database. I have created test id's using the new naming standard and they still do not work. Here is part of the code for access purposes:
set objRec = objConn.execute
(" SELECT p.fname, p.lname, p.logon_id, p.section, p.rank AS ""rank"", p.security_level, mai "& _
" FROM dco.personnel p, dco.lk_martial_arts_levels lk " & _
" WHERE p.logon_id = (SELECT SUBSTR(UPPER('" & strUserLogon & "'),9)AS ""logon_id"" FROM dual) " & _
" AND p.ma_qual = lk.qual(+)")
IF objRec.EOF THEN
Response.Redirect("unauthorized.html")
ELSE
strUserSection = TRIM(objRec("section"))
strUserSecurity = objRec("security_level")
strUserName = objRec("lname")
strUserRank = TRIM(objRec("rank"))
strMAI = TRIM(objRec("mai"))
Session("index") = "true"
END IF
For some reason, it ALWAYS goes to EOF and redirects to the unauthorized page. I believe it has something to do with the '.' in the logon id's, but I admit, I am not that experienced with ASP enough to know that. Can ANYONE confirm that and assist me with this? Thanks!
Semper Fidelis,
Kaytu