summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}