summaryrefslogtreecommitdiff
path: root/server/responder/nss
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2009-03-09 17:05:23 +0100
committerSimo Sorce <ssorce@redhat.com>2009-03-09 15:07:48 -0400
commitc47e03cf2d446e301cf3609fa9acb90e3f6a6ccc (patch)
treebfe0be7667413437a1237802f5da462fca11f167 /server/responder/nss
parentda481aa47c4f4545c1bbb7699a04566dc94e6db2 (diff)
downloadsssd-c47e03cf2d446e301cf3609fa9acb90e3f6a6ccc.tar.gz
sssd-c47e03cf2d446e301cf3609fa9acb90e3f6a6ccc.tar.bz2
sssd-c47e03cf2d446e301cf3609fa9acb90e3f6a6ccc.zip
use fixed paths to sockets to make sure clients and server are using the same
Diffstat (limited to 'server/responder/nss')
-rw-r--r--server/responder/nss/nsssrv.c5
-rw-r--r--server/responder/nss/nsssrv.h2
2 files changed, 6 insertions, 1 deletions
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;