]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/saslauthz.c
ITS#3818 fix index_substr_any_step keyword
[openldap] / servers / slapd / saslauthz.c
index a30340e31aa1101e936388543d7b0a0382b96d9a..001c0ecdb0935eb941f20a96f72d5526e673cad9 100644 (file)
@@ -17,6 +17,9 @@
 #include "portable.h"
 
 #include <stdio.h>
+#ifdef HAVE_LIMITS_H
+#include <limits.h>
+#endif
 
 #include <ac/stdlib.h>
 #include <ac/string.h>
@@ -24,8 +27,6 @@
 
 #include "slap.h"
 
-#include <limits.h>
-
 #include "lutil.h"
 
 #define SASLREGEX_REPLACE 10
@@ -1059,6 +1060,7 @@ exact_match:
                BER_BVZERO( &base );
        }
        ber_dupbv_x( &op.o_req_dn, &op.o_req_ndn, op.o_tmpmemctx );
+       op.ors_deref = LDAP_DEREF_NEVER;
        op.ors_slimit = 1;
        op.ors_tlimit = SLAP_NO_LIMIT;
        op.ors_attrs = slap_anlist_no_attrs;