|
10 | 10 | *
|
11 | 11 | *
|
12 | 12 | * IDENTIFICATION
|
13 |
| - * $PostgreSQL: pgsql/src/backend/libpq/hba.c,v 1.126 2004/07/11 00:18:43 momjian Exp $ |
| 13 | + * $PostgreSQL: pgsql/src/backend/libpq/hba.c,v 1.127 2004/07/2618:53:38 tgl Exp $ |
14 | 14 | *
|
15 | 15 | *-------------------------------------------------------------------------
|
16 | 16 | */
|
@@ -1222,10 +1222,10 @@ load_ident(void)
|
1222 | 1222 | *return false.
|
1223 | 1223 | */
|
1224 | 1224 | staticbool
|
1225 |
| -interpret_ident_response(char*ident_response, |
| 1225 | +interpret_ident_response(constchar*ident_response, |
1226 | 1226 | char*ident_user)
|
1227 | 1227 | {
|
1228 |
| -char*cursor=ident_response;/* Cursor into |
| 1228 | +constchar*cursor=ident_response;/* Cursor into |
1229 | 1229 | * *ident_response */
|
1230 | 1230 |
|
1231 | 1231 | /*
|
@@ -1451,6 +1451,10 @@ ident_inet(const SockAddr remote_addr,
|
1451 | 1451 |
|
1452 | 1452 | ident_response[rc]='\0';
|
1453 | 1453 | ident_return=interpret_ident_response(ident_response,ident_user);
|
| 1454 | +if (!ident_return) |
| 1455 | +ereport(LOG, |
| 1456 | +(errmsg("invalidly formatted response from Ident server: \"%s\"", |
| 1457 | +ident_response))); |
1454 | 1458 |
|
1455 | 1459 | ident_inet_done:
|
1456 | 1460 | if (sock_fd >=0)
|
@@ -1648,6 +1652,10 @@ authident(hbaPort *port)
|
1648 | 1652 | returnSTATUS_ERROR;
|
1649 | 1653 | }
|
1650 | 1654 |
|
| 1655 | +ereport(DEBUG1, |
| 1656 | +(errmsg("IDENT code identifies remote user as \"%s\"", |
| 1657 | +ident_user))); |
| 1658 | + |
1651 | 1659 | if (check_ident_usermap(port->auth_arg,port->user_name,ident_user))
|
1652 | 1660 | returnSTATUS_OK;
|
1653 | 1661 | else
|
|