Autologin of user in a UI

Find and share HowTos to various installations / configurations!
5 posts • Page 1 of 1
nmnogueira
Posts:125
Joined: Thu May 05, 2011 12:59 pm

Autologin of user in a UI

Post by nmnogueira »

Hi all,

Is there a simple way (and by simple I mean already implemented by default) to perform auto-login of a user in a user interface?

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Autologin of user in a UI

Post by mkoller »

"Logging in" in a user interface manager just means to set a specific user id (setUserId() CTRL function).
One can only call this function when also the password is known, which you must pass as parameter to the function.
That said: you must know the user name (or id) and the password.
With this information you can also start the UI directly, e.g.
WCCOAui -user name:password
Starting a UI like this means you have a "logged in" user when the UI started, that is: "auto-login"
(This way you don't need to call setUserId() with a CTRL script)

nmnogueira
Posts:125
Joined: Thu May 05, 2011 12:59 pm

Re: Autologin of user in a UI

Post by nmnogueira »

Thanks, I hadn't thought of the -user option for the manager.
Anyway, that works fine for GEDI, but not for VISION where a login screen pops up for user login. Is there a way to skip this login screen completely (based on a user and password specified in the manager)?

fmulder
Posts:330
Joined: Wed Feb 03, 2010 9:46 am

Re: Autologin of user in a UI

Post by fmulder »

you're probably starting your gui with the arguments '-p vision\\Startup.pnl'. This panel will eventually show the login panel.
You'll have to start a another panel and will then have to implement your own login procedure (which is not too difficult)

So, I you use the standard framework based on the topology with the nice login screen, then the answer is probably no.
When you implement your own startup panels then the answer would be yes

Good luck and share the fun

Frenk Mulder

RudiKreiner
Posts:198
Joined: Mon May 16, 2011 2:10 pm

Re: Autologin of user in a UI

Post by RudiKreiner »

WinCC OA also supports Windows User login, meaning that you have the same users in WinCC as you do in your Windows world.
Any user then logs in Windows on a PC with his credentials from whatever user management is used. Then if WinCC is setup properly, the UI will start with the same user credentials, without needing to enter them again.

This may be an alternative concept that is of interest to you.

5 posts • Page 1 of 1