summaryrefslogtreecommitdiff
path: root/source4/libcli/ldap/ldap.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-05-13 06:07:53 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:16:42 -0500
commit4029df5e602760a0a0f8851e9f7bb28e1434f4f0 (patch)
treef4cf30899d48bcf608af55cef7800c630e3ff4ba /source4/libcli/ldap/ldap.h
parent2f315e94f8268880f9fbc1f95d08fdb2518b0479 (diff)
downloadsamba-4029df5e602760a0a0f8851e9f7bb28e1434f4f0.tar.gz
samba-4029df5e602760a0a0f8851e9f7bb28e1434f4f0.tar.bz2
samba-4029df5e602760a0a0f8851e9f7bb28e1434f4f0.zip
r6763: added functions in libcli/ldap/ to binary encode some NDR structures into
ldap friendly filter strings (This used to be commit 8890dd3ac331cffe83226a356c52df89c917c2b0)
Diffstat (limited to 'source4/libcli/ldap/ldap.h')
-rw-r--r--source4/libcli/ldap/ldap.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/libcli/ldap/ldap.h b/source4/libcli/ldap/ldap.h
index 63d79628a9..8d4294cf76 100644
--- a/source4/libcli/ldap/ldap.h
+++ b/source4/libcli/ldap/ldap.h
@@ -325,6 +325,7 @@ BOOL ldap_parse_basic_url(TALLOC_CTX *mem_ctx, const char *url,
char **host, uint16_t *port, BOOL *ldaps);
struct ldap_parse_tree *ldap_parse_filter_string(TALLOC_CTX *mem_ctx,
const char *s);
+const char *ldap_binary_encode(TALLOC_CTX *mem_ctx, DATA_BLOB blob);
/* The following definitions come from libcli/ldap/ldap_client.c */
@@ -378,4 +379,10 @@ BOOL add_mod_to_array_talloc(TALLOC_CTX *mem_ctx,
int *num_mods);
struct ldap_message *ldap_ldif2msg(TALLOC_CTX *mem_ctx, const char *s);
+/* The following definitions come from libcli/ldap/ldap_ndr.c */
+
+const char *ldap_encode_ndr_uint32(TALLOC_CTX *mem_ctx, uint32_t value);
+const char *ldap_encode_ndr_dom_sid(TALLOC_CTX *mem_ctx, struct dom_sid *sid);
+const char *ldap_encode_ndr_GUID(TALLOC_CTX *mem_ctx, struct GUID *guid);
+
#endif