mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-12 18:34:36 +08:00
Fix breakage induced by yours truly in Kerberos and PAM code.
This commit is contained in:
parent
6687650ce6
commit
f779a34c16
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.100 2003/04/22 00:08:06 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.101 2003/04/25 03:28:55 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -119,10 +119,10 @@ pg_krb4_recvauth(Port *port)
|
||||
version, PG_KRB4_VERSION);
|
||||
return STATUS_ERROR;
|
||||
}
|
||||
if (strncmp(port->user, auth_data.pname, SM_DATABASE_USER) != 0)
|
||||
if (strncmp(port->user_name, auth_data.pname, SM_DATABASE_USER) != 0)
|
||||
{
|
||||
elog(LOG, "pg_krb4_recvauth: name \"%s\" != \"%s\"",
|
||||
port->user, auth_data.pname);
|
||||
port->user_name, auth_data.pname);
|
||||
return STATUS_ERROR;
|
||||
}
|
||||
return STATUS_OK;
|
||||
@ -291,10 +291,10 @@ pg_krb5_recvauth(Port *port)
|
||||
}
|
||||
|
||||
kusername = pg_an_to_ln(kusername);
|
||||
if (strncmp(port->user, kusername, SM_DATABASE_USER))
|
||||
if (strncmp(port->user_name, kusername, SM_DATABASE_USER))
|
||||
{
|
||||
elog(LOG, "pg_krb5_recvauth: user name \"%s\" != krb5 name \"%s\"",
|
||||
port->user, kusername);
|
||||
port->user_name, kusername);
|
||||
ret = STATUS_ERROR;
|
||||
}
|
||||
else
|
||||
@ -488,7 +488,7 @@ ClientAuthentication(Port *port)
|
||||
#ifdef USE_PAM
|
||||
case uaPAM:
|
||||
pam_port_cludge = port;
|
||||
status = CheckPAMAuth(port, port->user, "");
|
||||
status = CheckPAMAuth(port, port->user_name, "");
|
||||
break;
|
||||
#endif /* USE_PAM */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user