Anonymous_User Absent Member.
Absent Member.
556 views

Secure Login V8.01 .net and iexplore scripting


Hello
I create a new script using .net method for iexplore.
It works well but in case of using direct links it would´nt.

Please find attached script below:
Backround:

In Row 1 - 9 I analyse the parent page and write the information to
?site variable.

On row 52 -89 I declare all websites and set Credentials variable for
later setplat command.

The script works, if I first! goto (example) www.iec.ch and click on
MyIEC Button on upper right corner.

Problem Sites: - Steps to duplicate.....
Create a favorite to following link: http://docbox.etsi.org/GA/

Goto in IE for example to www.Google.com and click to link
http://docbox.etsi.org/GA in Favorites:
If you use my script you´ll see that the parent site is still
www.google.com (see poup window) and then the script will not work.

Is there a idea to fix this problem?
Regards
Jürgen

Here the script
------------------------------------------------------------------------------------------------------------------------------
Parent
ReadText #0 ?Site
#Hier läßt sich mit der Messagebox auslesen was im Logon Fenster steht.
Messagebox ?Site
EndParent

Dialog
Title "Windows-Sicherheit"
EndDialog

#================================================= ========
# ?CurrentTime(System) ist eine interne Variable
# Die temp variable ist die aktuelle Zeit
# Die beiden Zeiten werden miteinander verglichen
#================================================= ========
Set ?NewTime ?CurrTime(System)
Subtract ?NewTime ?OldTime ?Diff
#================================================= ============
# Wenn diese Zeit < wie 12 Sekunden ist, wird angenommen dass das
Kennwort faslch ist und fragr nach den Credentials
#================================================= ============
If ?Diff Lt "12"
DisplayVariables "Anmeldedaten wurden nicht akzeptiert. Bitte
korrigieren Sie Benutzername / Passwort."
Click #7
EndIf

#===============================
# Set ?OldTime and reset ?Diff to "0"
#===============================
Set ?OldTime ?CurrTime(System)
Set ?Diff "0"

#================================================= ===
# Enter stored Username and Password
#================================================= ===
#Call Logon
################################

Sub Logon
#################################

call Checksite
setplat ?Credentials
type $Username #4
type $Password #5
Click #7

endsub

sub Checksite
set ?Enabled "NO"

If "Welcome to the IEC" -in ?Site -I
#http://www.iec.ch/ Seite mit Windows Logon
Set ?Enabled "YES"
Set ?Credentials "IEC und Cenelec Logon"
#Messagebox ?Credentials
Endif

If "IEC -" -in ?Site -I
#http://www.iec.ch/dyn/www/f?p=103:58:5698337430581::::: Seite mit
Windows Logon
Set ?Enabled "YES"
Set ?Credentials "IEC und Cenelec Logon"
Endif

If "IECEx" -in ?Site -I
#http://www.iecex.com Seite mit Windows Logon
Set ?Enabled "YES"
Set ?Credentials "IEC und Cenelec Logon"
Endif

If "CENELEC" -in ?Site -I
#http://tinyurl.com/mqulvf9
Set ?Enabled "YES"
Set ?Credentials "IEC und Cenelec Logon"
Endif

If "docbox" -in ?Site -I
#http://docbox.etsi.org/GA/
Set ?Enabled "YES"
Set ?Credentials "ETSI.ORG"
Endif

If ?Enabled eq "NO"
Endscript
Endif
Endsub


--
jhillenb
------------------------------------------------------------------------
jhillenb's Profile: https://forums.netiq.com/member.php?userid=5480
View this thread: https://forums.netiq.com/showthread.php?t=51959

0 Likes
3 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Secure Login V8.01 .net and iexplore scripting


This is a normal behaviour when launching a website with basic
authentication.
Simply use the IE popup to set the platform and enter the credentials.
So recognize the Windows-Sicherheit dialog, read the text and fire it
up.

Regards
Frank


--
fschmaering
------------------------------------------------------------------------
fschmaering's Profile: https://forums.netiq.com/member.php?userid=1499
View this thread: https://forums.netiq.com/showthread.php?t=51959

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Secure Login V8.01 .net and iexplore scripting


fschmaering;249904 Wrote:
> This is a normal behaviour when launching a website with basic
> authentication.
> Simply use the IE popup to set the platform and enter the credentials.
> So recognize the Windows-Sicherheit dialog, read the text and fire it
> up.
>
> Regards
> Frank


Hello frank,
thanks for your quick response, but how could I read the text in Windows
Security box ?
Dot Net Windowfinder nor normal Windowfinder can show me the triggers to
read the text in box.
Regards
Jürgen


--
jhillenb
------------------------------------------------------------------------
jhillenb's Profile: https://forums.netiq.com/member.php?userid=5480
View this thread: https://forums.netiq.com/showthread.php?t=51959

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Secure Login V8.01 .net and iexplore scripting


Hi Jürgen,

if you are using NSL 8+ you'll have a Pred. App. Def named "Internet
Explorer 7+ for Windows Vista/2K8/7".
Simply use this. As EXE iexplore

Shortly modify the first lines:

#=============================================================
# EXE/ID: IEXPLORE
# Name: Internet Explorer
# Type: Windows
# App Version: IE 7/8/9 for Windows Vista/2K8/7
# Script Version: 1.1
#
# Written By: NetIQ
# Last Updated By: NetIQ
#
# History:
# Jan 2012 - NetIQ - Created application definition
# Mar 2012 - NetIQ - Additional dialog matches added
#=============================================================
local ?locationMsg
local ?domainMsg
local ?LoginDifference
Local ?ThisLoginTime
Local ?prompt
Local ?creds
Local ?Realm
Local ?Site

## BeginSection: "Login using Windows CredProv"

## subsection "internet domain basic"

Dialog
Title "Windows Security"
Class "#32770"
*# Ctrl #7 "OK"
# Ctrl #8 "Cancel"
*EndDialog

# may need a delay here as message setting can sometimes take time
ReadText #1 ?locationMsg

**Messagebox ?locationMsg

You'll get a popup from NSL with the text which was read from the
Windows Security window.
--> The server www.iec.ch is asking... <---

Way down in the sub "configure" line 256 you can see the location
message and change the platform accordingly.

Regards
Frank


--
fschmaering
------------------------------------------------------------------------
fschmaering's Profile: https://forums.netiq.com/member.php?userid=1499
View this thread: https://forums.netiq.com/showthread.php?t=51959

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.