diff options
author | Günther Deschner <gd@samba.org> | 2004-12-24 00:38:22 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:53:45 -0500 |
commit | a3e4686b50d61d275513bfd20b740cdc9bb34bc6 (patch) | |
tree | 1f76aec1cfb8faa316cf8dca065bb1436314507f /source3 | |
parent | b314cf95ce3cf809fd03af2b562e9a6dc156f746 (diff) | |
download | samba-a3e4686b50d61d275513bfd20b740cdc9bb34bc6.tar.gz samba-a3e4686b50d61d275513bfd20b740cdc9bb34bc6.tar.bz2 samba-a3e4686b50d61d275513bfd20b740cdc9bb34bc6.zip |
r4352: Base64-encode munged-dial with correct length in 'net rpc vampire'.
Guenther
(This used to be commit 98f3e3353df988e819bc41d145b13c76e1b86b55)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/net_rpc_samsync.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/utils/net_rpc_samsync.c b/source3/utils/net_rpc_samsync.c index 688944cf0b..30d24ea8ac 100644 --- a/source3/utils/net_rpc_samsync.c +++ b/source3/utils/net_rpc_samsync.c @@ -380,8 +380,11 @@ sam_account_from_delta(SAM_ACCOUNT *account, SAM_ACCOUNT_INFO *delta) } if (delta->hdr_parameters.buffer) { + DATA_BLOB mung; old_string = pdb_get_munged_dial(account); - new_string = unistr2_static(&delta->uni_parameters); + mung.length = delta->uni_parameters.uni_str_len * 2; + mung.data = (uint8 *) delta->uni_parameters.buffer; + new_string = (mung.length == 0) ? NULL : base64_encode_data_blob(mung); if (STRING_CHANGED) pdb_set_munged_dial(account, new_string, PDB_CHANGED); |