]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
DirSync ctrl requires critical
authorHoward Chu <hyc@openldap.org>
Sun, 18 Nov 2018 02:47:21 +0000 (02:47 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 18 Nov 2018 02:47:21 +0000 (02:47 +0000)
libraries/libldap/msctrl.c

index bbfc2f5198c8191937aca9054aace4e4458ad873..2137cc962846f52cdcf2a4550cb9e0a218c69414 100644 (file)
@@ -104,7 +104,7 @@ ldap_create_dirsync_control(
                flags, maxAttrCount, cookie, &value );
        if ( ld->ld_errno == LDAP_SUCCESS ) {
                ld->ld_errno = ldap_control_create( LDAP_CONTROL_X_DIRSYNC,
-                       0, &value, 0, ctrlp );
+                       1, &value, 0, ctrlp );
                if ( ld->ld_errno != LDAP_SUCCESS ) {
                        LDAP_FREE( value.bv_val );
                }