mirror of
https://github.com/samba-team/samba.git
synced 2025-01-05 09:18:06 +03:00
s4:rpc_server/netlogon: let CSDVersion="" wipe operatingSystemServicePack
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14936
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Jan 11 22:03:03 UTC 2022 on sn-devel-184
(cherry picked from commit 1243f52f7a
)
This commit is contained in:
parent
09832c6f95
commit
01e15dfaed
@ -1,9 +0,0 @@
|
||||
^samba4.rpc.netlogon.on.ncacn_np.with.seal,padcheck.netlogon.GetDomainInfo\(ad_dc_ntvfs\)
|
||||
^samba4.rpc.netlogon.on.ncacn_ip_tcp.with.seal,padcheck.netlogon.GetDomainInfo\(ad_dc_ntvfs\)
|
||||
^samba4.rpc.netlogon.on.ncacn_np.with.validate.netlogon.GetDomainInfo\(ad_dc_ntvfs\)
|
||||
^samba4.rpc.netlogon.on.ncacn_ip_tcp.with.validate.netlogon.GetDomainInfo\(ad_dc_ntvfs\)
|
||||
^samba4.rpc.netlogon.on.ncacn_np.with.bigendian.netlogon.GetDomainInfo\(ad_dc_ntvfs\)
|
||||
^samba4.rpc.netlogon.on.ncacn_ip_tcp.with.bigendian.netlogon.GetDomainInfo\(ad_dc_ntvfs\)
|
||||
^samba4.rpc.netlogon.with.seal,padcheck.netlogon.GetDomainInfo\(ad_dc\)
|
||||
^samba4.rpc.netlogon.with.validate.netlogon.GetDomainInfo\(ad_dc\)
|
||||
^samba4.rpc.netlogon.with.bigendian.netlogon.GetDomainInfo\(ad_dc\)
|
@ -2598,9 +2598,14 @@ static NTSTATUS dcesrv_netr_LogonGetDomainInfo(struct dcesrv_call_state *dce_cal
|
||||
os_version->BuildNumber);
|
||||
NT_STATUS_HAVE_NO_MEMORY(os_version_str);
|
||||
|
||||
ret = ldb_msg_add_string(new_msg,
|
||||
"operatingSystemServicePack",
|
||||
os_version->CSDVersion);
|
||||
if (strlen(os_version->CSDVersion) != 0) {
|
||||
ret = ldb_msg_add_string(new_msg,
|
||||
"operatingSystemServicePack",
|
||||
os_version->CSDVersion);
|
||||
} else {
|
||||
ret = samdb_msg_add_delete(sam_ctx, mem_ctx, new_msg,
|
||||
"operatingSystemServicePack");
|
||||
}
|
||||
if (ret != LDB_SUCCESS) {
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user