From 015a0744ac127b28c3b381ba887f85e5ba8cd85c Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 19 Jan 2016 05:45:47 +0100 Subject: Remove auth_method We cannot use auth_method, because we cannot set it (denied by openldap). --- service_passwords.c | 4 +--- 1 file changed, 1 insertion(+), 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; } -- cgit v1.2.3-1-g7c22