summaryrefslogtreecommitdiff
path: root/source4/rpc_server/drsuapi
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-07-12 11:45:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:20:13 -0500
commita4c614b01279e7f89ceea4b2dffccee6cefe37dc (patch)
tree80035f01cfdd53531b31b3c7315f274f765c5758 /source4/rpc_server/drsuapi
parent557c78e36d67e3171996f155de293a71e27ad286 (diff)
downloadsamba-a4c614b01279e7f89ceea4b2dffccee6cefe37dc.tar.gz
samba-a4c614b01279e7f89ceea4b2dffccee6cefe37dc.tar.bz2
samba-a4c614b01279e7f89ceea4b2dffccee6cefe37dc.zip
r8371: the objectGUID is now stored in binary...
metze (This used to be commit b920b306b3813ba4a220249dbd7e443605074c9b)
Diffstat (limited to 'source4/rpc_server/drsuapi')
-rw-r--r--source4/rpc_server/drsuapi/drsuapi_cracknames.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/source4/rpc_server/drsuapi/drsuapi_cracknames.c b/source4/rpc_server/drsuapi/drsuapi_cracknames.c
index 65da137356..64a0b757c7 100644
--- a/source4/rpc_server/drsuapi/drsuapi_cracknames.c
+++ b/source4/rpc_server/drsuapi/drsuapi_cracknames.c
@@ -212,12 +212,11 @@ static WERROR DsCrackNameOneName(struct drsuapi_bind_state *b_state, TALLOC_CTX
return WERR_OK;
}
case DRSUAPI_DS_NAME_FORMAT_GUID: {
- const char *result;
+ struct GUID guid;
- result = samdb_result_string(result_res[0], "objectGUID", NULL);
- WERR_TALLOC_CHECK(result);
-
- info1->result_name = talloc_asprintf(mem_ctx, "{%s}", result);
+ guid = samdb_result_guid(result_res[0], "objectGUID");
+
+ info1->result_name = GUID_string2(mem_ctx, &guid);
WERR_TALLOC_CHECK(info1->result_name);
info1->status = DRSUAPI_DS_NAME_STATUS_OK;