How to initiate login without keyboard/mouse

Asked by Eugene Crosser on 2013-09-29

Presuming that a PAM module exists, and is configured, to authenticate user via e.g. an NFC crypto token, without the need for a userid and password, and the appearance of the token can be noticed with the help of a dbus event, how can I programmatically notify lightdm that it needs to initiate the login process?

Question information

Language:
English Edit question
Status:
Solved
For:
Light Display Manager Edit question
Assignee:
No assignee Edit question
Solved by:
Robert Ancell
Solved:
2013-10-15
Last query:
2013-10-15
Last reply:
2013-10-15
Best Robert Ancell (robert-ancell) said : #1

LightDM doesn't support non-user initiated PAM authentication at the moment, but you can get Unity Greeter to initiate a log in by contacting it on the lightdm users session D-Bus. This was added for a similar requirement.

The interface is:
interface: com.canonical.UnityGreeter.list
object: /list
Methods: GetActiveEntry() SetActiveEntry(username)
Signals: EntrySelected(username)

Eugene Crosser (crosser) said : #2

Thanks Robert Ancell, that solved my question.