summaryrefslogtreecommitdiffstats
path: root/source/utils/smbcacls.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Fix option processing in smbcacls - add POPT_COMMON_CONNECTION.Jeremy Allison2008-07-071-1/+2
| | | | Jeremy.
* Fix client authentication with -P switch in client tools (Bug 5435).Günther Deschner2008-05-051-1/+13
| | | | Guenther
* Replace cli_rpc_pipe_close by a talloc destructor on rpc_pipe_structVolker Lendecke2008-04-201-6/+2
|
* Add general '-e' option to enable smb encryptionJeremy Allison2008-01-051-12/+25
| | | | | on tools. Jeremy.
* Add missing patch to allow smbcacls to do krb5 auth, bug #5175Jeremy Allison2008-01-041-1/+1
| | | | | from Tom Maher <tmaher@watson.org>. Jeremy.
* s/sid_to_string/sid_to_fstring/Volker Lendecke2007-12-151-1/+1
| | | | least surprise for callers
* 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.
* 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.
* Make all the tools use the proper accessor functions.Jeremy Allison2007-12-061-4/+3
| | | | Jeremy.
* Remove pstrings from client/client.c by doing a large rewrite.Jeremy Allison2007-12-061-3/+6
| | | | | Mostly compiles.... Jeremy.
* Getting to the home stretch for elimination of pstrings...Jeremy Allison2007-12-031-26/+34
| | | | Jeremy.
* 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.
* Sanitize smbcacls slightlyVolker Lendecke2007-11-091-94/+144
|
* 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 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.
* 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.
* 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.
* 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.
* r24943: Some stackframesVolker Lendecke2007-10-101-1/+1
|
* r23804: here tooAndrew Tridgell2007-10-101-1/+1
|
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
|
* 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.
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r23627: Allow to pass down the lookup-level to rpccli_lsa_lookup_names().Günther Deschner2007-10-101-1/+1
| | | | Guenther
* 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.
* 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.
* r18271: Big change:Gerald Carter2007-10-101-2/+2
| | | | | | | | | | | * autogenerate lsa ndr code * rename 'enum SID_NAME_USE' to 'enum lsa_SidType' * merge a log more security descriptor functions from gen_ndr/ndr_security.c in SAMBA_4_0 The most embarassing thing is the "#define strlen_m strlen" We need a real implementation in SAMBA_3_0 which I'll work on after this code is in.
* r16644: Fix bug #3887 reported by jason@ncac.gwu.eduJeremy Allison2007-10-101-2/+2
| | | | | | by converting the lookup_XX functions to correctly return SID_NAME_TYPE enums. Jeremy.
* r16409: Fix Klocwork ID's.Volker Lendecke2007-10-101-3/+4
| | | | | | | | | | | | | | | | | | | | | 1177 In reg_perfcount.c: 1200 1202 1203 1204 In regfio.c: 1243 1245 1246 1247 1251 Jerry, the reg_perfcount and regfio.c ones, can you take a look please? This is really your code, and I'm not sure I did the right thing to return an error. smbcacls.c: 1377 srv_eventlog_nt.c: 1415 1416 1417 srv_lsa_nt.c: 1420 1421 srv_netlog_nt.c: 1429 srv_samr_nt: 1458 1459 1460 Volker Volker
* r14278: Remainder of fix for Coverity #79,80,81: only allow GROUP or OWNER to beJim McDonough2007-10-101-0/+8
| | | | | specified once in an ACL, so it can be allocated a second time, overwriting the first
* r14272: Fix Coverity # 81: free alloc'ed storage before returningJim McDonough2007-10-101-6/+7
|
* r13316: Let the carnage begin....Gerald Carter2007-10-101-1/+1
| | | | Sync with trunk as off r13315
* r13212: r12414@cabra: derrell | 2006-01-28 17:52:17 -0500Derrell Lipman2007-10-101-1/+1
| | | | | | | | | | | | lp_load() could not be called multiple times to modify parameter settings based on reading from multiple configuration settings. Each time, it initialized all of the settings back to their defaults before reading the specified configuration file. This patch adds a parameter to lp_load() specifying whether the settings should be initialized. It does, however, still force the settings to be initialized the first time, even if the request was to not initialize them. (Not doing so could wreak havoc due to uninitialized values.)
* r12555: Fix more load_case_table swegfaults. Arggg.Jeremy Allison2007-10-101-0/+2
| | | | | What I'd give for a global constructor... Jeremy.
* r11506: Added description of ACL in usage message.Jeremy Allison2007-10-101-1/+2
| | | | Jeremy.
* r11482: Arrg. Can't believe this code was in this state. If youJeremy Allison2007-10-101-1/+3
| | | | | | don't initialize the mask then setting "special" access gets set to *random* permissions ! Jeremy.
* r11464: Allow smbcacls to modify a SD on W2K3. This may fix severalJeremy Allison2007-10-101-1/+14
| | | | | | bugzilla bugs - I need to go through and check. I also need to test against WNT/W2K and WXP. Jeremy.
* r11460: Improve error messages in parsing security descriptors.Jeremy Allison2007-10-101-5/+38
| | | | Jeremy.
* r10656: BIG merge from trunk. Features not copied overGerald Carter2007-10-101-4/+7
| | | | | | | * \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck)
* r7882: Looks like a large patch - but what it actually does is make SambaJeremy Allison2007-10-101-3/+3
| | | | | | safe for using our headers and linking with C++ modules. Stops us from using C++ reserved keywords in our code. Jeremy
* r4088: Get medieval on our ass about malloc.... :-). Take control of all our ↵Jeremy Allison2007-10-101-3/+3
| | | | | | | | | allocation functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy.
* r3918: Allow to set OWNER- and GROUP-entries while setting security descriptorsGünther Deschner2007-10-101-1/+9
| | | | | | with smbcacls and using with the -S or -M switch. Fixes #404 and #2076. Guenther
* r3846: Typo fix. Bug 2055. Lars, I'm available on irc.... :-)Volker Lendecke2007-10-101-1/+1
| | | | Volker
* r2348: fix segmention faultsStefan Metzmacher2007-10-101-3/+5
| | | | | | in smbcquotas and smbcacls caused by setup_logging() (-r 1425) metze
* r1103: need to leave empty dacl so we can remove last ACEHerb Lewis2007-10-101-5/+0
|
* Ensure that dup_sec_desc copies the 'type' field correctly. This causedJeremy Allison2003-09-191-3/+3
| | | | | | | me to expose a type arguement to make_sec_desc(). We weren't copying the SE_DESC_DACL_AUTO_INHERITED flag which could cause errors on auto inherited checks. Jeremy.
* Fix bug 342. Short version of --add now -a instead of -A.Tim Potter2003-09-011-2/+2
|
* Add a command line option (-S on|off|required) to enable signing on clientJeremy Allison2003-07-301-1/+2
| | | | | connections. Overrides smb.conf parameter if set. Jeremy.
* Fixes from Martin Dorey <mdorey@bluearc.com> to only ask for and changeJeremy Allison2003-06-241-7/+6
| | | | | the requested parts of the ACL. Jeremy.