TlmAuthPlugin

TlmAuthPlugin — an interface for implementing tlm authentication plugins

Synopsis

#include <tlm-auth-plugin.h>

struct              TlmAuthPluginInterface;
gboolean            tlm_auth_plugin_start_authentication
                                                        (TlmAuthPlugin *self,
                                                         const gchar *seat_id,
                                                         const gchar *pam_service,
                                                         const gchar *user_name,
                                                         const gchar *password);

Description

TlmAuthPlugin is an interface for implementing tlm authentication plugins.

The plugin API

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.

Example plugins

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.

Details

struct TlmAuthPluginInterface

struct TlmAuthPluginInterface {
   GTypeInterface parent;
};

TlmAuthPluginInterface interface.

GTypeInterface parent;

parent interface type.

tlm_auth_plugin_start_authentication ()

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.

self :

a plugin instance

seat_id :

seat id

pam_service :

PAM service

user_name :

user name

password :

password