summaryrefslogtreecommitdiff
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:52:34 -0400
commit34000a9baa70a9414330dc07b1fbdb8173a7961c (patch)
tree4b09e649233d69a90d1685eb3633c3bdd613e028
parent0d10a0b7a78ae4595d4aa89fd76b304b36729028 (diff)
downloadsssd-34000a9baa70a9414330dc07b1fbdb8173a7961c.tar.gz
sssd-34000a9baa70a9414330dc07b1fbdb8173a7961c.tar.bz2
sssd-34000a9baa70a9414330dc07b1fbdb8173a7961c.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 42ea848a..9490fe8d 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 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 },