summaryrefslogtreecommitdiffstats
path: root/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2010-10-04 15:13:36 -0400
committerSimo Sorce <ssorce@redhat.com>2010-10-05 08:54:08 -0400
commitc594ab88badcbd3f3be4e168615fdc0ab22f8afd (patch)
treea4c2dff5c16ec996f112eff4d6f796a6bbdb7b92 /daemons/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c
parent3b38e74da5c9ad2c151a38af1b22492a1a69e55e (diff)
downloadfreeipa.git-c594ab88badcbd3f3be4e168615fdc0ab22f8afd.tar.gz
freeipa.git-c594ab88badcbd3f3be4e168615fdc0ab22f8afd.tar.xz
freeipa.git-c594ab88badcbd3f3be4e168615fdc0ab22f8afd.zip
Add options to control NTLM hashes
By default LM hash is disabled. Of course generation still depends on whether the SamAccount objectclass is present in the user object.
Diffstat (limited to 'daemons/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c')
-rw-r--r--daemons/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c
index cbf57218..db55981b 100644
--- a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c
+++ b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c
@@ -73,6 +73,7 @@ const char *ipa_realm_tree;
/* dn of Kerberos realm entry */
const char *ipa_realm_dn;
const char *ipa_pwd_config_dn;
+const char *ipa_etc_config_dn;
const char *ipa_changepw_principal_dn;
Slapi_PluginDesc ipapwd_plugin_desc = {
@@ -1117,6 +1118,14 @@ static int ipapwd_start( Slapi_PBlock *pb )
goto done;
}
+ ipa_etc_config_dn = slapi_ch_smprintf("cn=ipaConfig,cn=etc,%s",
+ ipa_realm_tree);
+ if (!ipa_etc_config_dn) {
+ slapi_log_error(SLAPI_LOG_FATAL, "ipapwd_start", "Out of memory?\n");
+ ret = LDAP_OPERATIONS_ERROR;
+ goto done;
+ }
+
ret = LDAP_SUCCESS;
done: