From 741029dc87bddcc9932d6d4aa80972d4d5d5265b Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 29 Sep 2005 08:05:38 +0000 Subject: [PATCH] cannot ignore old password when setting sasl password --- servers/slapd/passwd.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/servers/slapd/passwd.c b/servers/slapd/passwd.c index f4ac394cd8..5ada68fa92 100644 --- a/servers/slapd/passwd.c +++ b/servers/slapd/passwd.c @@ -109,6 +109,12 @@ int passwd_extop( } if( op->o_bd == NULL ) { + if ( qpw->rs_old.bv_val != NULL ) { + rs->sr_text = "unwilling to verify old password"; + rc = LDAP_UNWILLING_TO_PERFORM; + goto error_return; + } + #ifdef HAVE_CYRUS_SASL rc = slap_sasl_setpass( op, rs ); #else -- 2.39.5