OpenSSH and nsswitch
From: Ben Sinclair (ben@bensinclair.com)Date: 02/08/02
- Previous message: Richard E. Silverman: "Re: SSH-Agent isn't responding after logout and relogin"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: ben@bensinclair.com (Ben Sinclair) Date: 8 Feb 2002 12:53:59 -0800
I'm trying to use OpenSSH and a nsswitch module that lets me
authenticate via a database.
The system is running Debian 2.2 and I have a Debian-packaged version
of OpenSSH 1.2.3 that properly uses the module and lets me login.
I upgraded to the latest version of OpenSSH and used the chroot patch,
but this new version doesn't use the module properly. It seems to not
pass the username to the module, so it fails. Here is some output from
auth.log:
Feb 8 14:48:03 client nss-mysql[6170]: getpwuid called for 0
Feb 8 14:48:03 client ssh[6170]: _nss_mysql_read_conf_file: called
for section users
Feb 8 14:48:03 client ssh[6170]: _nss_mysql_read_conf_file ended for
section users
Feb 8 14:48:03 client ssh[6170]: _nss_mysql_db_connect: connection
with host=localhost,user=xxxx,passwd=xxxxx,database=xxxx,port=3306
Feb 8 14:48:03 client ssh[6170]: _nss_mysql_passwd_fill_struct called
for uid 0
Feb 8 14:48:03 client ssh[6170]: _nss_mysql_sqlprintf():
buffersize=1024, len=197
Feb 8 14:48:03 client ssh[6170]: _nss_mysql_passwd_fill_struct: SQL
statement: select users.username,users.id +
2000,encrypt(users.password,'$1$'),users.username,"/bin/bash",concat(concat('/usr/sshomes/',username),'/./'),1008
from users where users.id + 2000=0 and enabled = 1
Is there something different in the latest version of OpenSSH, over
1.2.3?
This may not be an OpenSSH-specific problem, but I've also noticed
that with the latest version it only attempts to use the module if I
ssh while logged in as root. If I'm logged in as a normal user, it
seems to ignore the module and authenticate the usual way. I'm doing a
-l username both ways.
Any thoughts?
- Next message: Jack Vant: "make fails - ssh-3.1.0 on AIX 4.3.3"
- Previous message: Richard E. Silverman: "Re: SSH-Agent isn't responding after logout and relogin"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|