From 813725545245befacf3ffacc4dfa611948e7027b 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 58665eb4e..0b1b960ac 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 29a5820f5..4562b0e17 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