- 论坛徽章:
- 0
|
后来我现/var/log/secure 日志里有
- login: pam_mysql - MySQL error (You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE username = 'cinergi'' at line 1)
复制代码
错误,所以我怀疑是不是跟libnss-mysql的配置文件有关系呀。是不是这个配置文件是以前mysql老版本的语法,跟现在的有差别呢。我对mysql不是太了解。有帮我分析一下,小弟在此谢谢
- getpwnam SELECT username,'x',uid,gid,gecos,homedir,shell \
- FROM users \
- WHERE username='%1$s' \
- LIMIT 1
- getpwuid SELECT username,'x',uid,gid,gecos,homedir,shell \
- FROM users \
- WHERE uid='%1$u' \
- LIMIT 1
- getspnam SELECT username,password,lstchg,min,max,warn,inact,expire,flag \
- FROM users \
- WHERE username='%1$s' \
- LIMIT 1
- getpwent SELECT username,'x',uid,gid,gecos,homedir,shell \
- FROM users
- getspent SELECT username,password,lstchg,min,max,warn,inact,expire,flag \
- FROM users
- getgrnam SELECT name,password,gid \
- FROM groups \
- WHERE name='%1$s' \
- LIMIT 1
- getgrgid SELECT name,password,gid \
- FROM groups \
- WHERE gid='%1$u' \
- LIMIT 1
- getgrent SELECT name,password,gid \
- FROM groups
- memsbygid SELECT username \
- FROM grouplist \
- WHERE gid='%1$u'
- gidsbymem SELECT gid \
- FROM grouplist \
- WHERE username='%1$s'
- host localhost
- database auth
- username nss-user
- password userpass
- #socket /var/lib/mysql/mysql.sock
- #port 3306
复制代码 |
|