diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-09-17 12:33:44 +1000 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-09-20 16:15:03 -0700 |
commit | d7bc452a893a77eb21b547cd8cdf8b420c60ab5d (patch) | |
tree | 32803f84567980382f85b0164e9e9f10a99c1bbd /source3/libads/ldap_schema.c | |
parent | d44e86b473554ad549993c928af68e348ccefe2b (diff) | |
download | samba-d7bc452a893a77eb21b547cd8cdf8b420c60ab5d.tar.gz |
s3: Replace sid_binstring and sid_guidstring with PIDL-based alternatives
This reduces the manual marshalling of these structures by removing
the duplication here.
Andrew Bartlett
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/libads/ldap_schema.c')
-rw-r--r-- | source3/libads/ldap_schema.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libads/ldap_schema.c b/source3/libads/ldap_schema.c index 80ec45c73c8..66c9bf4b57e 100644 --- a/source3/libads/ldap_schema.c +++ b/source3/libads/ldap_schema.c @@ -21,6 +21,7 @@ #include "includes.h" #include "ads.h" #include "libads/ldap_schema.h" +#include "../libcli/ldap/ldap_ndr.h" #ifdef HAVE_LDAP @@ -124,7 +125,7 @@ const char *ads_get_attrname_by_guid(ADS_STRUCT *ads, goto done; } - guid_bin = guid_binstring(mem_ctx, schema_guid); + guid_bin = ldap_encode_ndr_GUID(mem_ctx, schema_guid); if (!guid_bin) { goto done; } |