[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

PAM+Mysql Systemlogin




Hallo Liste, 

ich hoffe jemand kann mir helfen, ich bin nämlich am verzweifeln.

Ich möchte meine User authentifikation auf meinem Debian über eine
Mysql Datenbank steuern.  Dafür hab ich die API pam_mysql compiliert
und die pam.d/login , pam.d/passwd mit folgenden Einträgen ergänzt 

auth       optional   pam_mysql.so  host=localhost usercolumn=user
passwdcolumn=password crypt=1 db=test table=users account    required  
pam_mysql.so  host=localhost usercolumn=user passwdcolumn=password
crypt=1 db=test table=users

wenn nun der User und das Passwd in die db test eingepflegt wurden,
sollte es das ja eigentlich schon gewesen sein. Leider funktioniert es
aber nicht, ich bekomme bei dem versuch mich lokal einzuloggen eine 2.te
Passwort abfrage da ich ja "optional" angegeben habe, aber die
Authentifikation schlägt trotzdem fehl. 

Ein auszug aus meiner /var/log/auth.log


deb-server pam_mysql[1751]: select password from users where user='este'
Mar 28 18:08:48 deb-server login(pam_unix)[1751]: check pass; user
unknown Mar 28 18:08:48 deb-server login(pam_unix)[1751]: authentication
failure; logname=LOGIN uid=0 euid=0 tty=tty3 ruser= rhost= Mar 28
18:08:51 deb-server login[1751]: FAILED LOGIN (2) on `tty3' FOR
`UNKNOWN', Authentication service cannot retrieve authentication
info.-ar 28 18:08:54 deb-server pam_mysql[1751]: select password from
users where user='test' Mar 28 18:08:55 deb-server
login(pam_unix)[1751]: check pass; user unknown Mar 28 18:08:55
deb-server login(pam_unix)[1751]: authentication failure; logname=LOGIN
uid=0 euid=0 tty=tty3 ruser= rhost= Mar 28 18:08:58 deb-server
login[1751]: FAILED LOGIN (3) on `tty3' FOR `UNKNOWN', Authentication
service cannot retrieve authentication info.



ich hab auch folgende Logs in /tmp/pam_debug.log

[pam_mysql.c:db_connect(100)] called.
[pam_mysql.c:db_connect(120)] returning.
[pam_mysql.c:db_checkpasswd(132)] called.
[pam_mysql.c:db_checkpasswd(153)] select password from users where
user='test'[pam_mysql.c:db_checkpasswd(187)] returning.
[pam_mysql.c:pam_sm_authenticate(385)] returning.
[pam_mysql.c:pam_sm_authenticate(287)] called.
[pam_mysql.c:pam_sm_authenticate(307)] host changed.
[pam_mysql.c:pam_sm_authenticate(330)] usercolumn changed.
[pam_mysql.c:pam_sm_authenticate(333)] passwdcolumn changed.
[pam_mysql.c:pam_sm_authenticate(345)] crypt changed.
[pam_mysql.c:pam_sm_authenticate(318)] database changed.
[pam_mysql.c:pam_sm_authenticate(327)] table changed.


Mehr Informationen konnte ich bisher nicht herausfinden .

Danke schon mal für eure Hilfe 


Gruß

Joerg 









Reply to: