Novell SecureLogin Script: Gmail Login with SSO
Novell Cool Solutions: Feature
By Girish Mutt
Reader Rating
from 3 ratings
|
Digg This -
Slashdot This
Posted: 3 May 2006 |
Introduction
This article is intended to help you enable your Gmail account for Web Single Sign On (SSO). Since Gmail is quickly becoming a widely used e-mail service, the script in this article has been provided to help you enable auto-detection of the Gmail login for Web SSO.Using the Gmail Script with Novell SecureLogin NSL
The Gmail script shown below is designed to handle the following SSO aspects:
- Gmail login detection
- Change of password
- Login loop
#####################################################################
# URL : google
#
# Name : Gmail Web login
#
# Type : Web Login Script
#
#
# This Application Definition is capable of handling the following:-
#
# *Gmail Login Detection.
# *Change Password Handling.
# *Handles Login Loop.
#
#####################################################################
GetURL ?GmailURL
#******************************************************
# Purpose: Gmail Login Handling for Web-SSO
#******************************************************
If -Text "Welcome to Gmail"
If ?LogInCount Eq "1"
MessageBox "Would you like to login again?" -YesNo ?EnterChoice
If ?EnterChoice Eq "Yes"
Call "Login"
Else
EndScript
EndIf
Else
Call "Login"
EndIf
EndIf
#******************************************************
# Subroutine Name: Login
#
# Purpose: It handles the Gmail Web Login
#
#******************************************************
Sub Login
Set ?LogInCount "1"
SetPrompt "Username:"
Type $Username #1
SetPrompt "Password :"
Type $Password #2
Submit
SetPrompt "Enter Gmail Account Username and Password."
EndScript
EndSub
#******************************************************
#
# Purpose: Gmail Change Password Handling
#
#******************************************************
If "EditPasswd?" -In ?GmailURL
If -Text "Edit password"
Type $Password #1
Set ?PassBackup $Password
ChangePassword ?NewPasswd "Please Enter Your New Password for GMail Account"
Type ?NewPasswd #3
Type ?NewPasswd #4
Set $Password ?NewPasswd
Submit
EndScript
EndIf
EndIf
#******************************************************
#
# Purpose: Gmail Wrong Username and/or Password Handling
#
#******************************************************
If -Text "Username and password do not match."
DisplayVariables "Your UserName and/or Password seems to be wrong.
Please enter the right credentials!!"$Username $Password
Call "Login"
EndIf
Implementation
The Gmail script can be added to the Novell SecureLogin(NSL) client by following the steps below:
1. From the system tray, launch the NSL icon to get the Manage Logins window.
2. In the left panel, go to the Applications option and right-click to add the new application. A dialog will appear, where you can add the new application definition.
3. In the dialog, choose the second radio button to add the new application definition.
4. Provide the values to the following parameters to create the application definition:
- Type: This defines the type of the Application, such as Windows, Terminal Emulator, Java, Web, and others. Since you are are creating a Application Definition for Gmail, which is a Web application, choose the Advanced Web option from the dropdown box.
- URL: For the Gmail account, provide "google" as the URL parameter value.
- Description: Provide any value that will help you understand the type of application needing this Application Definition. For exammple, use "Gmail Login".
Figure 1: Adding a new application definition for Gmail login
5. Launch the Gmail Login page. After the Gmail page is loaded in the browser, NSL will detect the Gmail login page.
6. When asked, provide the user credentials to enable this application for Web Single Sign On(SSO).
Figure 2: Detection of Gmail Login by NSL
Reader Comments
- Nice one ..I can use it..
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com
