if (get_string_val == NULL) { \
if (strict) { \
d_printf("%s: %s == NULL in %s\n", __location__, attr, ldb_dn_get_linearized(msg->dn)); \
- return WERR_INVALID_PARAM; \
+ return WERR_INVALID_PARAMETER; \
} else { \
(p)->elem = NULL; \
} \
if (str == NULL) { \
if (strict) { \
d_printf("%s: %s == NULL\n", __location__, attr); \
- return WERR_INVALID_PARAM; \
+ return WERR_INVALID_PARAMETER; \
} else { \
(p)->elem = false; \
} \
(p)->elem = false; \
} else { \
d_printf("%s: %s == %s\n", __location__, attr, str); \
- return WERR_INVALID_PARAM; \
+ return WERR_INVALID_PARAMETER; \
} \
} while (0)
} else if (_v > UINT32_MAX) { \
d_printf("%s: %s == 0x%llX\n", __location__, \
attr, (unsigned long long)_v); \
- return WERR_INVALID_PARAM; \
+ return WERR_INVALID_PARAMETER; \
} else { \
(p)->elem = talloc(mem_ctx, uint32_t); \
if (!(p)->elem) { \
WERROR status;
if (attr == NULL) {
DEBUG(0, ("%s: attr is null, it's expected not to be so\n", __location__));
- return WERR_INVALID_PARAM;
+ return WERR_INVALID_PARAMETER;
}
GET_STRING_LDB(msg, "cn", attr, attr, cn, false);
*/
ldif = ldb_ldif_read_string(ldb, &pf);
if (!ldif) {
- status = WERR_INVALID_PARAM;
+ status = WERR_INVALID_PARAMETER;
goto failed;
}
talloc_steal(mem_ctx, ldif);
prefix_val = ldb_msg_find_ldb_val(msg, "prefixMap");
if (!prefix_val) {
- status = WERR_INVALID_PARAM;
+ status = WERR_INVALID_PARAMETER;
goto failed;
}