summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-05-24 14:16:32 -0400
committerStephen Gallagher <sgallagh@redhat.com>2011-05-24 14:54:11 -0400
commit813725545245befacf3ffacc4dfa611948e7027b (patch)
treed02f56f70b15b4b9a115721e5db14973995739f7
parenta5c7d86090f960543b9d53c7c637cc08291f7170 (diff)
downloadsssd-813725545245befacf3ffacc4dfa611948e7027b.tar.gz
sssd-813725545245befacf3ffacc4dfa611948e7027b.tar.xz
sssd-813725545245befacf3ffacc4dfa611948e7027b.zip
Make "password" the default for ldap_default_authtok_type
-rw-r--r--src/man/sssd-ldap.5.xml3
-rw-r--r--src/providers/ldap/ldap_common.c2
2 files changed, 4 insertions, 1 deletions
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 @@
<para>
obfuscated_password
</para>
+ <para>
+ default: password
+ </para>
</listitem>
</varlistentry>
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 },