Fix old-style GSSRPC authentication
authorGreg Hudson <ghudson@mit.edu>
Mon, 13 Jun 2011 18:54:33 +0000 (18:54 +0000)
committerGreg Hudson <ghudson@mit.edu>
Mon, 13 Jun 2011 18:54:33 +0000 (18:54 +0000)
commitdf939cf166c1dd11d43b4b05a97651fa4fcf296e
tree10fc37c0c638b41011c7d9e91c324cbec697fbac
parentb679ed1ac8cb5aeffd9b73969e19b2197ed0f05e
Fix old-style GSSRPC authentication

r24147 (ticket #6746) made libgssrpc ignorant of the remote address of
the kadmin socket, even when it's IPv4.  This made old-style GSSAPI
authentication fail because it uses the wrong channel bindings.  Fix
this problem by making clnttcp_create() get the remote address from
the socket using getpeername() if the caller doesn't provide it and
it's an IPv4 address.

ticket: 6920
target_version: 1.9.2
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24967 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/rpc/clnt_tcp.c