summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2000-12-30The line was:Christopher R. Hertel1-1/+6
struct tdb_traverse_lock tl = { tdb->travlocks.next, 0, 0 }; The IRIX compiler complained that the first initialization value was not a constant and errored out. Here's what it looks like now: struct tdb_traverse_lock tl = { NULL, 0, 0 }; int ret, count = 0; /* This was in the initializaton, above, but the IRIX compiler * did not like it. crh */ tl.next = tdb->travlocks.next; That worked. Chris -)----- (This used to be commit e651d1d642cd1bfac11bec81a30915b95d4424c8)
2000-12-26First pass at the libsmbclient code ...Richard Sharpe4-0/+1524
This code handles the basic stuff and compiles and links under Linux, but I do not know about any other operating systems. Now onto directory listing routines, including those that list workgroups, servers, etc. Nothing is built automatically yet, you have to make client/testsmbc to build the library and test program. Also, no make install targets are defined for libsmbclient.so as yet, either. Would be good if people test on operating systems other than Linux. (This used to be commit 51c0436a50e9f9274cee9de043bbefc93aff8011)
2000-12-21merge from appliance headGerald Carter1-0/+5
(This used to be commit 393c5f14e0858dcb3d6cb26eb5643b520c2c9686)
2000-12-21Return appropriate exit codes for various situations:Tim Potter1-22/+32
0 for success 1 if operation failed 2 command line parse error (This used to be commit b4773618acb60b62b20b01ff7ba749984c1379fb)
2000-12-21Documentation updates for smbcacls program.Tim Potter3-42/+139
(This used to be commit f9450cd7b7352a206dc05d8ad2a7b86a2586b892)
2000-12-21If extra arguments passed make yodl docs for these files rather than *.yoTim Potter1-2/+8
(This used to be commit b57fbcca06c7a69863f69628745f8fcbc13419bd)
2000-12-21merge from appliance headGerald Carter1-1/+4
(This used to be commit 4671a313775f052ae949ba441db7e0060bed0b75)
2000-12-21make protoTim Potter1-0/+1
(This used to be commit a1ea59c9afb930b2084f175e72ac99ef314314a2)
2000-12-21Don't call string_to_sid after cli_lsa_lookup_names() fails.Tim Potter1-2/+55
Can't use space as a ACL separator as it breaks NT user/group names that contain spaces (i.e most of the default ones). The MSDN is contradictory over the exact ordering of ACE entries in an ACL. However NT4 gives a "The information may have been modified by a computer running Windows NT 5.0" if denied ACEs do not appear before allowed ACEs. Sort ACE list before calling cli_set_secdesc(). (This used to be commit 01a89978ff4b9fcc813c4f251ddfe23c0485a696)
2000-12-21Some systems seem to only accept a ntcreate&x with a unicode filenameTim Potter1-5/+45
despite samba negotiating ascii filenames. Retry with unicode pathnames if the ascii version fails. Convert all forward slashes to backslashes in the filename argument. (This used to be commit 935b77573ec82bece6211a9f61c800ef1c8c9aa4)
2000-12-21Added a cli_nt_create_uni() to do a ntcreate&x with a unicode filename,Tim Potter1-2/+49
regardless of the settings negotiated in the flags2 smb field. (This used to be commit c4476c6315a6e99dd4a1d0e3185a0d17c073205d)
2000-12-21Replace magic number with constant.Tim Potter1-1/+1
(This used to be commit 1a228868cf14418894b798f19955df3276bd1089)
2000-12-21Cleaned up SidToString() and StringToSid() exit paths.Tim Potter1-17/+27
Can now use user%password format in $USER environment variable. -U option is now optional. (This used to be commit e21f2ef4fbfae1451d77b53291a78646dee9cfce)
2000-12-20Removed uninitialised variable.Jeremy Allison1-1/+0
Jeremy. (This used to be commit 56a93567a106f25e87df093e1861f6bdd1d3196a)
2000-12-20implemented a much nicer name_status() interface. It now returns aAndrew Tridgell5-178/+199
list of structures rather than the dodgy parsing code we had before this also gets smbw working correctly with no initial workgroup (using name_status_find on __MSBROWSE__ returns) (This used to be commit f2be88a8738a39ca5c98936edb7537cd701348a1)
2000-12-19Fixed bug found by Gerald. If a Samba server joins a domain and is setJeremy Allison4-8/+23
to search for a DC to authenticate to using the "*" syntax than ensure that for the first hour after the password change is searches for the PDC using the 1B name not the 1C name as domain replication may not have occured. Jeremy. (This used to be commit c25533de9918ed9b0c79fd039e11d1b79f513db0)
2000-12-19Split set_nt_acls into owner set (which uses chown) and permission setJeremy Allison1-94/+109
(which currently uses chmod) in preparation for ACL creation. Jeremy. (This used to be commit 0f39895ab007a7300aed6c011c487593ee8c91f0)
2000-12-19Split the one sys_acl_free call into sys_acl_free_TYPE calls, to allowJeremy Allison3-19/+42
easier wrapping of non-POSIX ACL interfaces. Jeremy. (This used to be commit 1a31b4eb082b23d60e3d9040b3c0110eef1f9385)
2000-12-18A couple more UMR fixes.Jeremy Allison1-2/+2
Jeremy. (This used to be commit a83702c99f1ecd6e68f8c178b20823fce6d4c6c6)
2000-12-18Cast prs_alloc_mem to correct type.Jeremy Allison1-2/+2
Jeremy. (This used to be commit e0931cda809e4bb48bd97cad6d7ab5fb6dc53eb2)
2000-12-18Fix typos in new group sid check.Jeremy Allison1-2/+2
Jeremy. (This used to be commit c48e95297e63c8b6f0c6686e5bcfa52229710dbc)
2000-12-18Added query info policy call.Tim Potter1-0/+86
(This used to be commit dcea2a4bc0503822667b73d19c4f0a59b15715a5)
2000-12-18Merged Tim's fixes from appliance-head.Jeremy Allison3-107/+160
Jeremy. (This used to be commit 26f873540c2299600cb80eb059fcdaf70ec82473)
2000-12-18Streamlined exit path.Tim Potter1-24/+27
Allow NULL to be passed to cli_lsa_initialise() which creates an anonymous connection to the server. (This used to be commit 8ccd06ee9635e81bdefa8ae58a88c39f132b371c)
2000-12-16Fixed chown/chgrp setting from smbcacls.Jeremy Allison1-0/+2
Jeremy. (This used to be commit 43ca0d991cc6489be16722a7ea89e01a42f2ca2f)
2000-12-16Added -C username and -G username that allow a user (usually Administrator)Jeremy Allison1-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. (This used to be commit 12f88c9ba731bdded626b9d011cfc8d2ba09010e)
2000-12-16Documented -C and -G options to smbcacls.Jeremy Allison1-0/+17
Jeremy. (This used to be commit 89708be73ad8829ee2e9637db2e2be6493493396)
2000-12-15Never free anything in the rpc_parse/prs_XXX functions. Do it in the enclosingJeremy Allison3-26/+21
function. lib/util_unistr.c: Check lengths *before* reading source - prevent uninitialised memory reads. Jeremy. (This used to be commit ce4f461965c872fbfc9fe5f6b98aed58bb3dd67a)
2000-12-15Added lock backouts on fail.Jeremy Allison5-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. (This used to be commit 506b5e34c3ba16768dbc82ba21044787de160c45)
2000-12-15lib/util_unistr.c:Jean-François Micouleau7-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. (This used to be commit 69fe739303b105f2c488f266f13977da1b6b201d)
2000-12-15Fixed memory leak in JOB_INFO_2 code.Jeremy Allison1-3/+2
Jeremy. (This used to be commit d0d31eead3367485bbac684d881839029010975d)
2000-12-15Fixed memory leaks in lsa_XX calls. Fixed memory leaks in smbcacls. MergedJeremy Allison16-87/+148
in fixes from appliance-head and 2.2. Fixed multiple connection.tdb open problem. Jeremy. (This used to be commit 0a40bc83e14c69a09948ec09bb6fc5026c4f4c14)
2000-12-14Changes from APPLIANCE_HEAD:David O'Neill1-1/+9
- add some debugs for comparing two security descriptors. (source/rpc_parse/parse_sec.c) (This used to be commit 505a8a2277f2bc761bd2b170fafbcb3afd982d92)
2000-12-14Updates from appliance-head.Jeremy Allison1-8/+47
Jeremy. (This used to be commit 15ae2c335b52e34c06d8f4f9ebad28078292b208)
2000-12-14Renamed parameters and variables called acl to the_acl as it conflictsTim Potter3-28/+28
with a Solaris system call. (This used to be commit 5e547ddcb526be5562db9213c5b36e505e735a2e)
2000-12-14Updated smbcacls documentation.Tim Potter3-28/+237
(This used to be commit bd87398b5a9421add8db8b455d02ccd6b2624f58)
2000-12-14Cache lsa connection and policy handle for resolving names and sids.Tim Potter1-48/+56
(This used to be commit 09d2d972fd6f70bdf62f25936494968ef597b98b)
2000-12-13inverted dword valueGerald Carter1-1/+1
jerry (This used to be commit 0e5c1df2841ee0dd44bb5c52af90ca98649a4d55)
2000-12-13Changes from APPLIANCE_HEAD:David O'Neill2-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) (This used to be commit c533e77f1912618230a938458980a9339924fe06)
2000-12-13Added proto definition for new RPC calls.Jeremy Allison3-33/+31
Added printing fix from appliance-head. Jeremy. (This used to be commit f4c7f9ddb906b67ee4397e7707309356085476d1)
2000-12-13I think it's time to go home.Tim Potter1-5/+6
(This used to be commit fde66badf143cde40af35e86d55acb48dc754cdd)
2000-12-13OK so I shouldn't have added cli_pipe.o to LIBSMB_OBJ.Tim Potter1-2/+3
(This used to be commit a724850eb83e61450f112c0b2e6e3492c2a72863)
2000-12-13Add libsmb/cli_lsarpc.o and rpc_client/cli_pipe.o to LIBSMB_OBJ. Not soTim Potter1-2/+3
sure about the latter... Modified SMBCACLS_OBJ (This used to be commit c130d5b0f6a23b4fe19accad8a49ac58a1a8b0b1)
2000-12-13Convert names to sids when modifying ACLs. Convert sids to names whenTim Potter1-10/+68
displaying ACLs. (This used to be commit 5001bbc64be62af1597eb334e5b530b415d62a6b)
2000-12-13Lightweight rpc client library. Uses only routines in libsmb andTim Potter1-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. (This used to be commit 129d5a155a73d926868d74f8447c1e93b429388d)
2000-12-13Server side changes for dynamic names in lsa_lookup_namesTim Potter2-20/+10
(This used to be commit 5c5c3a8a08efe8c2f36a55b1383e9d3dd9eca4a5)
2000-12-13make protoTim Potter3-19/+37
Updates for dynamic sized lookup names/sids (This used to be commit 34743c157632b1784bd15e3ca97380b1f9754e46)
2000-12-13Wrong length for unistr2 in init_q_lookup_names()Tim Potter2-27/+36
Removed some more static arrays and replaced with tallocated memory blocks. (This used to be commit 1db0f31ae00bf9c91eb7d02c96bf766d04c7bdef)
2000-12-13Two tdb bugfixes. First one - ensure that traverse lock is moved before deletingJeremy Allison1-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. (This used to be commit dd959fa325c5df8ce0407d8debea76602c8e71cf)
2000-12-13Added support for SERVICESF shared variable to change configuration fileTim Potter1-1/+4
used in lp_load(). (This used to be commit 4d80ee4f41ac3d61579c9cf23cb815d7fe5da5db)