<span class="Apple-style-span" style><div>Hi all,</div><div><br></div><div>I'm using libnss_pgsql module but there's problems with it. If I exute "getent passwd", the following messages show in /var/lib/pgsql/data/pg_log/postgresql-Sat.log. And the system is still using /etc/passwd and /etc/group to authenticate ssh uses.</div>
<div><br></div><div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<font color="#3366ff">ERROR:  syntax error at or near "FOR" at character 61<br>STATEMENT:  DECLARE nss_pgsql_internal_allusers_curs SCROLL CURSOR FOR  FOR READ ONLY<br>ERROR:  current transaction is aborted, commands ignored until end of transaction block<br>
STATEMENT:  FETCH FROM nss_pgsql_internal_allusers_curs</font></blockquote></div><div><br></div><div>Eveny I modify codes nss-pgsql.conf like:</div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<font color="#3366ff">getpwnam        = SELECT login AS username,passwd,gecos,('/var/lib/gforge/chroot/home/users/' || login) AS homedir,shell,uid,gid FROM nss_passwd WHERE login = $1</font></blockquote><div>to</div>
<blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><font color="#3366ff">getpwnam        = SELECT  AS ,passwd,gecos,('/var/lib/gforge/chroot/home/users/' || login) AS homedir,shell,uid,gid FROM nss_passwd WHERE login = $1</font></blockquote>
<div>The previous error message  would show. I can't figure out why. Can anyone give some advice? Thanks!</div></span>