Skip to content
Snippets Groups Projects
Commit b06a3685 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Sync with HEAD

parent 69672fd7
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ ldap_back_add(
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;
......@@ -90,7 +90,7 @@ ldap_back_add(
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;
......
......@@ -45,7 +45,7 @@ ldap_back_bind(
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;
......
......@@ -38,8 +38,8 @@ ldap_back_compare(
{
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;
......
......@@ -45,7 +45,7 @@ ldap_back_delete(
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 );
......
......@@ -96,7 +96,7 @@ ldap_back_exop_passwd(
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;
......
......@@ -45,7 +45,7 @@ ldap_back_modrdn(
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) ) {
......
......@@ -42,7 +42,7 @@ ldap_build_entry( Operation *op, LDAPMessage *e, Entry *ent,
#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(
......@@ -54,10 +54,10 @@ 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
......@@ -532,7 +532,7 @@ ldap_back_entry_get(
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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment