1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-07 12:23:51 +03:00

r7720: - simplify the asn1 decode of ldap_search() a lot, taking advantage of

the fact that the ldap data structures now use ldb_message_element.

- fixed null termination of elements in ildap
This commit is contained in:
Andrew Tridgell
2005-06-18 10:38:06 +00:00
committed by Gerald (Jerry) Carter
parent f6c2c51907
commit 09060994c1
4 changed files with 10 additions and 20 deletions

View File

@@ -98,6 +98,9 @@ static BOOL ldap_push_filter(struct asn1_data *data, struct ldb_parse_tree *tree
asn1_pop_tag(data);
break;
case LDB_OP_NOT:
#warning "OP_NOT missing"
default:
return False;
}
@@ -605,7 +608,6 @@ static void ldap_decode_attrib(TALLOC_CTX *mem_ctx, struct asn1_data *data,
DATA_BLOB blob;
asn1_read_OctetString(data, &blob);
add_value_to_attrib(mem_ctx, &blob, attrib);
data_blob_free(&blob);
}
asn1_end_tag(data);
asn1_end_tag(data);