Attribute *a;
LDAPMod **attrs;
struct berval mapped;
- struct berval mdn = { 0, NULL };
+ struct berval mdn = BER_BVNULL;
ber_int_t msgid;
dncookie dc;
int isupdate;
dc.ctx = "addAttrDN";
#endif
- isupdate = be_isupdate( op );
+ isupdate = be_shadow_update( op );
for (i=0, a=op->oq_add.rs_e->e_attrs; a; a=a->a_next) {
if ( !isupdate && a->a_desc->ad_type->sat_no_user_mod ) {
continue;
struct ldapinfo *li = (struct ldapinfo *) op->o_bd->be_private;
struct ldapconn *lc;
- struct berval mdn = { 0, NULL };
+ struct berval mdn = BER_BVNULL;
int rc = 0;
ber_int_t msgid;
dncookie dc;
{
struct ldapinfo *li = (struct ldapinfo *) op->o_bd->be_private;
struct ldapconn *lc;
- struct berval mapped_at = { 0, NULL }, mapped_val = { 0, NULL };
- struct berval mdn = { 0, NULL };
+ struct berval mapped_at = BER_BVNULL, mapped_val = BER_BVNULL;
+ struct berval mdn = BER_BVNULL;
ber_int_t msgid;
int freeval = 0;
dncookie dc;
int rc = LDAP_SUCCESS;
#endif /* LDAP_BACK_PROXY_AUTHZ */
- struct berval mdn = { 0, NULL };
+ struct berval mdn = BER_BVNULL;
lc = ldap_back_getconn( op, rs );
struct ldapinfo *li = (struct ldapinfo *) op->o_bd->be_private;
struct ldapconn *lc;
req_pwdexop_s *qpw = &op->oq_pwdexop;
- struct berval mdn = { 0, NULL }, newpw;
+ struct berval mdn = BER_BVNULL, newpw;
LDAPMessage *res;
ber_int_t msgid;
int rc, isproxy;
int rc = LDAP_SUCCESS;
#endif /* LDAP_BACK_PROXY_AUTHZ */
- struct berval mdn = { 0, NULL }, mnewSuperior = { 0, NULL };
+ struct berval mdn = BER_BVNULL, mnewSuperior = BER_BVNULL;
lc = ldap_back_getconn( op, rs );
if ( !lc || !ldap_back_dobind(lc, op, rs) ) {
#define LDAP_BUILD_ENTRY_PRIVATE 0x01
#define LDAP_BUILD_ENTRY_NORMALIZE 0x02
-static struct berval dummy = { 0, NULL };
+static struct berval dummy = BER_BVNULL;
int
ldap_back_search(
struct timeval tv;
LDAPMessage *res, *e;
int rc = 0, msgid;
- struct berval match = { 0, NULL };
+ struct berval match = BER_BVNULL;
char **mapped_attrs = NULL;
struct berval mbase;
- struct berval mfilter = { 0, NULL };
+ struct berval mfilter = BER_BVNULL;
int dontfreetext = 0;
dncookie dc;
#ifdef LDAP_BACK_PROXY_AUTHZ
struct ldapinfo *li = (struct ldapinfo *) op->o_bd->be_private;
struct ldapconn *lc;
int rc = 1, is_oc;
- struct berval mapped = { 0, NULL }, bdn, mdn;
+ struct berval mapped = BER_BVNULL, bdn, mdn;
LDAPMessage *result = NULL, *e = NULL;
char *gattr[3];
char *filter = NULL;