]> git.sur5r.net Git - openldap/commitdiff
use bound credentials, if any
authorPierangelo Masarati <ando@openldap.org>
Sat, 1 Jul 2006 16:45:07 +0000 (16:45 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 1 Jul 2006 16:45:07 +0000 (16:45 +0000)
servers/slapd/back-meta/search.c

index 2db0b08f5a09063333493272e54f5bf91dda837a..623d5d8200fa27356c8afed5ace666b0e6542fca 100644 (file)
@@ -76,8 +76,8 @@ meta_search_dobind_init(
        metatarget_t            *mt = mi->mi_targets[ candidate ];
        metasingleconn_t        *msc = &mc->mc_conns[ candidate ];
 
-       struct berval           binddn = BER_BVC( "" ),
-                               cred = BER_BVC( "" );
+       struct berval           binddn = msc->msc_bound_ndn,
+                               cred = msc->msc_cred;
        int                     method;
 
        int                     rc;