From c47e03cf2d446e301cf3609fa9acb90e3f6a6ccc Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Mon, 9 Mar 2009 17:05:23 +0100 Subject: use fixed paths to sockets to make sure clients and server are using the same --- server/responder/nss/nsssrv.c | 5 +++++ server/responder/nss/nsssrv.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'server/responder/nss') diff --git a/server/responder/nss/nsssrv.c b/server/responder/nss/nsssrv.c index 248b8a1e..a26f5eda 100644 --- a/server/responder/nss/nsssrv.c +++ b/server/responder/nss/nsssrv.c @@ -330,6 +330,9 @@ static int nss_sbus_init(struct nss_ctx *nctx) static int set_unix_socket(struct nss_ctx *nctx) { struct sockaddr_un addr; + +/* for future use */ +#if 0 char *default_pipe; int ret; @@ -346,6 +349,8 @@ static int set_unix_socket(struct nss_ctx *nctx) return ret; } talloc_free(default_pipe); +#endif + nctx->sock_name = SSS_NSS_SOCKET_NAME; nctx->lfd = socket(AF_UNIX, SOCK_STREAM, 0); if (nctx->lfd == -1) { diff --git a/server/responder/nss/nsssrv.h b/server/responder/nss/nsssrv.h index b1f1ff7d..949961a4 100644 --- a/server/responder/nss/nsssrv.h +++ b/server/responder/nss/nsssrv.h @@ -57,7 +57,7 @@ struct nss_ctx { int lfd; struct sysdb_ctx *sysdb; struct confdb_ctx *cdb; - char *sock_name; + const char *sock_name; struct service_sbus_ctx *ss_ctx; struct service_sbus_ctx *dp_ctx; struct btreemap *domain_map; -- cgit