| Top |
loginUser (IN s seat_id, IN s username, IN s password, IN a{ss} environ); logoutUser (IN s seat_id); switchUser (IN s seat_id, IN s username, IN s password, IN a{ss} environ);
Login objects can be used to login, logout and switch users. Login object with root access is exported at TLM_DBUS_ROOT_SOCKET_ADDRESS which can be used to login, logout and switch any user. TLM_DBUS_ROOT_SOCKET_ADDRESS can be fetched as a variable from package configuration file tlm.pc. Besides whenever a user is logged in, a dbus login object is also exported which can be used for 'logout-user' and 'switch-user' functionalities by that user. The dbus object can be accessed at TLM_DBUS_SOCKET_PATH/<seat_id-uid> by the user (uid) who is logged in at the seat (seat_id).
loginUser (IN s seat_id,
IN s username,
IN s password,
IN a{ss} environ);
Login the user. loginUser() will fail if the user is already logged in, while switchUser() will not.
|
id of the seat |
|
name of the user |
|
password to use for login |
|
key-value pairs of environment variables |
switchUser (IN s seat_id,
IN s username,
IN s password,
IN a{ss} environ);
Logout the currently logged in user (if any), and login new user. loginUser() will fail if the user is already logged in, while switchUser() will not.
|
id of the seat |
|
name of the user |
|
password to use for login |
|
key-value pairs of environment variables |