#include "includes.h"
bool tldap_entry_values(struct tldap_message *msg, const char *attribute,
- int *num_values, DATA_BLOB **values);
+ DATA_BLOB **values, int *num_values);
bool tldap_get_single_valueblob(struct tldap_message *msg,
const char *attribute, DATA_BLOB *blob);
char *tldap_talloc_single_attribute(struct tldap_message *msg,
#include "../libcli/security/security.h"
bool tldap_entry_values(struct tldap_message *msg, const char *attribute,
- int *num_values, DATA_BLOB **values)
+ DATA_BLOB **values, int *num_values)
{
struct tldap_attribute *attributes;
int i, num_attributes;
if (attribute == NULL) {
return NULL;
}
- if (!tldap_entry_values(msg, attribute, &num_values, &values)) {
+ if (!tldap_entry_values(msg, attribute, &values, &num_values)) {
return NULL;
}
if (num_values != 1) {
DATA_BLOB oldval = data_blob_null;
if ((existing != NULL)
- && tldap_entry_values(existing, attrib, &num_values, &values)) {
+ && tldap_entry_values(existing, attrib, &values, &num_values)) {
if (num_values > 1) {
/* can't change multivalue attributes atm */
int i, num_values;
DATA_BLOB *values;
- if (!tldap_entry_values(msg, attribute, &num_values, &values)) {
+ if (!tldap_entry_values(msg, attribute, &values, &num_values)) {
return false;
}
for (i=0; i<num_values; i++) {
break;
}
- if (!tldap_entry_values(msg[0], "member", &num_members, &blobs)) {
+ if (!tldap_entry_values(msg[0], "member", &blobs, &num_members)) {
return NT_STATUS_INTERNAL_DB_CORRUPTION;
}
break;
}
- if (!tldap_entry_values(msg[0], "member", &num_members, &blobs)) {
+ if (!tldap_entry_values(msg[0], "member", &blobs, &num_members)) {
return NT_STATUS_INTERNAL_DB_CORRUPTION;
}