authentication checks in the backend.
Gavin Sherry
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.147 2007/01/05 22:19:29 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.148 2007/02/08 04:52:18 momjian Exp $
*
*-------------------------------------------------------------------------
*/
krb5_ticket *ticket;
char *kusername;
+ if (get_role_line(port->user_name) == NULL)
+ return STATUS_ERROR;
+
ret = pg_krb5_init();
if (ret != STATUS_OK)
return ret;
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/libpq/hba.c,v 1.158 2007/01/05 22:19:29 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/libpq/hba.c,v 1.159 2007/02/08 04:52:18 momjian Exp $
*
*-------------------------------------------------------------------------
*/
{
char ident_user[IDENT_USERNAME_MAX + 1];
+ if (get_role_line(port->user_name) == NULL)
+ return STATUS_ERROR;
+
switch (port->raddr.addr.ss_family)
{
case AF_INET: