int minor_status;
} ADS_STATUS;
-#ifdef HAVE_ADS
-typedef LDAPMod **ADS_MODLIST;
-#else
typedef void **ADS_MODLIST;
-#endif
/* macros to simplify error returning */
#define ADS_ERROR(rc) ADS_ERROR_LDAP(rc)
mod.attrib.name = talloc_strdup(msg->mem_ctx, value.data);
if (strequal(attr_name, "add"))
- mod.type = LDAP_MOD_ADD;
+ mod.type = LDAP_MODIFY_ADD;
if (strequal(attr_name, "delete"))
- mod.type = LDAP_MOD_DELETE;
+ mod.type = LDAP_MODIFY_DELETE;
if (strequal(attr_name, "replace"))
- mod.type = LDAP_MOD_REPLACE;
+ mod.type = LDAP_MODIFY_REPLACE;
if (mod.type == LDAP_MODIFY_NONE) {
DEBUG(2, ("ldif modification type %s unsupported\n",
result->search_entries = NULL;
result->auth_dn = NULL;
result->simple_pw = NULL;
+
return result;
}