Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PAM authentication in SLIM
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
v_andal
Guru
Guru


Joined: 26 Aug 2008
Posts: 310
Location: Germany

PostPosted: Tue May 24, 2011 10:27 am    Post subject: PAM authentication in SLIM Reply with quote

There's one interesting "feature" in Slim with PAM authentication. If configuration for slim says

Quote:

default_user user
focus_password yes


then first login shall fail. If I remove the "focus_password" line, so that I have to acknowledge the user name by hitting Enter,
then login works. The most interesting here is the fact that when doing preview of the theme with "slim -p" everything works correctly.

Looks like the problem is with call to pam_set_item. It should set the user name for authentication. Indeed, after call to this function the
pam_authenticate does not want to obtain the user name, only password. Nevertheless, at testing time it works with supplied user name, at
real login time it reports that

Quote:

[slim] pam_tally2(slim:auth): pam_get_uid; no such user


I'm no good at PAM. Maybe someone has an idea, why at login time the pam_set_item(PAM_USER) fails to provide user name for authentication?
Back to top
View user's profile Send private message
Da Fox
Guru
Guru


Joined: 06 Jul 2005
Posts: 340

PostPosted: Wed Jun 08, 2011 9:44 pm    Post subject: Reply with quote

There is actually a bug-report for this issue, please take a look at bug #252280
_________________
"Man fears the darkness, and so he scrapes away at the edges of it with fire."
- Rei Ayanami

JGBE, a Java based GameBoy Emulator
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum