Page 1 of 1

Auto Sign on To Genie

Posted: Mon Feb 13, 2012 12:11 pm
by FoxBill
I am looking for sample code to bypass the sign on Screen. I want to be able to automatically sign in. How does one store the login and password in Logic to lanch Genie but also allow one to logout when finished?

Re: Auto Sign on To Genie

Posted: Mon Feb 13, 2012 2:45 pm
by David
Are you looking to sign in automatically using a generic user id/password? Or can you explain a bit more what you are looking for?

Re: Auto Sign on To Genie

Posted: Mon Feb 13, 2012 3:34 pm
by FoxBill
I am Looking to add a shortcut on User Screen to log them in with out having to maually login.
I guess I would have to create a seperate skin for each user, so I can individually store their sign in information.
There was a sample code of the auto sign in in your Screen Customization Guide that does not work with Version 3 level. I am looking for Something simular to that but works with current Version 3.

Re: Auto Sign on To Genie

Posted: Mon Feb 13, 2012 3:44 pm
by David
What is the user screen you are referring to that the user would be signed into already? What type of application is this? A Telnet/5250 session?

Re: Auto Sign on To Genie

Posted: Mon Feb 13, 2012 4:40 pm
by FoxBill
I am just looking to have a person once they are signed on to our network, they could click on a desktop short cut and it would bypass the login screen and they would be at their main menu screen. I am looking to have the option of imbedding the login and Password.
I had it working that i can Sign in automatically but i can not exit the program. I have to click on the X in the corner of the window. If I try to enter 90 (Signoff) it signs me off then propagates the Login info and signs right back in.

Re: Auto Sign on To Genie

Posted: Mon Feb 13, 2012 7:24 pm
by David
The trouble with this is that it's not easy to secure.

It's pretty easy to sign the user into Genie and out again -- see the attached document which explains how to use macros in V3.

You can create a macro that detects the sign on screen (the trick is to use 'detectonce' so it doesn't sign them back in every time they come back here) and signs them in using substitution variables. It can then detect the sign on screen again (use 'detect' this time, later in the macro), and can then run the 'close' command to sign them off.

The problem is that it's not secure to pass users/passwords on the URL, so sending them with substiution variables is not good.

You can code user/passwords into the macro filess themselves, but what's then to stop a user from running somebody else's macro?

The only real secure way of getting a user signed into Genie automatically based on them being signed into your network is to implement Kerberos-based single sign on between your network and the iSeries.

Genie does support this if it's in place.