The Samba-Bugzilla – Attachment 3784 Details for
Bug 5946
SAMR: Small problem mit the user parameters
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
samrSetUserInfo2.patch (text/plain), 854 bytes, created by
Matthias Dieter Wallnöfer
on 2008-12-06 08:45:48 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Matthias Dieter Wallnöfer
Created:
2008-12-06 08:45:48 UTC
Size:
854 bytes
patch
obsolete
>diff --git a/source4/rpc_server/samr/dcesrv_samr.c b/source4/rpc_server/samr/dcesrv_samr.c >index 680fb77..df23e11 100644 >--- a/source4/rpc_server/samr/dcesrv_samr.c >+++ b/source4/rpc_server/samr/dcesrv_samr.c >@@ -140,11 +140,13 @@ > > #define SET_PARAMETERS(msg, field, attr) do { \ > struct ldb_message_element *set_el; \ >- if (samdb_msg_add_parameters(sam_ctx, mem_ctx, msg, attr, &r->in.info->field) != 0) { \ >- return NT_STATUS_NO_MEMORY; \ >+ if (r->in.info->field.length != 0) { \ >+ if (samdb_msg_add_parameters(sam_ctx, mem_ctx, msg, attr, &r->in.info->field) != 0) { \ >+ return NT_STATUS_NO_MEMORY; \ >+ } \ >+ set_el = ldb_msg_find_element(msg, attr); \ >+ set_el->flags = LDB_FLAG_MOD_REPLACE; \ > } \ >- set_el = ldb_msg_find_element(msg, attr); \ >- set_el->flags = LDB_FLAG_MOD_REPLACE; \ > } while (0) > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 5946
: 3784 |
3788