mysql:4181
From: Yasuhide OMORI / 大森保英 <Yasuhide OMORI / 大森保英 <omori@xxxxxxxxxx>>
Date: Fri, 17 Aug 2001 08:52:44 +0900
Subject: [mysql 04181] Re: nss-mysql による認証 (Re: アカウント管理)
On Thu, Aug 16, 2001 at 08:17:06PM +0900, とみたまさひろ <tommy@xxxxxxxxxx> wrote: > > 上記の SQL 文を実行した上で認証を試みましたが、やはりログを見る限りで > > は password を SELECT している様子はなく、/var/log/messages では > > > > Aug 16 11:25:19 vine libnss_mysql[2307]: endpwent called > > Aug 16 11:25:19 vine libnss_mysql[2307]: endpwent: pwent was NULL > > Aug 16 11:25:19 vine libnss_mysql[2307]: endpwent finished > > > > という風なログが落ちていました。 > > MySQL のログに出力されている SELECT 文を、mysql コマンドからそのまま > 実行してみて、出力結果を見てみるとか…。 > > # 単に SELECT で何も引っ掛かってないってことはないっすかね…。 SELECT ではきちんと行が取り出せているようです。/var/log/mysql.log に 010817 8:50:27 58 Connect nss@localhost on nss_mysql 58 Init DB nss_mysql 58 Query select user_name,uid,uid,realname,shell,home dir from user where user_name='hoho' and uid is not null and user.status = 'A' 58 Quit と有ったので、mysql コマンドで試したところ mysql> select user_name,uid,uid,realname,shell,homedir from user where user_name='hoho' and uid is not null and user.status = 'A'; +-----------+------+------+-----------+-----------+-----------+ | user_name | uid | uid | realname | shell | homedir | +-----------+------+------+-----------+-----------+-----------+ | hoho | 1000 | 1000 | hoho hoho | /bin/bash | /dev/null | +-----------+------+------+-----------+-----------+-----------+ 1 row in set (0.00 sec) と出ました。なお、 [omori@vine omori]$ grep 1000 /etc/passwd [omori@vine omori]$ grep 1000 /etc/group いづれもマッチする行はありません。 -- Yasuhide OMORI / 大森保英
2707 2000-11-17 02:42 [tateyan <tateyan@xxx] アカウント管理 2710 2000-11-18 21:12 ┣[Tatsuo Hiramatsu <ta] 2711 2000-11-19 00:32 ┃┣[とみたまさひろ <tomm] 2712 2000-11-19 00:50 ┃┗[inano <inano@xxxxxxx] 2721 2000-11-19 19:25 ┃ ┗[Tatsuo Hiramatsu <ta] 福岡支部? 2726 2000-11-21 14:29 ┃ ┣[Tatsuo Hiramatsu <ta] 2727 2000-11-21 15:37 ┃ ┗[Tatsuo Hiramatsu <ta] 2730 2000-11-24 11:53 ┃ ┗[Michiaki Mitachi <mi] 2731 2000-11-24 14:14 ┃ ┗[Tatsuo Hiramatsu <ta] 2732 2000-11-24 20:55 ┃ ┗[inano <inano@xxxxxxx] 2734 2000-11-25 19:14 ┃ ┗[Tatsuo Hiramatsu <ta] @ 4168 2001-08-13 20:06 ┗[Yasuhide OMORI / 大�] nss-mysql による認証 (Re: アカウント管理) 4169 2001-08-13 22:40 ┗[tateyan <tateyan@xxx] 4170 2001-08-13 23:04 ┗[tateyan <tateyan@xxx] 4176 2001-08-16 11:32 ┗[Yasuhide OMORI / 大�] 4178 2001-08-16 20:17 ┣[とみたまさひろ <tomm] -> 4181 2001-08-17 08:52 ┃┗[Yasuhide OMORI / 大�] 4180 2001-08-17 00:59 ┗[tateyan <tateyan@xxx] 4182 2001-08-17 09:11 ┗[Yasuhide OMORI / 大�] 4183 2001-08-17 12:46 ┗[Seiji Tateyama <tate] 4184 2001-08-17 23:04 ┗[tateyan <tateyan@xxx]