mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3: Change tldap_entry_attributes to the "array,count" convention
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Mar 14 22:02:35 CET 2011 on sn-devel-104
This commit is contained in:
parent
e818090e24
commit
8dfa224c13
@ -108,8 +108,9 @@ int tldap_search(struct tldap_context *ld,
|
||||
TALLOC_CTX *mem_ctx, struct tldap_message ***entries,
|
||||
struct tldap_message ***refs);
|
||||
bool tldap_entry_dn(struct tldap_message *msg, char **dn);
|
||||
bool tldap_entry_attributes(struct tldap_message *msg, int *num_attributes,
|
||||
struct tldap_attribute **attributes);
|
||||
bool tldap_entry_attributes(struct tldap_message *msg,
|
||||
struct tldap_attribute **attributes,
|
||||
int *num_attributes);
|
||||
|
||||
struct tevent_req *tldap_add_send(TALLOC_CTX *mem_ctx,
|
||||
struct tevent_context *ev,
|
||||
|
@ -1958,8 +1958,9 @@ bool tldap_entry_dn(struct tldap_message *msg, char **dn)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool tldap_entry_attributes(struct tldap_message *msg, int *num_attributes,
|
||||
struct tldap_attribute **attributes)
|
||||
bool tldap_entry_attributes(struct tldap_message *msg,
|
||||
struct tldap_attribute **attributes,
|
||||
int *num_attributes)
|
||||
{
|
||||
if ((msg->dn == NULL) && (!tldap_parse_search_entry(msg))) {
|
||||
return false;
|
||||
|
@ -28,7 +28,7 @@ bool tldap_entry_values(struct tldap_message *msg, const char *attribute,
|
||||
struct tldap_attribute *attributes;
|
||||
int i, num_attributes;
|
||||
|
||||
if (!tldap_entry_attributes(msg, &num_attributes, &attributes)) {
|
||||
if (!tldap_entry_attributes(msg, &attributes, &num_attributes)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user