summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-08-08 11:00:08 -0700
committerStefan Metzmacher <metze@samba.org>2013-08-15 09:07:07 +0200
commit1db7e90451f31d75298508c19a859d98d56d7e7c (patch)
treee620ac972c158289ffb2561054a2981697bbb7b7 /source3/libsmb
parentde895bf228432f2a42bcdcadcf12ffd1be64022f (diff)
downloadsamba-1db7e90451f31d75298508c19a859d98d56d7e7c.tar.gz
samba-1db7e90451f31d75298508c19a859d98d56d7e7c.tar.bz2
samba-1db7e90451f31d75298508c19a859d98d56d7e7c.zip
s3:libsmb: Plumb cli_smb2_query_security_descriptor() inside cli_query_security_descriptor().
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clisecdesc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/libsmb/clisecdesc.c b/source3/libsmb/clisecdesc.c
index 24da39dc1f..a82feab554 100644
--- a/source3/libsmb/clisecdesc.c
+++ b/source3/libsmb/clisecdesc.c
@@ -20,6 +20,7 @@
#include "includes.h"
#include "libsmb/libsmb.h"
#include "../libcli/security/secdesc.h"
+#include "../libcli/smb/smbXcli_base.h"
NTSTATUS cli_query_security_descriptor(struct cli_state *cli,
uint16_t fnum,
@@ -33,6 +34,14 @@ NTSTATUS cli_query_security_descriptor(struct cli_state *cli,
NTSTATUS status;
struct security_descriptor *lsd;
+ if (smbXcli_conn_protocol(cli->conn) >= PROTOCOL_SMB2_02) {
+ return cli_smb2_query_security_descriptor(cli,
+ fnum,
+ sec_info,
+ mem_ctx,
+ sd);
+ }
+
SIVAL(param, 0, fnum);
SIVAL(param, 4, sec_info);