Debug(LDAP_DEBUG_ARGS, "==> ldap_back_add: %s\n", op->o_req_dn.bv_val, 0, 0);
#endif /* !NEW_LOGGING */
- lc = ldap_back_getconn(li, op, rs);
- if ( !lc || !ldap_back_dobind( li, lc, op, rs ) ) {
+ lc = ldap_back_getconn(op, rs);
+ if ( !lc || !ldap_back_dobind( lc, op, rs ) ) {
return( -1 );
}
struct ldapmap at_map;
};
-struct ldapconn *ldap_back_getconn(struct ldapinfo *li, struct slap_op *op, struct slap_rep *rs);
-int ldap_back_dobind(struct ldapinfo *li, struct ldapconn *lc, Operation *op, SlapReply *rs);
+struct ldapconn *ldap_back_getconn(struct slap_op *op, struct slap_rep *rs);
+int ldap_back_dobind(struct ldapconn *lc, Operation *op, SlapReply *rs);
int ldap_back_map_result(int err);
int ldap_back_op_result(struct ldapinfo *li, struct ldapconn *lc,
Operation *op, SlapReply *rs, ber_int_t msgid, int rc, int sendok);
int rc = 0;
ber_int_t msgid;
- lc = ldap_back_getconn(li, op, rs);
+ lc = ldap_back_getconn(op, rs);
if ( !lc ) {
return( -1 );
}
#endif /* PRINT_CONNTREE */
struct ldapconn *
-ldap_back_getconn(struct ldapinfo *li, Operation *op, SlapReply *rs)
+ldap_back_getconn(Operation *op, SlapReply *rs)
{
+ struct ldapinfo *li = (struct ldapinfo *)op->o_bd->be_private;
struct ldapconn *lc, lc_curr;
LDAP *ld;
int is_priv = 0;
* it can be used to simplify the check.
*/
int
-ldap_back_dobind( struct ldapinfo *li, struct ldapconn *lc, Operation *op, SlapReply *rs )
+ldap_back_dobind( struct ldapconn *lc, Operation *op, SlapReply *rs )
{
+ struct ldapinfo *li = (struct ldapinfo *)op->o_bd->be_private;
int rc;
ber_int_t msgid;
int rc;
ber_int_t msgid;
- lc = ldap_back_getconn(li, op, rs);
- if (!lc || !ldap_back_dobind( li, lc, op, rs ) ) {
+ lc = ldap_back_getconn(op, rs);
+ if (!lc || !ldap_back_dobind( lc, op, rs ) ) {
return( -1 );
}
ber_int_t msgid;
op2.o_ndn = op->o_conn->c_ndn;
- lc = ldap_back_getconn(li, &op2, rs);
- if (!lc || !ldap_back_dobind( li, lc, op, rs )) {
+ lc = ldap_back_getconn(&op2, rs);
+ if (!lc || !ldap_back_dobind( lc, op, rs )) {
return -1;
}
c.ldctl_oid = LDAP_CONTROL_PROXY_AUTHZ;
struct berval mdn = { 0, NULL };
- lc = ldap_back_getconn( li, op, rs );
+ lc = ldap_back_getconn( op, rs );
- if ( !lc || !ldap_back_dobind( li, lc, op, rs ) ) {
+ if ( !lc || !ldap_back_dobind( lc, op, rs ) ) {
return( -1 );
}
ber_int_t msgid;
int rc;
- lc = ldap_back_getconn(li, op, rs);
- if (!lc || !ldap_back_dobind(li, lc, op, rs) ) {
+ lc = ldap_back_getconn(op, rs);
+ if (!lc || !ldap_back_dobind(lc, op, rs) ) {
return -1;
}
struct berval mdn = { 0, NULL };
ber_int_t msgid;
- lc = ldap_back_getconn(li, op, rs);
- if ( !lc || !ldap_back_dobind( li, lc, op, rs ) ) {
+ lc = ldap_back_getconn(op, rs);
+ if ( !lc || !ldap_back_dobind( lc, op, rs ) ) {
return( -1 );
}
struct berval mdn = { 0, NULL }, mnewSuperior = { 0, NULL };
- lc = ldap_back_getconn( li, op, rs );
- if ( !lc || !ldap_back_dobind(li, lc, op, rs) ) {
+ lc = ldap_back_getconn( op, rs );
+ if ( !lc || !ldap_back_dobind(lc, op, rs) ) {
return( -1 );
}
struct slap_limits_set *limit = NULL;
int isroot = 0;
- lc = ldap_back_getconn(li, op, rs);
+ lc = ldap_back_getconn(op, rs);
if ( !lc ) {
return( -1 );
}
* FIXME: in case of values return filter, we might want
* to map attrs and maybe rewrite value
*/
- if ( !ldap_back_dobind( li, lc, op, rs ) ) {
+ if ( !ldap_back_dobind( lc, op, rs ) ) {
return( -1 );
}
/* Tell getconn this is a privileged op */
is_oc = op->o_do_not_cache;
op->o_do_not_cache = 1;
- lc = ldap_back_getconn(li, op, &rs);
+ lc = ldap_back_getconn(op, &rs);
oconn = op->o_conn;
op->o_conn = NULL;
- if ( !lc || !ldap_back_dobind(li, lc, op, &rs) ) {
+ if ( !lc || !ldap_back_dobind(lc, op, &rs) ) {
op->o_do_not_cache = is_oc;
op->o_conn = oconn;
return 1;