summaryrefslogtreecommitdiff
path: root/source4/utils
diff options
context:
space:
mode:
authorFernando J V da Silva <fernandojvsilva@yahoo.com.br>2009-11-25 17:01:55 -0300
committerAndrew Tridgell <tridge@samba.org>2009-11-30 21:17:27 +1100
commit71e29cbf56048791057ccf07b859654312f3882e (patch)
tree7f413aa6586987f9d1a4817fd85bf66feee2e3d7 /source4/utils
parent0003b5fad1dee687bc15dfad9f71b6dfc40556d7 (diff)
downloadsamba-71e29cbf56048791057ccf07b859654312f3882e.tar.gz
samba-71e29cbf56048791057ccf07b859654312f3882e.tar.bz2
samba-71e29cbf56048791057ccf07b859654312f3882e.zip
s4-drs: Using dsdb_msg_add_guid() utility function
Uses the dsdb_msg_add_guid() to add any kind of GUID attribute to a ldb_message in several places of samba4 code. Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source4/utils')
-rw-r--r--source4/utils/oLschema2ldif.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/source4/utils/oLschema2ldif.c b/source4/utils/oLschema2ldif.c
index f337432b6b..22a458c442 100644
--- a/source4/utils/oLschema2ldif.c
+++ b/source4/utils/oLschema2ldif.c
@@ -399,14 +399,7 @@ static struct ldb_message *process_entry(TALLOC_CTX *mem_ctx, const char *entry)
memcpy(&guid, digest, sizeof(struct GUID));
- ndr_err = ndr_push_struct_blob(&schemaIdGuid, ctx, NULL, &guid,
- (ndr_push_flags_fn_t)ndr_push_GUID);
-
- if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
- goto failed;
- }
-
- if (ldb_msg_add_value(msg, "schemaIdGuid", &schemaIdGuid, NULL) != 0) {
+ if (dsdb_msg_add_guid(msg, &guid, "schemaIdGuid") != 0) {
goto failed;
}