summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2016-01-19 05:45:47 +0100
committerAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2016-01-20 00:05:30 +0100
commit015a0744ac127b28c3b381ba887f85e5ba8cd85c (patch)
treeb532b40f7634dcf1ee40d3b7f6b972e417e524fe
parentb3e4436caea6839b08733a6ad170d8aefa0d6d77 (diff)
downloadldap-plugin-015a0744ac127b28c3b381ba887f85e5ba8cd85c.tar.gz
ldap-plugin-015a0744ac127b28c3b381ba887f85e5ba8cd85c.tar.bz2
ldap-plugin-015a0744ac127b28c3b381ba887f85e5ba8cd85c.zip
Remove auth_method
We cannot use auth_method, because we cannot set it (denied by openldap).
-rw-r--r--service_passwords.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/service_passwords.c b/service_passwords.c
index 983ee08..5a4f1c5 100644
--- a/service_passwords.c
+++ b/service_passwords.c
@@ -534,7 +534,6 @@ static int pre_bind(Slapi_PBlock *pb)
static int pre_entry(Slapi_PBlock *pb)
{
char *bind_dn;
- char *auth_method;
Slapi_Entry *entry;
Slapi_Operation *op;
int is_replication;
@@ -549,7 +548,6 @@ static int pre_entry(Slapi_PBlock *pb)
char fn[] = "pre_entry in service_passwords plug-in";
rc |= slapi_pblock_get(pb, SLAPI_CONN_DN, &bind_dn);
- rc |= slapi_pblock_get(pb, SLAPI_CONN_AUTHMETHOD, &auth_method);
rc |= slapi_pblock_get(pb, SLAPI_SEARCH_RESULT_ENTRY, &entry);
rc |= slapi_pblock_get(pb, SLAPI_OPERATION, &op);
rc |= slapi_pblock_get(pb, SLAPI_IS_REPLICATED_OPERATION, &is_replication);
@@ -570,7 +568,7 @@ static int pre_entry(Slapi_PBlock *pb)
return 0;
}
- if (strcmp(auth_method, SLAPD_AUTH_NONE) == 0) {
+ if (bind_dn == NULL) {
/* only handle authenticated searches */
return 0;
}