|
|
fc3648 |
commit 1ee2184248251ff44ae1ba557f12151cb8cf93ff
|
|
|
fc3648 |
Author: Chuck Lever <chuck.lever@oracle.com>
|
|
|
fc3648 |
Date: Mon Nov 2 08:47:41 2015 -0500
|
|
|
fc3648 |
|
|
|
fc3648 |
gssd: Make TCP the default protocol for GSSD connections.
|
|
|
fc3648 |
|
|
|
fc3648 |
No failure case if gssd doesn't recognize the kernel's requested
|
|
|
fc3648 |
protocol. Caught with "protocol=rdma" upcall.
|
|
|
fc3648 |
|
|
|
fc3648 |
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
|
|
|
fc3648 |
Signed-off-by: Steve Dickson <steved@redhat.com>
|
|
|
fc3648 |
|
|
|
fc3648 |
diff --git a/utils/gssd/gssd_proc.c b/utils/gssd/gssd_proc.c
|
|
|
fc3648 |
index 11168b2..cee8991 100644
|
|
|
fc3648 |
--- a/utils/gssd/gssd_proc.c
|
|
|
fc3648 |
+++ b/utils/gssd/gssd_proc.c
|
|
|
fc3648 |
@@ -348,16 +348,9 @@ create_auth_rpc_client(struct clnt_info *clp,
|
|
|
fc3648 |
printerr(2, "creating %s client for server %s\n", clp->protocol,
|
|
|
fc3648 |
clp->servername);
|
|
|
fc3648 |
|
|
|
fc3648 |
- if ((strcmp(clp->protocol, "tcp")) == 0) {
|
|
|
fc3648 |
- protocol = IPPROTO_TCP;
|
|
|
fc3648 |
- } else if ((strcmp(clp->protocol, "udp")) == 0) {
|
|
|
fc3648 |
+ protocol = IPPROTO_TCP;
|
|
|
fc3648 |
+ if ((strcmp(clp->protocol, "udp")) == 0)
|
|
|
fc3648 |
protocol = IPPROTO_UDP;
|
|
|
fc3648 |
- } else {
|
|
|
fc3648 |
- printerr(0, "WARNING: unrecognized protocol, '%s', requested "
|
|
|
fc3648 |
- "for connection to server %s for user with uid %d\n",
|
|
|
fc3648 |
- clp->protocol, clp->servername, uid);
|
|
|
fc3648 |
- goto out_fail;
|
|
|
fc3648 |
- }
|
|
|
fc3648 |
|
|
|
fc3648 |
switch (addr->sa_family) {
|
|
|
fc3648 |
case AF_INET:
|