From 34000a9baa70a9414330dc07b1fbdb8173a7961c Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Tue, 24 May 2011 14:16:32 -0400 Subject: Make "password" the default for ldap_default_authtok_type --- src/man/sssd-ldap.5.xml | 3 +++ src/providers/ldap/ldap_common.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/man/sssd-ldap.5.xml b/src/man/sssd-ldap.5.xml index 42ea848a..9490fe8d 100644 --- a/src/man/sssd-ldap.5.xml +++ b/src/man/sssd-ldap.5.xml @@ -164,6 +164,9 @@ obfuscated_password + + default: password + diff --git a/src/providers/ldap/ldap_common.c b/src/providers/ldap/ldap_common.c index 1b52190f..5c595838 100644 --- a/src/providers/ldap/ldap_common.c +++ b/src/providers/ldap/ldap_common.c @@ -37,7 +37,7 @@ struct dp_option default_basic_opts[] = { { "ldap_uri", DP_OPT_STRING, NULL_STRING, NULL_STRING }, { "ldap_search_base", DP_OPT_STRING, NULL_STRING, NULL_STRING }, { "ldap_default_bind_dn", DP_OPT_STRING, NULL_STRING, NULL_STRING }, - { "ldap_default_authtok_type", DP_OPT_STRING, NULL_STRING, NULL_STRING}, + { "ldap_default_authtok_type", DP_OPT_STRING, { "password" }, NULL_STRING}, { "ldap_default_authtok", DP_OPT_BLOB, NULL_BLOB, NULL_BLOB }, { "ldap_search_timeout", DP_OPT_NUMBER, { .number = 6 }, NULL_NUMBER }, { "ldap_network_timeout", DP_OPT_NUMBER, { .number = 6 }, NULL_NUMBER }, -- cgit