summaryrefslogtreecommitdiffstats
path: root/source3/utils/smbcacls.c
Commit message (Collapse)AuthorAgeFilesLines
* smbcacls: parse config file argument prior to loadDavid Disseldorp2014-07-071-2/+3
| | | | | | | | | | Fixes usage with the common "-s|--configfile" parameter. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Mon Jul 7 23:30:50 CEST 2014 on sn-devel-104
* s3/smbcacls: use security_ace_equal instead of sec_ace_equalDavid Disseldorp2014-05-291-4/+5
| | | | | | | Both offer the same functionality, sec_ace_equal() will be removed. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s3: client : Add extra return parameter to all client open calls.Jeremy Allison2014-05-091-3/+3
| | | | | | | | | | | | | | | Add a return parameter of struct smb_create_returns *cr to cli_ntcreate() cli_ntcreate_recv() cli_nttrans_create() cli_nttrans_create_recv() Always pass in NULL for now. This fixes the create API to always fully return the data the server has given back to us on the open file to the caller. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3:utils: avoid argv related const warningsStefan Metzmacher2014-04-021-2/+3
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* CVE-2013-6442: s3:smbcacls - ensure we don't lose an existing ACL when ↵Jeremy Allison2014-03-111-1/+1
| | | | | | | | | | | | | setting owner or group owner. Bug: https://bugzilla.samba.org/show_bug.cgi?id=10327 Bug 10327 - CVE-2013-6442: smbcacls --chown | --chgrp dacl regression Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Karolin Seeger <kseeger@samba.org> Autobuild-Date(master): Tue Mar 11 22:55:54 CET 2014 on sn-devel-104
* s3-utils: Fix scanf format in smbacls.Andreas Schneider2013-11-151-3/+3
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:smbcacls: Add -m<MAX PROTOCOL> option to smbcacls.Jeremy Allison2013-08-151-0/+4
| | | | | | | | https://bugzilla.samba.org/show_bug.cgi?id=9514 Signed-off-by: Jeremy Allison <jra@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3-rpc_cli: pass down ndr_interface_table to cli_rpc_pipe_open_noauth().Günther Deschner2013-08-051-4/+3
| | | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s3:smbcacls: add --query-security-info and --set-security-info optionsStefan Metzmacher2012-12-021-10/+55
| | | | | | | This allows the caller to specify the security_information flags. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3:util: fix usage of popt_burn_cmdline_password()Stefan Metzmacher2012-11-301-1/+0
| | | | | | | | We should only call popt_burn_cmdline_password() after poptFreeContext(), otherwise we remove the password to early. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s3fs-client: Burn commandline password of client utils.Andreas Schneider2012-11-081-0/+2
| | | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Nov 8 21:24:21 CET 2012 on sn-devel-104
* s3fs-utils: Free the popt context in smbcacls and smbquotas.Andreas Schneider2012-10-301-0/+2
| | | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Oct 30 20:22:46 CET 2012 on sn-devel-104
* s3:utils: use cli_tree_connect() instead of cli_tcon_andx()Stefan Metzmacher2012-05-301-1/+1
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed May 30 12:54:05 CEST 2012 on sn-devel-104
* Only ask for specific permissions required when setting an ACL.Jeremy Allison2012-02-031-3/+12
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Feb 3 03:07:33 CET 2012 on sn-devel-104
* s3:utils: make use of cli_tree_connect()Stefan Metzmacher2011-11-241-2/+2
| | | | metze
* s3:smbcacls: fix violation of coding conventionsGregor Beck2011-10-121-1/+2
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:smbcacls: make get_domain_sid() staticMichael Adam2011-10-121-1/+1
|
* s3:smbcacls fix leaking talloc stackframce on tcon failureGregor Beck2011-10-121-2/+4
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:smbcacls fix possible SEGFAULTGregor Beck2011-10-121-10/+14
| | | | | | sddl_encode returns NULL on failure Signed-off-by: Michael Adam <obnox@samba.org>
* s3:smbcacls add option domain-sidGregor Beck2011-10-121-5/+16
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:smbcacls get_domain_sid for sddl parsing/formating from lsarpcGregor Beck2011-10-121-2/+72
| | | | | | get_global_sid panics if we are not root and may give the wrong answer anyway. Signed-off-by: Michael Adam <obnox@samba.org>
* s3:smbcacls pretty print acl control fieldGregor Beck2011-10-121-1/+43
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:smbcacls: use lp_load_global()Michael Adam2011-07-281-1/+1
|
* s3-utils/smbcacls.c: replace cli_query_secdesc_old()Björn Baumbach2011-07-231-3/+4
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-libsmb: rename cli_query_secdesc() to cli_query_secdesc_old()Björn Baumbach2011-07-231-1/+1
| | | | | | Will introduce new cli_query_secdesc() function Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smbcacls: pass down NULL instead of a zero sockaddr_storageStefan Metzmacher2011-07-221-4/+1
| | | | metze
* s3:libsmb: move cli->cnum to cli->smb1.tid and hide it behind ↵Stefan Metzmacher2011-07-201-4/+4
| | | | | | cli_state_[g|s]et_tid() metze
* s3-param Remove special case for global_myname(), rename to lp_netbios_name()Andrew Bartlett2011-06-091-1/+1
| | | | | | | | There is no reason this can't be a normal constant string in the loadparm system, now that we have lp_set_cmdline() to handle overrides correctly. Andrew Bartlett
* s3:smbcacls: fix parsing of multiple flagsGregor Beck2011-05-301-1/+6
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3-libsmb: move protos to libsmb/proto.hGünther Deschner2011-05-061-0/+1
| | | | Guenther
* s3-smb Use FILE_ATTRIBUTE_DIRECTORY intead of aDIRAndrew Bartlett2011-04-291-1/+1
| | | | | | This means we use just one constant for this file attribute. Andrew Bartlett
* s3-passdb: use passdb headers where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3: Fix Coverity ID 2202, NULL_RETURNSVolker Lendecke2011-03-231-0/+3
|
* s3-libsmb: only include rap client when needed.Günther Deschner2011-03-151-0/+1
| | | | Guenther
* s3-rpc_client: Move client pipe functions to own header.Andreas Schneider2011-02-281-0/+1
|
* s3: Fix some nonempty blank linesVolker Lendecke2011-01-171-1/+1
|
* s3: Avoid some calls to cli_errstrVolker Lendecke2011-01-151-18/+24
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Jan 15 17:18:54 CET 2011 on sn-devel-104
* s3: Convert cli_set_secdesc to cli_transVolker Lendecke2011-01-151-2/+4
|
* s3: Fix some nonempty blank linesVolker Lendecke2011-01-151-4/+4
|
* s3: Remove unused "retry" from cli_full_connectionVolker Lendecke2010-12-201-2/+1
|
* s3: string_to_sid does thorough syntax checkingVolker Lendecke2010-11-141-2/+2
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Nov 14 14:07:29 UTC 2010 on sn-devel-104
* s3-debug Move 'load_case_tables()' before lp_set_cmdline() and popt callsAndrew Bartlett2010-11-021-1/+0
| | | | | | | | | | The problem here is that we cannot run lp_set_cmdline() (directly or indirectly via the popt helpers) until load_case_tables() has been run. However, load_case_tables does not have auto-initialisation, so we must init it once, and once only. Andrew Bartlett
* s3-debug Remove 'AllowDebugChange' and use lp_set_cmdline() insteadAndrew Bartlett2010-11-021-4/+1
| | | | | | | | | By removing this global variable, the API between the two different debug systems is made more similar. Both s3 and s4 now have lp_set_cmdline() which ensures that the smb.conf cannot overwrite these the user-specified log level. Andrew Bartlett
* s3-debug Impove setup_logging() to specify logging to stderrAndrew Bartlett2010-11-021-3/+1
| | | | | | | | This change improves the setup_logging() API so that callers which wish to set up logging to stderr can simply ask for it, rather than directly modify the dbf global variable. Andrew Bartlett
* s3: Convert cli_qfileinfo_basic to cli_qfileinfoVolker Lendecke2010-10-241-2/+3
|
* s3: Rename cli_fileinfo() to cli_fileinfo_basic()Volker Lendecke2010-10-241-1/+1
|
* libcli/security Provide a common, top level libcli/security/security.hAndrew Bartlett2010-10-121-1/+1
| | | | | | | | | | | | | | This will reduce the noise from merges of the rest of the libcli/security code, without this commit changing what code is actually used. This includes (along with other security headers) dom_sid.h and security_token.h Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Oct 12 05:54:10 UTC 2010 on sn-devel-104
* s3-util_sid: use shared dom_sid_compare_auth and dom_sid_equal_X functions.Günther Deschner2010-09-201-3/+4
| | | | Guenther
* s3-popt: Only include popt-common.h when needed.Andreas Schneider2010-08-051-0/+1
|
* Fix bug with incorrect flag values for inherited ace in some cases.Matthew McGillis2010-06-071-0/+5
|