summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fixed chown/chgrp setting from smbcacls.Jeremy Allison2000-12-161-0/+2
| | | | Jeremy.
* Added -C username and -G username that allow a user (usually Administrator)Jeremy Allison2000-12-161-5/+61
| | | | | | | | to change the ownership or group ownership of a file to any arbitrary user from the UNIX command line. This will show the people who quote NT manuals at us about how this is "impossible" how their operating system really works :-). Jeremy.
* Documented -C and -G options to smbcacls.Jeremy Allison2000-12-161-0/+17
| | | | Jeremy.
* Never free anything in the rpc_parse/prs_XXX functions. Do it in the enclosingJeremy Allison2000-12-153-26/+21
| | | | | | | function. lib/util_unistr.c: Check lengths *before* reading source - prevent uninitialised memory reads. Jeremy.
* Added lock backouts on fail.Jeremy Allison2000-12-155-65/+43
| | | | | | | | | | When chaining together long lines of bloody "if" statements, which should logically be separated, and one of them allocates memory, remember to *free* it *WHETHER OR NOT THE IF STATEMENTS SUCCEEDED* !!!! Yes I do consider this a bug in the coding style of Tridge, Rusty, Tim et al. :-). I'm just pissed 'cos this took 4 hours to track down even with an insure error report stating me in the face and also Ben Woodward looking over the code with me :-). Jeremy.
* lib/util_unistr.c:Jean-François Micouleau2000-12-157-45/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | rewrote unistr2_to_ascii() to correct a bug seen on SGI boxes. rpc_parse/parse_misc.c: rpc_parse/parse_prs.c: rewrote of BUFFER5 handling to NOT byteswap when it was already in network byte order. rpc_parse/parse_samr.c: cleanup of samr_io_q_lookup_domain(), remove the over-parsing by 2 bytes. rpc_server/srv_lsa.c: UNISTR2 strings need to be NULL terminated to pleased W2K. rpc_server/srv_spoolss_nt.c: use snprintf instead of safe_strcpy as we want the string truncated at 32 chars. That should fix SUN and SGI box not able to act as printserver and the problem with joining from a W2K wks. J.F.
* Fixed memory leak in JOB_INFO_2 code.Jeremy Allison2000-12-151-3/+2
| | | | Jeremy.
* Fixed memory leaks in lsa_XX calls. Fixed memory leaks in smbcacls. MergedJeremy Allison2000-12-1516-87/+148
| | | | | | in fixes from appliance-head and 2.2. Fixed multiple connection.tdb open problem. Jeremy.
* Changes from APPLIANCE_HEAD:David O'Neill2000-12-141-1/+9
| | | | | - add some debugs for comparing two security descriptors. (source/rpc_parse/parse_sec.c)
* Updates from appliance-head.Jeremy Allison2000-12-141-8/+47
| | | | Jeremy.
* Renamed parameters and variables called acl to the_acl as it conflictsTim Potter2000-12-143-28/+28
| | | | with a Solaris system call.
* Updated smbcacls documentation.Tim Potter2000-12-143-28/+237
|
* Cache lsa connection and policy handle for resolving names and sids.Tim Potter2000-12-141-48/+56
|
* inverted dword valueGerald Carter2000-12-131-1/+1
| | | | jerry
* Changes from APPLIANCE_HEAD:David O'Neill2000-12-132-15/+20
| | | | | | | | | - trivial typo in definition of enum_printing[] (source/param/loadparm.c) - fixed printer status display bug. When no jobs existed in queue, the clients were not properly notified of printer status. This caused native tools for pausing/unpausing a print queue to not work. (source/printing/printing.c)
* Added proto definition for new RPC calls.Jeremy Allison2000-12-133-33/+31
| | | | | Added printing fix from appliance-head. Jeremy.
* I think it's time to go home.Tim Potter2000-12-131-5/+6
|
* OK so I shouldn't have added cli_pipe.o to LIBSMB_OBJ.Tim Potter2000-12-131-2/+3
|
* Add libsmb/cli_lsarpc.o and rpc_client/cli_pipe.o to LIBSMB_OBJ. Not soTim Potter2000-12-131-2/+3
| | | | | | sure about the latter... Modified SMBCACLS_OBJ
* Convert names to sids when modifying ACLs. Convert sids to names whenTim Potter2000-12-131-10/+68
| | | | displaying ACLs.
* Lightweight rpc client library. Uses only routines in libsmb andTim Potter2000-12-131-0/+370
| | | | | | | rpc_client/cli_pipe.c Only cli_lsa_open_policy(), cli_lsa_close(), cli_lsa_lookup_names() and cli_lsa_lookup_sids() implemented so far.
* Server side changes for dynamic names in lsa_lookup_namesTim Potter2000-12-132-20/+10
|
* make protoTim Potter2000-12-133-19/+37
| | | | Updates for dynamic sized lookup names/sids
* Wrong length for unistr2 in init_q_lookup_names()Tim Potter2000-12-132-27/+36
| | | | | Removed some more static arrays and replaced with tallocated memory blocks.
* Two tdb bugfixes. First one - ensure that traverse lock is moved before deletingJeremy Allison2000-12-131-45/+58
| | | | | | | dead records, else the record is just marked for deletion, not actually deleted. Second, ensure allocated record is marked as "in use" before free list lock is released, else other processes in the freelist merge code may try and merge it. Jeremy.
* Added support for SERVICESF shared variable to change configuration fileTim Potter2000-12-131-1/+4
| | | | used in lp_load().
* Fixed bug noticed by JF. se_access_check needs user SID as first in token.Jeremy Allison2000-12-121-10/+23
| | | | Jeremy.
* Fixed processing of dfree script (was truncating).Jeremy Allison2000-12-121-2/+0
| | | | Jeremy.
* Brief documentation on using the virtual printer codeDavid O'Neill2000-12-121-2/+35
|
* more fixes from Simo. Also fixed the password expiration fieldGerald Carter2000-12-121-134/+59
| | | | | | | | | in the tdbsam to never expire (we don't support this yet). jerry
* Don't print out the security descriptor type as it is automaticallyTim Potter2000-12-121-7/+1
| | | | calculated by the new make_sec_desc() function.
* Better error checking for ACL parsing.Tim Potter2000-12-121-7/+21
| | | | Print an error when attempting to delete a non-existent ACL.
* Fix error string.Tim Potter2000-12-121-1/+1
|
* Fixed some accidentally reversed patches.Tim Potter2000-12-121-115/+411
|
* Compile fix for new arg to create_nt_token()Tim Potter2000-12-122-3/+7
|
* Merged in Tim's changes : Removed static limit of MAX_LOOKUP_SIDS in rpc ↵Jeremy Allison2000-12-126-486/+276
| | | | | | | server and client lsa_lookup_names() and lsa_lookup_sids(). Jeremy.
* Removed the special casing of SIDs in se_access_check. This is now done ↵Jeremy Allison2000-12-126-434/+555
| | | | | | | (correctly) when the NT_USER_TOKEN is *created*. Jeremy.
* Owner always has READ_CONTROL and WRITE_DAC access.Jeremy Allison2000-12-121-1/+3
| | | | Jeremy.
* Sorry Gerald, I think the original code was better (plus safer as I'm sureJeremy Allison2000-12-121-7/+10
| | | | | it's working :-). Jeremy.
* Extra part of fix that Gerald missed (sorry).Jeremy Allison2000-12-121-1/+1
| | | | Jeremy.
* subtle bug where files which missed the stat_cache but were addedGerald Carter2000-12-111-10/+7
| | | | | | | | | | | | to the cache during the look returned a blank stat struct. Made weird occurrences such as... $ smbclient //pogo/print$ smb:\ > cd w32x86 ERROR: Invalid path smb:\ > cd w32x86 smb:\w32x86\ >
* Fix for short names not being returned correctly with non-mangled shares.Jeremy Allison2000-12-111-1/+2
| | | | Jeremy.
* Fixed very subtle bug returning correct error on an open, when we haveJeremy Allison2000-12-112-10/+91
| | | | | | | a choice of invalid share mode and access denied. We must return the access denied by preference, but also remember to break the oplocks... This is needed for multi-user MS-Access. Jeremy.
* Adding in debug for SD's.Jeremy Allison2000-12-112-0/+48
| | | | Jeremy.
* code review of rpcclientGerald Carter2000-12-111-159/+140
| | | | | | | | | | o added some comments o abstracted a few code bits o cleaned up some code by removing unused code paths -- jerry
* type for client_info structGerald Carter2000-12-111-2/+2
|
* new version of Get_Pwnam()Gerald Carter2000-12-111-52/+50
| | | | | | | | | o check the username in all lowercase o check the username as transmitted if this would be a different case o check the username in all upper case if this is a new version -- jerry
* return NULL instead of return False in char *prs_mem_get();Tim Potter2000-12-111-1/+1
|
* Added Tim's fix for read-only crashes.Jeremy Allison2000-12-111-0/+2
| | | | Jeremy.
* new prototypesAndrew Tridgell2000-12-112-482/+384
|