Received: from serrano.cc.columbia.edu (IDENT:cu41754@serrano.cc.columbia.edu [128.59.29.6]) by krbdev.mit.edu (8.9.3p2) with ESMTP id JAA13935; Thu, 18 Jan 2007 09:54:08 -0500 (EST) Received: from [192.168.1.13] (cpe-68-175-93-48.nyc.res.rr.com [68.175.93.48]) (user=jaltman mech=PLAIN bits=0) by serrano.cc.columbia.edu (8.13.7/8.13.6) with ESMTP id l0IEs7pI010343 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 18 Jan 2007 09:54:07 -0500 (EST) Message-Id: <45AF8A8B.4010203@mit.edu> Date: Thu, 18 Jan 2007 09:56:11 -0500 From: Jeffrey Altman User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: rt@krbdev.mit.edu Subject: Re: [krbdev.mit.edu #5393] krb5-1.6: tcp kpasswd service required if only admin_server is specified in krb5.conf References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-No-Spam-Score: Local X-Scanned-BY: MIMEDefang 2.48 on 128.59.29.6 RT-Send-Cc: X-RT-Original-Encoding: iso-8859-1 Content-Length: 951 The problem of course was a bug in the patch. == instead of =. Here is the corrected version. Index: changepw.c =================================================================== --- changepw.c (revision 19063) +++ changepw.c (working copy) @@ -70,12 +70,14 @@ locate_service_kadmin, SOCK_STREAM, 0); if (!code) { /* Success with admin_server but now we need to change the - port number to use DEFAULT_KPASSWD_PORT. */ + port number to use DEFAULT_KPASSWD_PORT and the socktype. */ int i; for (i=0; inaddrs; i++) { struct addrinfo *a = addrlist->addrs[i].ai; if (a->ai_family == AF_INET) sa2sin (a->ai_addr)->sin_port = htons(DEFAULT_KPASSWD_PORT); + if (sockType != SOCK_STREAM) + a->ai_socktype = sockType; } } }