struct ldapconn {
struct slap_conn *conn;
LDAP *ld;
+ struct berval cred;
struct berval bound_dn;
int bound;
};
char *binddn;
char *bindpw;
ldap_pvt_thread_mutex_t conn_mutex;
+ int savecred;
Avlnode *conntree;
#ifdef ENABLE_REWRITE
struct rewrite_info *rwinfo;
#else /* !ENABLE_REWRITE */
- struct berval **suffix_massage;
+ BerVarray suffix_massage;
#endif /* !ENABLE_REWRITE */
struct ldapmap oc_map;
extern void mapping_free ( struct ldapmapping *mapping );
#ifdef ENABLE_REWRITE
-extern int suffix_massage_config( struct rewrite_info *info, int argc, char **argv );
-extern int ldap_dnattr_rewrite( struct rewrite_info *rwinfo, BVarray a_vals, void *cookie );
+extern int suffix_massage_config( struct rewrite_info *info,
+ struct berval *pvnc, struct berval *nvnc,
+ struct berval *prnc, struct berval *nrnc);
+extern int ldap_dnattr_rewrite( struct rewrite_info *rwinfo, BerVarray a_vals, void *cookie );
#endif /* ENABLE_REWRITE */
LDAP_END_DECL