Automatic dismissal of greeter GUI upon PAM_SUCCESS

Asked by BobD on 2014-09-10

I'm trying to write a PAM module that automatically authenticates PAM_USER (based on external information) without interacting with the user through the greeter, but the user is always presented with a dialog even if the PAM conversation function is never called. They have to at least press "Return" to get past that dialog. It would be great if the greeter GUI was never presented (or was automatically dismissed) once pam_authenticate returns PAM_SUCCESS. The pam_conv() function is supposed to drive the GUI dialog, so if it's never called then logically we should never see it.

Is there a configuration option which would allow this?

Question information

English Edit question
Unity Greeter Edit question
No assignee Edit question
Last query:
Last reply:

This question was reopened

Robert Ancell (robert-ancell) said : #1

In Unity Greeter if no interaction is required the user is just presented with a button "Log in". This is required so you can scroll through the list without automatically logging in when you scroll past a user that doesn't require interaction.

BobD (bobdrad) said : #2

But if PAM_USER is set, no user selection should be required, right?

BobD (bobdrad) said : #3

And, if pam_authenticate returns success, somebody specific had been authenticated. The user shouldn't be able to choose who that authentication applies to.

Can you help with this problem?

Provide an answer of your own, or ask BobD for more information if necessary.

To post a message you must log in.