Anonymous_User Absent Member.
Absent Member.
1124 views

2 Apps - 1 URL = 1 app works and 1 doesn't


Running SecureLogin 8 on Windows XP Pro SP3 logged in as eDir admin
through Novell Client. Other profiles have been created and are working
properly.

I have my company URL of http://www.<my URL>.com. I have some Oracle
apps that being hosted internally and one server has two apps that are
accessed through the same subdomain name just different sub-directories
of the host:

http://odbiw4.<mycompany>.com/xmlpserver
http://odbiw4.<mycompany>.com/analytics

The SecureLogin client detected the xmlpsever login screen just fine. I
ran through the wizard and created a valid profile so that now when I go
to that application's URL SecureLogin does what I need. However, when I
go to the analytics URL SecureLogin does nothing. It never detects a
login screen, it does not run the wizard, it does not attempt to login
with the xmlpserver profile, just nothing. How can I get SecureLogin to
recognize both applications through this shared URL?

I have tried converting the xmlpserver profile to a script and then
copying that script over to a new web script profile created just for
the analytics URL but that doesn't seem to have had any impact. And
yes, I did modify the script to reference the proper form and input
names for the analytics login page.

Thanks in advance.


--
gdrtx
------------------------------------------------------------------------
gdrtx's Profile: https://forums.netiq.com/member.php?userid=1660
View this thread: https://forums.netiq.com/showthread.php?t=52253

0 Likes
9 Replies
Anonymous_User Absent Member.
Absent Member.

Re: 2 Apps - 1 URL = 1 app works and 1 doesn't


what ID (=URL) does the working script have? maybe you are matching on
http://odbiw4.<mycompany>.com and would have to fiddle in both
login-dialogues into one application definition?
or you could try changing the ID to http://odbiw4.<mycompany>.com/appl1
and make a second http://odbiw4.<mycompany>.com/appl2?


--
florianz
------------------------------------------------------------------------
florianz's Profile: https://forums.netiq.com/member.php?userid=309
View this thread: https://forums.netiq.com/showthread.php?t=52253

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: 2 Apps - 1 URL = 1 app works and 1 doesn't


florianz;251278 Wrote:
> what ID (=URL) does the working script have? maybe you are matching on
> http://odbiw4.<mycompany>.com and would have to fiddle in both
> login-dialogues into one application definition?
> or you could try changing the ID to http://odbiw4.<mycompany>.com/appl1
> and make a second http://odbiw4.<mycompany>.com/appl2?


Thanks florianz I have tried making two profiles with the proper ID
values and Site text but that doesn't seem to work for me. I can post
the profile scripts if you think that might help.


--
gdrtx
------------------------------------------------------------------------
gdrtx's Profile: https://forums.netiq.com/member.php?userid=1660
View this thread: https://forums.netiq.com/showthread.php?t=52253

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: 2 Apps - 1 URL = 1 app works and 1 doesn't


post the source code of both login pages, i ´ll try to make you a basic
..xml for import.

florianz


--
florianz
------------------------------------------------------------------------
florianz's Profile: https://forums.netiq.com/member.php?userid=309
View this thread: https://forums.netiq.com/showthread.php?t=52253

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: 2 Apps - 1 URL = 1 app works and 1 doesn't


Thanks. Below is the HTML for the Oracle app that WORKS

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" dir="ltr">
<head>
<title>Oracle BI Publisher Enterprise Login</title>
....
</head>
<body onLoad="document.loginform.id.focus();initSelect();"
style="background-color:#FFFFFF;
background-image:url(/xmlpserver/xdo/images/background_blue_whitegradient_.png);
background-position: left top; background-repeat: repeat-x; margin:
0;">
....
<!-- LOGIN FORM -->
<table width="100%" cellspacing="10" cellpadding="0" border="0"
class="stylenormal" id="content" style="display: table;" summary="">
<tbody>
<tr>
<td id="content-cell" align="center">
<div class="centerDiv">
<span style="float: center">
<table width="280" cellspacing="0" cellpadding="0" border="0"
summary="">
<tbody>
<tr>
<td class="lefttop"></td>
<td width="100%" height="12" class="topmiddle"></td>
<td class="righttop"></td>
</tr>
<tr>
<td class="leftmiddle"></td>
<td width="100" class="boxcontent">
<div align="left">
<table width="100%" cellspacing="0" cellpadding="0"
summary="">
<tbody>
<tr>
<td nowrap="nowrap" class="loginlabel">Sign
In</td>
</tr>
<tr>
<td nowrap="nowrap" class="opttext">Please enter
username and password<br/><br/></td>
</tr>
<tr>
<td nowrap="nowrap" class="stylenormal">
*<form method="POST" name="loginform">*

*<!-- Username -->*
<div class="margin-top3">
<span class="label">
<label for="id"
class="stylenormal">Username</label>
</span>
</div>
<input type="text" style="width: 250px;"
size="50" value="" name="id" class="margin-top5" id="id"/>

*<!-- Password -->*
<div class="margin-top5">
<span class="label">
<label for="passwd" class="stylenormal"
autocomplete="off">Password </label>
</span>
</div>
<input type="password" autocomplete="off"
style="width: 250px;" size="50" name="passwd" class="margin-top5"
id="passwd"/>
<!-- Locale (hidden param) -->
<input type="hidden" name="_xuil" id="_xuil"
value="en_US"/>
<br/><br/>
<!-- Accessibility Mode -->
<div>
<span class="label">
<label class="stylenormal"
for="_accessible"> Accessibility Mode </label>
</span>
<input type="checkbox" name="_accessible"
id="_accessible" value="1" style="vertical-align:middle"/>
</div>
<br/>
*<!-- Sign in button -->*
<img width="5" height="10" alt="X"
src="/xmlpserver/xdo/images/spacer.gif"/>
<input onclick="normalLogin(event);"
type="submit" value="Sign In" title="Please enter username and password"
name="SUBMIT_BUTTON" class="submitButtonEnable button" style="width:
120px;"/>
<br/>
....
</div>
</td>
</tr>
</tbody>
</table>
<!-- Footer -->
<table width="100%" cellspacing="0" cellpadding="0" border="0"
class="sawfooter" id="footer" style="margin-top: 100px" summary="">
<tbody>
<tr>
<td class="Copyright" id="copyRight">
<span class="Copyright">Oracle BI Publisher 11.1.1.7.0
</span>*<br/>
<span class="Copyright">Copyright © 2003, 2013, Oracle and/or
its affiliates. All rights reserved.</span>*
</td>
<td class="padding-right12">
<div align="right">
<p>
<!--
<a href="/analytics/saw.dll?aboutPage" id="aboutProduct"
class="pagelink">About Product</a>
-->
</p>
</div>
</td>
</tr>
</tbody>
</table>
</body>
</html>

And here is the SecureLogin script that works with it:


#=============================================================
# EXE/ID: odwbi4.<mycompany>.com:9704/xmlpserver
# Name: Oracle BI Publisher Enterprise Login
# Type: Web
# Version: 1
# Created By: CN=admin.O=irwd.T=IRWD
#=============================================================

## BeginSection: "Login Form"
Site "Oracle BI Publisher Enterprise Login" -initial
DebugPrint "Conducting Match on login form Oracle BI Publisher
Enterprise Login"
MatchForm #1 -name "loginform"
MatchField #1:4 -type "text" -name "id"
DebugPrint "Matched Field 'id'"
MatchField #1:5 -type "password" -name "passwd"
DebugPrint "Matched Field 'passwd'"
MatchField #1:8 -type "submit" -name "SUBMIT_BUTTON"
DebugPrint "Matched Field 'SUBMIT_BUTTON'"
EndSite
DebugPrint "Successfully matched login form Oracle BI Publisher
Enterprise Login"
SetPrompt "Username"
FocusInput #1:4
TextInput #1:4 -value "$username"
DebugPrint "Performed entry action TextInput $username into control
id#1:4"
SetPrompt "Password "
FocusInput #1:5
TextInput #1:5 -value "$password"
DebugPrint "Performed entry action TextInput $password into control
id#1:5"
SetPrompt "Please edit your login variables."
FocusInput #1:8
PressInput #1:8
DebugPrint "PressInput action performed"
EndScript
## EndSection: "Login Form"


## BeginSection: "Login Form"
Site "Oracle BI Publisher Enterprise Login" -recent 5000
DebugPrint "Conducting Match on login form Oracle BI Publisher
Enterprise Login"
MatchForm #1 -name "loginform"
MatchField #1:4 -type "text" -name "id"
DebugPrint "Matched Field 'id'"
MatchField #1:5 -type "password" -name "passwd"
DebugPrint "Matched Field 'passwd'"
MatchField #1:8 -type "submit" -name "SUBMIT_BUTTON"
DebugPrint "Matched Field 'SUBMIT_BUTTON'"
EndSite
DebugPrint "Successfully matched login form Oracle BI Publisher
Enterprise Login"
if -exists $username
Displayvariables $username $password
Endif
SetPrompt "Username"
FocusInput #1:4
TextInput #1:4 -value "$username"
DebugPrint "Performed entry action TextInput $username into control
id#1:4"
SetPrompt "Password "
FocusInput #1:5
TextInput #1:5 -value "$password"
DebugPrint "Performed entry action TextInput $password into control
id#1:5"
SetPrompt "Please edit your login variables."
FocusInput #1:8
PressInput #1:8
DebugPrint "PressInput action performed"
EndScript
## EndSection: "Login Form"

## BeginSection: "Login Form"
Site "Oracle BI Publisher Enterprise Login" -subsequent
DebugPrint "Conducting Match on login form Oracle BI Publisher
Enterprise Login"
MatchForm #1 -name "loginform"
MatchField #1:4 -type "text" -name "id"
DebugPrint "Matched Field 'id'"
MatchField #1:5 -type "password" -name "passwd"
DebugPrint "Matched Field 'passwd'"
MatchField #1:8 -type "submit" -name "SUBMIT_BUTTON"
DebugPrint "Matched Field 'SUBMIT_BUTTON'"
EndSite
DebugPrint "Successfully matched login form Oracle BI Publisher
Enterprise Login"
MessageBox "Do you wish to re-login?" -YesNo ?Result -DefaultNo
If ?Result Eq "No"
EndScript
EndIf
SetPrompt "Username"
FocusInput #1:4
TextInput #1:4 -value "$username"
DebugPrint "Performed entry action TextInput $username into control
id#1:4"
SetPrompt "Password "
FocusInput #1:5
TextInput #1:5 -value "$password"
DebugPrint "Performed entry action TextInput $password into control
id#1:5"
SetPrompt "Please edit your login variables."
FocusInput #1:8
PressInput #1:8
DebugPrint "PressInput action performed"
EndScript
## EndSection: "Login Form"

## BeginSection: "Login Form Subroutines"
## EndSection: "Login Form Subroutines"


--
gdrtx
------------------------------------------------------------------------
gdrtx's Profile: https://forums.netiq.com/member.php?userid=1660
View this thread: https://forums.netiq.com/showthread.php?t=52253

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: 2 Apps - 1 URL = 1 app works and 1 doesn't


Now here is the HTML for the form that DOESN'T work:

<!DOCTYPE HTML>
<html dir="ltr" lang="en">
<head><meta http-equiv="Content-Type" content="text/html;
charset=utf-8"><meta http-equiv="Content-Language" content="en">
....
<title>Oracle Business Intelligence Sign In</title>
<link rel="Stylesheet"
href="/analyticsRes/s_oubi/uicomponents/blafplus.css" type="text/css">
<link rel="Stylesheet" href="/analyticsRes/sk_oubi/login/login.css"
type="text/css">
<link rel="Stylesheet"
href="/analyticsRes/s_oubi/uicomponents/obips.FormFields/obips.FormFields.css"
type="text/css">
</head>
<body>
....
<td class="boxcontent" width="100">
<*form id="logonForm"* method="post"
action="saw.dll?bieehome" onsubmit="return onLogonFormSubmit()">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="loginlabel" nowrap="nowrap">Sign In</td>
</tr>
<tr>
<td class="opttext" nowrap="nowrap">Enter your user id
and password.<br><br></td>
</tr>
<tr>
<td class="stylenormal" nowrap="nowrap">
<div class="margin-top3"><label
for="sawlogonuser">User ID</label><br></div>
*<input id="sawlogonuser" class="margin-top5"
type="text" name="NQUser" value="" size="50" style="width: 200px;">*
<div class="margin-top5"> <label
for="sawlogonpwd">Password </label><br></div>
*<input id="sawlogonpwd" class="margin-top5"
type="password" name="NQPassword" size="50" style="width: 200px;"
autocomplete="off">
</input>*
<input type="hidden" name="Locale"
value="">
<br><br>
<img
src="/analyticsRes/sk_oubi/login/spacer.gif" alt="X" width="5"
height="10">
*<input id="idlogon" type="submit"
class="button" style="width: 120px;"
onmouseover="NQWSetHasClassName(document.getElementById('idlogon'),
'buttonOver', true)"
onmouseout="NQWSetHasClassName(document.getElementById('idlogon'),
'buttonOver')" value="Sign In">*
<br><br>
<div class="margin-top3">
<input id="accessMode" type="checkbox"
name="accessMode" style="width: 15px;">
<label
for="sawaccesibilitymode">Accessibility Mode</label>

</div>
<br>
<hr></hr>
....
</body>
</html>

And here is the script that I have tried to create to work with this
page to no avail:


#=============================================================
# EXE/ID: odwbi4.<mycompany>.com:9704/analytics
# Name: Oracle Business Intelligence Sign In
# Type: Web
# Version: 1
# Created By: CN=admin.O=irwd.T=IRWD
#=============================================================

## BeginSection: "Login Form"
Site "Oracle Business Intelligence Sign In" -initial
DebugPrint "Conducting Match on login form Oracle BI Publisher
Enterprise Login"
MatchForm #1 -id "logonForm"
MatchField #1:4 -type "text" -name "NQUser"
DebugPrint "Matched Field 'NQUser'"
MatchField #1:5 -type "password" -name "NQPassword"
DebugPrint "Matched Field 'NQPassword'"
MatchField #1:8 -type "submit" -id "idlogon"
DebugPrint "Matched Field 'idlogon'"
EndSite
DebugPrint "Successfully matched login form Oracle BI Publisher
Enterprise Login"
SetPrompt "Username"
FocusInput #1:4
TextInput #1:4 -value "$username"
DebugPrint "Performed entry action TextInput $username into control
id#1:4"
SetPrompt "Password "
FocusInput #1:5
TextInput #1:5 -value "$password"
DebugPrint "Performed entry action TextInput $password into control
id#1:5"
SetPrompt "Please edit your login variables."
FocusInput #1:8
PressInput #1:8
DebugPrint "PressInput action performed"
EndScript
## EndSection: "Login Form"


## BeginSection: "Login Form"
Site "Oracle Business Intelligence Sign In" -recent 5000
DebugPrint "Conducting Match on login form Oracle BI Publisher
Enterprise Login"
MatchForm #1 -id "logonForm"
MatchField #1:4 -type "text" -name "NQUser"
DebugPrint "Matched Field 'NQUser'"
MatchField #1:5 -type "password" -name "NQPassword"
DebugPrint "Matched Field 'NQPassword'"
MatchField #1:8 -type "submit" -id "idlogon"
DebugPrint "Matched Field 'idlogon'"
EndSite
DebugPrint "Successfully matched login form Oracle BI Publisher
Enterprise Login"
if -exists $username
Displayvariables $username $password
Endif
SetPrompt "Username"
FocusInput #1:4
TextInput #1:4 -value "$username"
DebugPrint "Performed entry action TextInput $username into control
id#1:4"
SetPrompt "Password "
FocusInput #1:5
TextInput #1:5 -value "$password"
DebugPrint "Performed entry action TextInput $password into control
id#1:5"
SetPrompt "Please edit your login variables."
FocusInput #1:8
PressInput #1:8
DebugPrint "PressInput action performed"
EndScript
## EndSection: "Login Form"


## BeginSection: "Login Form"
Site "Oracle Business Intelligence Sign In" -subsequent
DebugPrint "Conducting Match on login form Oracle BI Publisher
Enterprise Login"
MatchForm #1 -id "logonForm"
MatchField #1:4 -type "text" -name "NQUser"
DebugPrint "Matched Field 'NQUser'"
MatchField #1:5 -type "password" -name "NQPassword"
DebugPrint "Matched Field 'NQPassword'"
MatchField #1:8 -type "submit" -id "idlogon"
DebugPrint "Matched Field 'idlogon'"
EndSite
DebugPrint "Successfully matched login form Oracle BI Publisher
Enterprise Login"
MessageBox "Do you wish to re-login?" -YesNo ?Result -DefaultNo
If ?Result Eq "No"
EndScript
EndIf
SetPrompt "Username"
FocusInput #1:4
TextInput #1:4 -value "$username"
DebugPrint "Performed entry action TextInput $username into control
id#1:4"
SetPrompt "Password "
FocusInput #1:5
TextInput #1:5 -value "$password"
DebugPrint "Performed entry action TextInput $password into control
id#1:5"
SetPrompt "Please edit your login variables."
FocusInput #1:8
PressInput #1:8
DebugPrint "PressInput action performed"
EndScript
## EndSection: "Login Form"

## BeginSection: "Login Form Subroutines"
## EndSection: "Login Form Subroutines"


One of the things I noticed is that the second app does not have a
"name" property for the form and the submit button tags, only the "id"
property. I have tried using the -name command in my script but that
did not seem to work so I switched it to -id for those items but again
it didn't seem to work.

Thanks for your help.


--
gdrtx
------------------------------------------------------------------------
gdrtx's Profile: https://forums.netiq.com/member.php?userid=1660
View this thread: https://forums.netiq.com/showthread.php?t=52253

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: 2 Apps - 1 URL = 1 app works and 1 doesn't


you always have to look at the source and the form/fields names (if
present) you want to match. by copying the working code from
application1 to a second application definition which has, as you can
see in the source, has different names (resp. no name for the form) for
the input and submit fields can´t work.
here is the reference for match form (as you notice no -id is
supported): http://tinyurl.com/nh6eb6d
i built you an .xml (could not upload, so renamed it to .txt) for import
which, assuming it´s https://, might work.

hope that helps, florian


216


+----------------------------------------------------------------------+
|Filename: sl.bi2.txt |
|Download: https://forums.netiq.com/attachment.php?attachmentid=216 |
+----------------------------------------------------------------------+

--
florianz
------------------------------------------------------------------------
florianz's Profile: https://forums.netiq.com/member.php?userid=309
View this thread: https://forums.netiq.com/showthread.php?t=52253

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: 2 Apps - 1 URL = 1 app works and 1 doesn't


Thanks but either I did something wrong or there is something else amiss
now. I took the code and copied and pasted it into a new application
definition. After doing so I went to App 2 and got no response still.
Then I went to App 1 and got the following error
"BROKER_ERROR_COMMAND_NOT_HANDLED(-199) error parsing line 1 of
Application Definition.

I'm wondering since App 2 does not have a name property for the form if
that is preventing SecureLogin from detecting the form and subsequent
fields appropriately. I can talk to the admins for that app about the
possibility of adding a name property to that form tag but without a
solid hint of success I don't think they will edit the HTML on a whim.
Given that SecureLogin does not support the -id tag does that sound like
a reasonable approach to you?


--
gdrtx
------------------------------------------------------------------------
gdrtx's Profile: https://forums.netiq.com/member.php?userid=1660
View this thread: https://forums.netiq.com/showthread.php?t=52253

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: 2 Apps - 1 URL = 1 app works and 1 doesn't


the .xml is for importing into securelogin (manually or through
slaptool), if you want to copy/paste, only copy the 'code' between
<script> and </script>.

regarding the missing name property:
it has a -method property, which, in combination with the MatchField
items will suffice to get securelogin match the login-page (compare the
'code' in the <script></script> of the second appl-def.).


--
florianz
------------------------------------------------------------------------
florianz's Profile: https://forums.netiq.com/member.php?userid=309
View this thread: https://forums.netiq.com/showthread.php?t=52253

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: 2 Apps - 1 URL = 1 app works and 1 doesn't


florianz;251363 Wrote:
> the .xml is for importing into securelogin (manually or through
> slaptool), if you want to copy/paste, only copy the 'code' between
> <script> and </script>.
>
> regarding the missing name property:
> it has a -method property, which, in combination with the MatchField
> items will suffice to get securelogin match the login-page (compare the
> 'code' in the <script></script> of the second appl-def.).


Thanks. I was able to make it work. I didn't see the script tags in
the middle. I created a new profile and was more selective with the
data copied and now it seems to work. Thank you again for your help.


--
gdrtx
------------------------------------------------------------------------
gdrtx's Profile: https://forums.netiq.com/member.php?userid=1660
View this thread: https://forums.netiq.com/showthread.php?t=52253

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.