A Forum reader recently asked:

“Below is a section from one of my scripts that makes sure logon.jsp appears in the URL; then it makes sure the Login, Organization, User ID, and Password are found on the page; then users are logged in. Is there a way to search every page except for 2 or 3 in particular – such as a way to say “If every page except for search.asp and logo.jsp, then …?”

geturl ?url

If "logon.jsp" -in ?url
   DebugPrint "We have reached login page."
   Delay 200
   If -text "Log In" "Organization" "User ID" "Password"
      Type $Username #2
      Type $Password #3

And here’s the response from SecureLogin expert David Guest …


If you use a regsplit to get the text before the .?sp, then you can do a reverse search.

Regsplit "http://.*/(.*)\..sp.*" ?URL ?Page
If ?Page -In "logon search logo"
#Do your thing here

This will match the string before .?sp (it should be “logon” or “search” or similar) and store it to ?Page. You then check to see if ?Page is in the list of recognized pages.

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.

Disclaimer: As with everything else at NetIQ Cool Solutions, this content is definitely not supported by NetIQ, so Customer Support will not be able to help you if it has any adverse effect on your environment.  It just worked for at least one person, and perhaps it will be useful for you too.  Be sure to test in a non-production environment.

Leave a Reply

No Comments
By: dguest
Feb 28, 2007
6:34 am
Active Directory Authentication Automation Cloud Computing Cloud Security Configuration Customizing Data Breach DirXML Drivers End User Management Identity Manager Importing-Exporting / ICE/ LDIF Intelligent Workload Management IT Security Knowledge Depot LDAP Monitoring Open Enterprise Server Passwords Reporting Secure Access Supported Troubleshooting Workflow