summaryrefslogtreecommitdiffstats
path: root/source3/utils/smbcacls.c
Commit message (Collapse)AuthorAgeFilesLines
...
* s3:dom_sid Global replace of DOM_SID with struct dom_sidAndrew Bartlett2010-05-211-10/+10
| | | | | | | | | | This matches the structure that new code is being written to, and removes one more of the old-style named structures, and the need to know that is is just an alias for struct dom_sid. Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
* s3-rpc_client: move protos to cli_lsarpc.hGünther Deschner2010-05-181-0/+1
| | | | Guenther
* s3-secdesc: remove "typedef struct security_descriptor SEC_DESC".Günther Deschner2010-05-181-11/+11
| | | | Guenther
* s3-secdesc: remove "typedef struct security_acl SEC_ACL".Günther Deschner2010-05-181-6/+6
| | | | Guenther
* s3-secdesc: remove "typedef struct security_ace SEC_ACE".Günther Deschner2010-05-181-14/+15
| | | | Guenther
* added support for a -I flagMatthew McGillis2010-05-171-2/+148
|
* Consolidate all set SEC_DESC into single procedure set_secdescMatthew McGillis2010-05-171-25/+32
|
* s3: only include gen_ndr headers where needed.Günther Deschner2010-05-061-0/+1
| | | | | | | | | | | | | | | | | This shrinks include/includes.h.gch by the size of 7 MB and reduces build time as follows: ccache build w/o patch real 4m21.529s ccache build with patch real 3m6.402s pch build w/o patch real 4m26.318s pch build with patch real 3m6.932s Guenther
* Consolidate all get SEC_DESC into single procedure get_secdescMatthew McGillis2010-05-031-44/+37
|
* always pass filename as const charMatthew McGillis2010-05-031-2/+2
|
* s3:smbcacls: also honour the "--sddl" flag when setting ACLs.Michael Adam2010-03-161-2/+6
| | | | Michael
* s3:smbcacls: add switch "--sddl" to output acls as sddl encoded stringsMichael Adam2010-03-031-1/+9
|
* s3: last part of TYPESAFE_QSORT() conversionAndrew Tridgell2010-02-141-1/+1
| | | | convert smbcacls, sharesec and web/
* Ensure all callers to the rpc_client/cli_pipe functions correctlyJeremy Allison2009-11-121-1/+1
| | | | | initialize return variables. Jeremy.
* s3:smbcacls: forbid change of debug level from config fileMichael Adam2009-08-121-0/+3
| | | | Michael
* Get medieval on our ass about SMB1 file descriptors being 16 bits, not an int.Jeremy Allison2009-04-301-19/+14
| | | | | | | Convert all uses of cli_open(), cli_nt_createXXX to NTSTATUS versions. This is smaller than it looks, it just fixes a lot of old code. Next up, ensure all cli_XX functions return NTSTATUS. Jeremy.
* Remove the global "struct cm_cred_struct" and associated calls, makeJeremy Allison2009-03-171-6/+1
| | | | | | | | | callers pass in a struct user_auth_info * instead. This commit causes smbc_set_credentials() to print out a message telling callers to use smbc_set_credentials_with_fallback() instead, as smbc_set_credentials() has a broken API (no SMBCCTX * pointer). No more global variables used in the connection manager API for client dfs calls. Jeremy.
* Make cli_tcon_andx asyncVolker Lendecke2009-01-301-4/+6
|
* Remove the global "cmdline_auth_info" from source3/lib/util.cVolker Lendecke2008-12-141-13/+21
| | | | This involves changing all our clients, that's why it's so large.
* don't return 0 on error - bad for scriptsHerb Lewis2008-12-131-0/+2
|
* s3: Change sockaddr util function names for consistencyTim Prouty2008-12-031-1/+1
| | | | Also eliminates name conflicts with OneFS system libraries
* Attempt to fix bug #5818 - "smbcacls: sorts ACEs improperly and loses ↵Jeremy Allison2008-10-141-26/+157
| | | | | | | | | | inheritance", based on a patch from Paul Fertser <fercerpav@gmail.com>. I also added the ability to get/set hex and symbolic inheritance flag names on ACE flags. I'm still investigating the effects of setting the "SEC_DESC_DACL_AUTO_INHERIT_REQ" flag as I don't yet see what effects this is having on the ACE sent. Jeremy.
* Remove SEC_ACCESS. It's a uint32_t.Jeremy Allison2008-10-091-1/+1
| | | | Jeremy.
* Refactoring: Change calling conventions for cli_rpc_pipe_open_noauthVolker Lendecke2008-07-201-4/+6
| | | | | Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS (This used to be commit 9abc9dc4dc13bd3e42f98eff64eacf24b51f5779)
* Fix option processing in smbcacls - add POPT_COMMON_CONNECTION.Jeremy Allison2008-07-071-1/+2
| | | | | Jeremy. (This used to be commit 599d5f75c703a4cae3da87eb09b6a46285f6b074)
* Fix client authentication with -P switch in client tools (Bug 5435).Günther Deschner2008-05-051-1/+13
| | | | | Guenther (This used to be commit d077ef64cd1d9bbaeb936566c2c70da508de829f)
* Replace cli_rpc_pipe_close by a talloc destructor on rpc_pipe_structVolker Lendecke2008-04-201-6/+2
| | | | (This used to be commit 99fc3283c4ecc791f5a242bd1983b4352ce3e6cf)
* Add general '-e' option to enable smb encryptionJeremy Allison2008-01-051-12/+25
| | | | | | on tools. Jeremy. (This used to be commit 757653966fc1384159bd2d57c5670cd8af0cae96)
* Add missing patch to allow smbcacls to do krb5 auth, bug #5175Jeremy Allison2008-01-041-1/+1
| | | | | | from Tom Maher <tmaher@watson.org>. Jeremy. (This used to be commit 54ee718957b768a06e41857b96f0b5e18b3ca6a4)
* s/sid_to_string/sid_to_fstring/Volker Lendecke2007-12-151-1/+1
| | | | | least surprise for callers (This used to be commit eb523ba77697346a365589101aac379febecd546)
* Remove the char[1024] strings from dynconfig. ReplaceJeremy Allison2007-12-101-1/+1
| | | | | | | them with malloc'ing accessor functions. Should save a lot of static space :-). Jeremy. (This used to be commit 52dc5eaef2106015b3a8b659e818bdb15ad94b05)
* Remove next_token - all uses must now be next_token_talloc.Jeremy Allison2007-12-071-10/+21
| | | | | | No more temptations to use static length strings. Jeremy. (This used to be commit ec003f39369910dee852b7cafb883ddaa321c2de)
* Make all the tools use the proper accessor functions.Jeremy Allison2007-12-061-4/+3
| | | | | Jeremy. (This used to be commit 6d61bb87975839adb25c304e5e5041f91b12d236)
* Remove pstrings from client/client.c by doing a large rewrite.Jeremy Allison2007-12-061-3/+6
| | | | | | Mostly compiles.... Jeremy. (This used to be commit c87f3eba9aa52f4ab25d77e2167262bf5c43b1a6)
* Getting to the home stretch for elimination of pstrings...Jeremy Allison2007-12-031-26/+34
| | | | | Jeremy. (This used to be commit 041163551194102ca67fef52c57d87020a1d09bc)
* More pstring removal. This one was tricky. I had to addJeremy Allison2007-11-151-2/+1
| | | | | | | one horror (pstring_clean_name()) which will have to remain until I've removed all pstrings from the client code. Jeremy. (This used to be commit 1ea3ac80146b83c2522b69e7747c823366a2b47d)
* Sanitize smbcacls slightlyVolker Lendecke2007-11-091-94/+144
| | | | (This used to be commit 9c57628dbd79d3d28f20d5d1ab62a68ae683d46e)
* Change all occurrences of zero_addr(&ss,AF_INET) toJeremy Allison2007-10-271-1/+1
| | | | | | | | | zero_addr(&ss). All current uses were always of the AF_INET form, so simplify the call. If in the future we need to zero an addr to AF_INET6 this can be done separately. Jeremy. (This used to be commit 2e92418a138bf2738b77b7e0fcb2fa37ad84fc0c)
* This is a large patch (sorry). Migrate from struct in_addrJeremy Allison2007-10-241-7/+8
| | | | | | | | | | | | | | to struct sockaddr_storage in most places that matter (ie. not the nmbd and NetBIOS lookups). This passes make test on an IPv4 box, but I'll have to do more work/testing on IPv6 enabled boxes. This should now give us a framework for testing and finishing the IPv6 migration. It's at the state where someone with a working IPv6 setup should (theorecically) be able to type : smbclient //ipv6-address/share and have it work. Jeremy. (This used to be commit 98e154c3125d5732c37a72d74b0eb5cd7b6155fd)
* Fix the popt / bool issues. Some places we used BOOLJeremy Allison2007-10-191-1/+1
| | | | | | | where we meant int. Fix this. Thanks to metze for pointing this out. Jeremy. (This used to be commit 793a9d24a163cb6cf5a3a0aa5ae30e9f8cf4744a)
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-10/+10
| | | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
* Add start of IPv6 implementation. Currently most of this is avoidingJeremy Allison2007-10-101-1/+1
| | | | | | | | | | | IPv6 in winbindd, but moves most of the socket functions that were wrongly in lib/util.c into lib/util_sock.c and provides generic IPv4/6 independent versions of most things. Still lots of work to do, but now I can see how I'll fix the access check code. Nasty part that remains is the name resolution code which is used to returning arrays of in_addr structs. Jeremy. (This used to be commit 3f6bd0e1ec5cc6670f3d08f76fc2cd94c9cd1a08)
* r24943: Some stackframesVolker Lendecke2007-10-101-1/+1
| | | | (This used to be commit cddb9f11d5fafcd3797cb242775c37f0c04d4f15)
* r23804: here tooAndrew Tridgell2007-10-101-1/+1
| | | | (This used to be commit e5d18768a014753c439ba6be24a52b04fed63b31)
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
| | | | (This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
* r23782: I tested this against NT4 PDC, W2K Server, W2K3 Dc, and a Win XP std ↵Simo Sorce2007-10-101-6/+1
| | | | | | | alone client and they all work with this code. (This used to be commit 44e22581d731572d3fa260b92063922c59ce75db)
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | | Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
* r23627: Allow to pass down the lookup-level to rpccli_lsa_lookup_names().Günther Deschner2007-10-101-1/+1
| | | | | Guenther (This used to be commit e9a7512a9f630340004913f1379452eea8a9b6ae)
* r23009: Both contains a strchr_m(server,'/') few lines after replacing all / ↵James Peach2007-10-101-5/+2
| | | | | | | | | with \. This patch removes this dead code. Patch from Pascal Terjan <pterjan@mandriva.com> for bug #2313. (This used to be commit 04b84baef344206d97776e04a25f4bd214eea28f)
* r18745: Use the Samba4 data structures for security descriptors and security ↵Jelmer Vernooij2007-10-101-26/+26
| | | | | | | | | | descriptor buffers. Make security access masks simply a uint32 rather than a structure with a uint32 in it. (This used to be commit b41c52b9db5fc4a553b20a7a5a051a4afced9366)