Top | ![]() |
![]() |
![]() |
![]() |
TlmAuthPlugin is an interface for implementing tlm authentication plugins.
Tlm authentication plugins provide authentication events: when they detect a user's intention to login, they issue a signal, containing user's credentials. Tlm acts upon this signal, by checking the credentials and starting a new session.
See example plugin implementation here:
https://github.com/01org/tlm/tree/master/src/plugins/default and here: https://github.com/01org/tlm/tree/master/src/plugins/nfc.gboolean tlm_auth_plugin_start_authentication (TlmAuthPlugin *self
,const gchar *seat_id
,const gchar *pam_service
,const gchar *user_name
,const gchar *password
);
This method should be used by plugin implementations to issue TlmAuthPlugin::authenticate signal.
struct TlmAuthPluginInterface { GTypeInterface parent; };
TlmAuthPluginInterface interface.
“config”
property“config” GHashTable *
This property holds a list of key-value pairs of plugin configuration taken from tlm.conf configuration file.
Flags: Read / Write / Construct Only
“authenticate”
signalgboolean user_function (TlmAuthPlugin *plugin, gchar *seat_id, gchar *pam_service, gchar *user_name, gchar *password, gpointer user_data)
The signal is issued by the plugin, when a new authentication session should be started.
plugin |
the plugin which emitted the signal |
|
seat_id |
seat id |
|
pam_service |
pam service to be used |
|
user_name |
username to authenticate |
|
password |
password to use |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last