summaryrefslogtreecommitdiffstats
path: root/source3/utils/smbcacls.c
Commit message (Collapse)AuthorAgeFilesLines
* 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 (This used to be commit 1804a8a01ebf3353574a2c5b26a1746b34715737)
* r14272: Fix Coverity # 81: free alloc'ed storage before returningJim McDonough2007-10-101-6/+7
| | | | (This used to be commit 1899d8ea283845141b24d91d230248009744fe1a)
* r13316: Let the carnage begin....Gerald Carter2007-10-101-1/+1
| | | | | Sync with trunk as off r13315 (This used to be commit 17e63ac4ed8325c0d44fe62b2442449f3298559f)
* 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.) (This used to be commit f2a24de769d1b2266e576597c57a8e3b1e2a2b51)
* r12555: Fix more load_case_table swegfaults. Arggg.Jeremy Allison2007-10-101-0/+2
| | | | | | What I'd give for a global constructor... Jeremy. (This used to be commit c970d7d0a5ba225465dfb0980989b8817b17c643)
* r11506: Added description of ACL in usage message.Jeremy Allison2007-10-101-1/+2
| | | | | Jeremy. (This used to be commit 7795fce24e1e6dfe55360bb62617b922973f5f95)
* 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. (This used to be commit f1616911a858886da0a635a2f9b95d471215e84c)
* 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. (This used to be commit 881dd7dbf6de0e11a3703afd2a1ba286ff0d62ad)
* r11460: Improve error messages in parsing security descriptors.Jeremy Allison2007-10-101-5/+38
| | | | | Jeremy. (This used to be commit 385f128de716b62bdfc82627a403fe6dd69bd39d)
* 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) (This used to be commit 939c3cb5d78e3a2236209b296aa8aba8bdce32d3)
* 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 (This used to be commit 9506b8e145982b1160a2f0aee5c9b7a54980940a)
* 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. (This used to be commit 620f2e608f70ba92f032720c031283d295c5c06a)
* 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 (This used to be commit 13d32519e3806d7c080a0ac3c5ba196868ed2581)
* r3846: Typo fix. Bug 2055. Lars, I'm available on irc.... :-)Volker Lendecke2007-10-101-1/+1
| | | | | Volker (This used to be commit 78ab68367d437cd5f84d46ac96fcaf9ebb3305b8)
* r2348: fix segmention faultsStefan Metzmacher2007-10-101-3/+5
| | | | | | | in smbcquotas and smbcacls caused by setup_logging() (-r 1425) metze (This used to be commit 39f3f76ea2097c10799f0bef8717d3ac71cacaa8)
* r1103: need to leave empty dacl so we can remove last ACEHerb Lewis2007-10-101-5/+0
| | | | (This used to be commit d8a545368c8111fddcfdd423c4d6fcbab65e96d6)
* 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. (This used to be commit 28b315a7501f42928d73efaa75f74146ba95cf2d)
* Fix bug 342. Short version of --add now -a instead of -A.Tim Potter2003-09-011-2/+2
| | | | (This used to be commit 233568dd6b08d3dfb48a712b763dfc31c03b229d)
* 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. (This used to be commit 879309671df6b530e0bff69559422a417da4a307)
* 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. (This used to be commit c35a88201c619f0ebbaf38adbd0ec2af77e23981)
* Reverse previous patch from Stefan and me after comments by Andrew BartlettJelmer Vernooij2003-05-101-2/+0
| | | | (This used to be commit d817eaf0ecca2d878ab1ffcf7a747a02d71c811e)
* Patch from metze and me that adds dummy smb_register_*() functions soJelmer Vernooij2003-05-101-0/+2
| | | | | | that is now possible to, for example, load a module which contains an auth method into a binary without the auth/ subsystem built in. (This used to be commit 74d9ecfe2dd7364643d32acb62ade957bd71cd0d)
* Merge:Tim Potter2003-04-141-113/+53
| | | | | - Jelmer's latest popt changes (This used to be commit 6a54d9a0a77c71664dc6cdbed1adf492c28c0cce)
* Use fprintf(f, ...) instead of plain printf() - patch by Ronan WaideJelmer Vernooij2003-04-091-2/+2
| | | | (This used to be commit 890cc17c41b3940dcb7d4c2a52ab292bca7d18be)
* Jeremy merged across my string parinoia fixes, but forgot to enable them! :-)Andrew Bartlett2003-03-181-1/+1
| | | | | | | | | | | This patch catches up on the rest of the work - as much string checking as is possible is done at compile time, and the rest at runtime. Lots of code converted to pstrcpy() etc, and other code reworked to correctly call sizeof(). Andrew Bartlett (This used to be commit c5b604e2ee67d74241ae2fa07ae904647d35a2be)
* Merge from HEAD:Andrew Bartlett2003-01-141-3/+3
| | | | | | | | | | - fstring/pstring mixups - the detection code that found them (disabled) - a bit of whitespace - a static Andrew Bartlett (This used to be commit 9b70fa868e7d9481f584c83fc4046174e1dedfd9)
* Merge from HEAD - make Samba compile with -Wwrite-strings without additionalAndrew Bartlett2003-01-031-7/+7
| | | | | | | warnings. (Adds a lot of const). Andrew Bartlett (This used to be commit 3a7458f9472432ef12c43008414925fd1ce8ea0c)
* Forward port the change to talloc_init() to make all talloc contextsJeremy Allison2002-12-201-1/+1
| | | | | | named. Ensure we can query them. Jeremy. (This used to be commit 09a218a9f6fb0bd922940467bf8500eb4f1bcf84)
* Merge from HEAD:Tim Potter2002-12-201-6/+13
| | | | | >Fix fnum leak under error condition in cacl_dump. (This used to be commit cd11f10e841fd53538164f283dc81232ff36638a)
* Removed global_myworkgroup, global_myname, global_myscope. Added liberalJeremy Allison2002-11-121-10/+8
| | | | | | | dashes of const. This is a rather large check-in, some things may break. It does compile though :-). Jeremy. (This used to be commit f755711df8f74f9b8e8c1a2b0d07d02a931eeb89)
* Added new error codes. Fix up connection code to retry in the same wayJeremy Allison2002-10-171-1/+1
| | | | | | that app-head does. Jeremy. (This used to be commit ec7953f20145799f6286a295472df4826bfdfb8f)
* merge of new client side support the Win2k LSARPC UUID in rpcbindGerald Carter2002-10-041-1/+1
| | | | | from APP_HEAD (This used to be commit 1cfd2ee433305e91e87804dd55d10e025d30a69e)
* sync 3.0 branch with HEADJelmer Vernooij2002-08-171-1/+1
| | | | (This used to be commit 1b83b78e332b9d28914eff155530e81cf2073a58)
* updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell2002-07-151-78/+48
| | | | (This used to be commit 03ac082dcb375b6f3ca3d810a6a6367542bc23ce)
* Merge of lsa lookup names/sids patch from HEAD.Tim Potter2002-04-151-7/+5
| | | | (This used to be commit e57c162897d4a7e66bb87091d179ac138f751c64)
* int -> uint32 fixes from andreasTim Potter2002-02-161-4/+4
| | | | (This used to be commit 84c811ca57f7e1b7d9ee498d95b3b21bea47eb5e)
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
* Back out some of the less well thought out ideas from last weeks work onAndrew Bartlett2002-01-261-5/+2
| | | | | | | | | | | winbind default domains, particulary now I understand whats going on a lot better. This ensures that the RPC client code does as little 'magic' as possible - this is up to the application/user. (Where - for to name->sid code - it was all along). This leaves the change that allows the sid->name code to return domains and usernames in seperate paramaters. Andrew Bartlett (This used to be commit 5dfba2cf536f761b0aee314ed9e30dc53900b691)
* This patch makes the 'winbind use default domain' code interact better withAndrew Bartlett2002-01-201-5/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | smbd, and also makes it much cleaner inside winbindd. It is mostly my code, with a few changes and testing performed by Alexander Bokovoy <a.bokovoy@sam-solutions.net>. ab has tested it in security=domain and security=ads, but more testing is always appricatiated. The idea is that we no longer cart around a 'domain\user' string, we keep them seperate until the last moment - when we push that string into a pwent on onto the socket. This removes the need to be constantly parsing that string - the domain prefix is almost always already provided, (only a couple of functions actually changed arguments in all this). Some consequential changes to the RPC client code, to stop it concatonating the two strings (it now passes them both back as params). I havn't changed the cache code, however the usernames will no longer have a double domain prefix in the key string. The actual structures are unchanged - but the meaning of 'username' in the 'rid' will have changed. (The cache is invalidated at startup, so on-disk formats are not an issue here). Andrew Bartlett (This used to be commit e870f0e727952aeb8599cf93ad2650ae56eca033)
* Fixup JF's weird SID return :-).Jeremy Allison2001-12-181-1/+1
| | | | | Jeremy (This used to be commit 7b8fb8d85c406b8755f60cf14dc2377bc59eda53)
* Renamed sid field in SEC_ACE to trustee to be more in line with MS'sTim Potter2001-11-301-10/+22
| | | | | definitions. (This used to be commit 9712d3f15a47155f558d0034ef71fd06afb11301)
* fix a bunch of places where we can double-free a cli structureAndrew Tridgell2001-11-281-5/+0
| | | | (This used to be commit e2ba2383c9f679c076749a8f4fccefc3559e37ec)
* Got medieval on another pointless extern. Removed extern struct ipzeroTim Potter2001-11-261-3/+2
| | | | | | | | and replaced with two functions: void zero_ip(struct in_adder *ip); BOOL is_zero_ip(struct in_addr ip); (This used to be commit 778f5f77a66cda76348a7c6f64cd63afe2bfe077)
* Removed TimeInit() call from every client program (except for one placeTim Potter2001-11-231-2/+0
| | | | | | in smbd/process.c where the timezone is reinitialised. Was replaced with check for a static is_initialised boolean. (This used to be commit 8fc772c9e5770cd3a8857670214dcff033ebae32)
* Store some path names in global variables initialized to configureMartin Pool2001-11-191-2/+1
| | | | | default, rather than in preprocessor macros. (This used to be commit 79ec88f0da40faebe1e587f1b3e87b5f2b184f58)
* move to SAFE_FREE()Simo Sorce2001-09-171-12/+10
| | | | (This used to be commit 67db8f03c5c9e81e11b5f3276b50ee23e09a2659)
* declare dbf in one spotAndrew Tridgell2001-09-101-1/+0
| | | | (This used to be commit f41c3bb80f1e498a9d27f6e236b0ff3a742764c9)
* replaced stdio in many parts of samba with a XFILE. XFILE is a cut-downAndrew Tridgell2001-09-101-2/+2
| | | | | | | | | | replacemnt of stdio that doesn't suffer from the 8-bit filedescriptor limit that we hit with nasty consequences on some systems I would eventually prefer us to have a configure test to see if we need to replace stdio, but for now this code needs to be tested widely so I'm enabling it by default. (This used to be commit 1af8bf34f1caa3e7ec312d8109c07d32a945a448)
* it now all compiles - so try enabling it by default and see what explodes on ↵Andrew Tridgell2001-09-041-7/+6
| | | | | | the build farm (This used to be commit 5bb7e4f0f65edf1db20245f403cbe81833134240)
* converted another bunch of stuff to NTSTATUSAndrew Tridgell2001-08-271-3/+3
| | | | (This used to be commit 1d36250e338ae0ff9fbbf86019809205dd97d05e)