summaryrefslogtreecommitdiffstats
path: root/server/responder/nss/nsssrv.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2009-11-09 18:38:09 +0100
committerStephen Gallagher <sgallagh@redhat.com>2009-11-18 17:35:10 -0500
commit15dc6329c159e3f03e25cc18a49681e0f4be9c51 (patch)
tree713d3ea741aecb386413ad151b07de7f801b412a /server/responder/nss/nsssrv.c
parent8f1d08367255e5be9db8718da5d4ee9444911b57 (diff)
downloadsssd-15dc6329c159e3f03e25cc18a49681e0f4be9c51.tar.gz
sssd-15dc6329c159e3f03e25cc18a49681e0f4be9c51.tar.xz
sssd-15dc6329c159e3f03e25cc18a49681e0f4be9c51.zip
Make the password field configurable in NSS
Per the discussion on sssd-devel list, nss_sss should not return a hardcoded value but this should rather be configurable to allow whatever the OS or distribution thinks is the best for the particular case. Fixes: #266
Diffstat (limited to 'server/responder/nss/nsssrv.c')
-rw-r--r--server/responder/nss/nsssrv.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/responder/nss/nsssrv.c b/server/responder/nss/nsssrv.c
index dad1c7c18..7de346f0c 100644
--- a/server/responder/nss/nsssrv.c
+++ b/server/responder/nss/nsssrv.c
@@ -45,6 +45,8 @@
#define SSS_NSS_PIPE_NAME "nss"
+#define DEFAULT_PWFIELD "*"
+
static int service_reload(DBusMessage *message, struct sbus_connection *conn);
struct sbus_method monitor_nss_methods[] = {
@@ -201,6 +203,11 @@ static int nss_get_config(struct nss_ctx *nctx,
}
}
+ ret = confdb_get_string(cdb, nctx, CONFDB_NSS_CONF_ENTRY,
+ CONFDB_NSS_PWFIELD, DEFAULT_PWFIELD,
+ &nctx->pwfield);
+ if (ret != EOK) goto done;
+
ret = 0;
done:
talloc_free(tmpctx);