]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9808 Store the correct value in olcLastBind
authorOndřej Kuzník <ondra@mistotebe.net>
Mon, 14 Mar 2022 09:35:12 +0000 (09:35 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 21 Mar 2022 16:47:04 +0000 (16:47 +0000)
servers/slapd/bconfig.c

index 30d26855a8befff4d5a957d18611b1169429115d..c5c69bab564143509203587cef9d4f3463971e5d 100644 (file)
@@ -1364,7 +1364,7 @@ config_generic(ConfigArgs *c) {
                        c->value_int = (SLAP_NOLASTMOD(c->be) == 0);
                        break;
                case CFG_LASTBIND:
-                       c->value_int = (SLAP_NOLASTMOD(c->be) == 0);
+                       c->value_int = (SLAP_LASTBIND(c->be) != 0);
                        break;
                case CFG_SYNC_SUBENTRY:
                        c->value_int = (SLAP_SYNC_SUBENTRY(c->be) != 0);