xombra / pam-face-authentication

Automatically exported from code.google.com/p/pam-face-authentication
0 stars 0 forks source link

Black box in KDM login #60

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I've downloaded, compiled and installed pam-face-authentication-0.3 and 
kdm-plugin-pam-face-authentication-0.2 successfully, then edited /etc/pam.d/su, 
/etc/pam.d/su-l, /etc/pam.d/sudo, /usr/share/kde4/config/kdm/kdmrc and included 
"PluginsLogin=classic,faceauthenticate".

When KDM starts, I can select faceauthenticate as the authentication method but 
webcam won't start and all I can see is a black box. I searched the web and 
found out that this happens probably because I didn't configured pam correctly 
for KDM, but I don't know how to do it, there's no kde or kdm specific 
configuration file. I tried to add "auth sufficient pam_face_authentication.so" 
to /etc/pam.d/xdm but it wasn't enought.

The face authentication works fine for su and sudo, thought.

Additional data:
Using openSuse 11.3, KDE 4.5.1

output of "ls /etc/pam.d":
atd                               common-auth.pam-config-backup      
kde4-faceauthenticate  shadow
backup                            common-password                    login      
            smtp
chage                             common-password-pc                 login.old  
            sshd
chfn                              common-password.pam-config-backup  other      
            su
chsh                              common-session                     passwd     
            su-l
common-account                    common-session-pc                  polkit     
            sudo
common-account-pc                 common-session.pam-config-backup   polkit-1   
            useradd
common-account.pam-config-backup  crond                              ppp        
            xdm
common-auth                       cups                               remote     
            xdm-np
common-auth-pc                    init                               samba

output of "cat /etc/pam.d/xdm":
#%PAM-1.0
auth     include        common-auth
account  include        common-account
password include        common-password
session  required       pam_loginuid.so
session  include        common-session

Thanks in advance for any help and congrats for the app!

Original issue reported on code.google.com by danilo.luvizotto@gmail.com on 6 Oct 2010 at 2:13

GoogleCodeExporter commented 8 years ago
just found this in /var/log/messages:
Oct  6 18:09:34 japune kdm: :2[18840]: pam_warn(xdm-faceauthenticate:auth): 
function=[pam_sm_authenticate] service=[xdm-faceauthenticate] terminal=[:2] 
user=[<unknown>] ruser=[<unknown>] rhost=[<unknown>]

Original comment by danilo.luvizotto@gmail.com on 6 Oct 2010 at 9:10

GoogleCodeExporter commented 8 years ago
ok, thanks for the additional info. If the user is unknown, face auth can't 
work of course. Anyway, the plugin should abort and not end in a black screen 
beside from the question why the issue with the unknown user.

I'll investigate that further...

Original comment by feichtne...@gmail.com on 6 Oct 2010 at 10:07

GoogleCodeExporter commented 8 years ago
Thank you! I'm still trying to figure out what's the problem. Maybe it's 
because my KDE version (4.5.1)?
If found out that if I add "auth sufficient pam_face_authentication.so enableX" 
to /etc/pam.d/xdm-np and try to login "classicaly" (username + password), then 
the face recognition will work after I enter my password and hit enter. But not 
in the plugin.

Original comment by danilo.luvizotto@gmail.com on 6 Oct 2010 at 10:17

GoogleCodeExporter commented 8 years ago
Ok, installed KDM 4.4 and it didn't work either. I really don't know what to do.

Original comment by danilo.luvizotto@gmail.com on 6 Oct 2010 at 11:50

GoogleCodeExporter commented 8 years ago
Hi danilo.luvizotto,

Have you tried to add "auth sufficient pam_face_authentication.so enableX" to 
/etc/pam.d/xdm?

I have a similar system as yours, and met the same black box problem when I set 
"PluginsLogin=faceauthenticate" in /usr/share/kde4/config/kdm/kdmrc without 
"classic".

Shawn

Original comment by zslkw0...@gmail.com on 8 Oct 2010 at 2:53

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Wow, very weird huh?
I am using it with "auth sufficient pam_face_authentication.so enableX", it 
works in the classic autenthication but not in the kdm plugin. If in the 
classic one I hit enter without entering my password, I can login with my face, 
but if I switch to the kdm plugin, I get only the black box.
Anyway, thank you for your help.

Here's my /etc/pam.d/xdm now:
#%PAM-1.0
auth     sufficient     pam_face_authentication.so enableX
auth     include        common-auth
account  include        common-account
password include        common-password
session  required       pam_loginuid.so
session  include        common-session

Original comment by danilo.luvizotto@gmail.com on 8 Oct 2010 at 8:25

GoogleCodeExporter commented 8 years ago
Hi, the package kgreet plugin is not available in kde 4.5.*, it was replaced by 
another or is obsolete

Original comment by ali....@gmail.com on 19 Oct 2010 at 8:12

GoogleCodeExporter commented 8 years ago
To: danilo.luvizotto
On OpenSuSE kde4.5, the authentication file for kdm faceauthenticate greeter is 
"/etc/pam.d/xdm-faceauthenticate", create this file and everything is OK now!

/etc/pam.d/xdm-faceauthenticate
#%PAM-1.0
auth sufficient pam_face_authentication.so enableX
auth     include        common-auth
account  include        common-account
password include        common-password
session  required       pam_loginuid.so
session  include        common-session

Original comment by yis...@gmail.com on 23 Oct 2010 at 11:08

GoogleCodeExporter commented 8 years ago
In the file "/etc/pam.d/xdm-faceauthenticate", the option "enableX" is not 
necessary.

Original comment by yis...@gmail.com on 23 Oct 2010 at 11:25

GoogleCodeExporter commented 8 years ago
After login through the kdm faceauthenticate greeter, there is a problem of 
locking session.
edit “~/.kde4/share/config/kscreensaverrc” and add:
PluginsUnlock=classic,generic,faceauthenticate

Original comment by yis...@gmail.com on 23 Oct 2010 at 12:41