rpms/krb5/devel krb5-trunk-kpasswd_tcp.patch,NONE,1.1
Nalin Somabhai Dahyabhai (nalin)
fedora-extras-commits at redhat.com
Thu Jan 3 16:51:24 UTC 2008
- Previous message (by thread): rpms/octave/EL-5 .cvsignore, 1.13, 1.14 octave.spec, 1.51, 1.52 sources, 1.13, 1.14
- Next message (by thread): rpms/krb5/devel krb5.spec, 1.150, 1.151 krb5-kpasswd_tcp.patch, 1.2, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: nalin
Update of /cvs/pkgs/rpms/krb5/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv23133
Added Files:
krb5-trunk-kpasswd_tcp.patch
Log Message:
- less invasive approach to letting kpasswd hit tcp-only servers
krb5-trunk-kpasswd_tcp.patch:
--- NEW FILE krb5-trunk-kpasswd_tcp.patch ---
Fall back to TCP on kdc-unresolvable/unreachable errors.
Index: src/lib/krb5/os/changepw.c
===================================================================
--- src/lib/krb5/os/changepw.c (revision 20199)
+++ src/lib/krb5/os/changepw.c (working copy)
@@ -251,11 +251,22 @@
NULL,
NULL
))) {
-
- /*
- * Here we may want to switch to TCP on some errors.
- * right?
- */
+ /* if we're not using a stream socket, and it's an error which
+ * might reasonably be specific to a datagram "connection", try
+ * again with a stream socket */
+ if (!useTcp) {
+ switch (code) {
+ case KRB5_KDC_UNREACH:
+ case KRB5_REALM_CANT_RESOLVE:
+ case KRB5KRB_ERR_RESPONSE_TOO_BIG:
+ /* should we do this for more result codes than these? */
+ krb5int_free_addrlist (&al);
+ useTcp = 1;
+ continue;
+ default:
+ break;
+ }
+ }
break;
}
- Previous message (by thread): rpms/octave/EL-5 .cvsignore, 1.13, 1.14 octave.spec, 1.51, 1.52 sources, 1.13, 1.14
- Next message (by thread): rpms/krb5/devel krb5.spec, 1.150, 1.151 krb5-kpasswd_tcp.patch, 1.2, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list