From d7bc452a893a77eb21b547cd8cdf8b420c60ab5d Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 17 Sep 2010 12:33:44 +1000 Subject: s3: Replace sid_binstring and sid_guidstring with PIDL-based alternatives MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reduces the manual marshalling of these structures by removing the duplication here. Andrew Bartlett Signed-off-by: Günther Deschner --- source3/libads/ldap_schema.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/libads') diff --git a/source3/libads/ldap_schema.c b/source3/libads/ldap_schema.c index 80ec45c73c..66c9bf4b57 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; } -- cgit