summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-08-08 11:00:49 -0700
committerStefan Metzmacher <metze@samba.org>2013-08-15 09:07:07 +0200
commit80758e4b07c87280e778ba161c2c9c4a2ee47853 (patch)
tree207cf96acdc65423d1d7556b59036638b1e6b25b /source3
parent1db7e90451f31d75298508c19a859d98d56d7e7c (diff)
downloadsamba-80758e4b07c87280e778ba161c2c9c4a2ee47853.tar.gz
samba-80758e4b07c87280e778ba161c2c9c4a2ee47853.tar.bz2
samba-80758e4b07c87280e778ba161c2c9c4a2ee47853.zip
s3:libsmb: Plumb cli_smb2_set_security_descriptor() inside cli_set_security_descriptor().
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/clisecdesc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/libsmb/clisecdesc.c b/source3/libsmb/clisecdesc.c
index a82feab554..986610fb78 100644
--- a/source3/libsmb/clisecdesc.c
+++ b/source3/libsmb/clisecdesc.c
@@ -104,6 +104,13 @@ NTSTATUS cli_set_security_descriptor(struct cli_state *cli,
size_t len;
NTSTATUS status;
+ if (smbXcli_conn_protocol(cli->conn) >= PROTOCOL_SMB2_02) {
+ return cli_smb2_set_security_descriptor(cli,
+ fnum,
+ sec_info,
+ sd);
+ }
+
status = marshall_sec_desc(talloc_tos(), sd, &data, &len);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(10, ("marshall_sec_desc failed: %s\n",