summaryrefslogtreecommitdiffstats
path: root/source/include
Commit message (Collapse)AuthorAgeFilesLines
...
* Excise snprintf -> slprintf.Jeremy Allison2001-02-162-0/+25
| | | | | | | srv_samr.c: duplicate gid fix. srv_spoolss_nt.c: Merge of JF's work. uid.c: Fix for returning names when a PDC. Jeremy.
* Patch to add UnixWare ACLs from Michael Davidson <md@sco.COM>. With someJeremy Allison2001-02-151-0/+39
| | | | | | | small modifications, this code may also work on Solaris, as they are derived from the same SVR4 codebase. When the Samba Solaris box is up and running again I will test this. Jeremy.
* Merge of i18n fixes from appliance branch. Samba can now talk to a networkTim Potter2001-02-141-1/+1
| | | | | with a PDC that has international netbios name and domain name. There's still quite a bit of i18n stuff to fix though...
* Merge of JohnR's changes to appliance-head, JF's changes to 2.2,Jeremy Allison2001-02-122-24/+115
| | | | | updated the POSIX_ACL code to be in sync. Jeremy.
* Added commented/documented version of libsmbclient.h and fixed up a smallRichard Sharpe2001-02-121-160/+692
| | | | problem in libsmbclient.c where we no longer pass the workgroup.
* Updated proto.hTim Potter2001-02-111-415/+415
|
* Fix problems in libsmbclient with pring job struct plus add implementationRichard Sharpe2001-02-061-0/+12
| | | | of last two print routines ...
* Implement two printing related functions and start the remaining two.Richard Sharpe2001-02-051-2/+2
|
* Fix some further small bugs in libsmbclient to make it pass theRichard Sharpe2001-02-041-1/+23
| | | | Caldera test suite and start to add the printing routines.
* Changes from SAMBA_2_2:David O'Neill2001-01-311-1/+1
| | | | | | | | | | | | source/rpc_server/srv_spoolss_nt.c source/rpc_server/srv_spoolss.c source/include/proto.h - correct checking of access_required in openprinterex as talked with John R. and Jerry. You can only do server stuff (adding printers, changing forms, ..) if you're root or if user is in printer admin list. Printers options are grayed if you don't have the PRINTER_ADMINISTER flag in the secdesc.
* lib/system.c: Fix for pw caching.Jeremy Allison2001-01-312-0/+5
| | | | | | srv_samr.c: Fix for pw caching. smbd/nttrans.c: Fix to allow trans create to set ACL on open. Jeremy.
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-291-417/+419
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | source/include/proto.h - make proto source/printing/nt_printing.c source/rpc_server/srv_spoolss_nt.c - Fix for the overwriting of printerdata entries when WinNT and Win2k are modifying printer parameters on PCL printers. Turns out that Win2k creates a printer with a NULL devmode entry and then expects to set it on *OPEN* (yes this is insane). So we cannot return a "default" devmode for a printer - and we must allow an open to set it. source/tdb/tdb.c - Show freelist in an easier format. Show total free. - When storing a new record, allocate memory for the key + data before the tdb_allocate() as if the malloc fails a (sparse) hole is left in the tdb. source/tdb/tdbtool.c - Show freelist in an easier format. Show total free. source/tdb/Makefile - cleaned up Makefile dependancies source/smbd/lanman.c - Fix for Win9x corrupting it's own parameter string. source/printing/printfsp.c source/printing/printing.c source/rpc_server/srv_spoolss_nt.c source/smbd/close.c - Added normal close parameter into print_fsp_end() which treats an abnormal close as error condition and deletes the spool file.
* Fixed "object picker can't determine if object in domain" bug seen from W2KJeremy Allison2001-01-252-424/+442
| | | | | | | clients. Did this by importing Samba-TNG code that correctly handles LSA lookups. *MANY* thanks to Luke, Sander, Elrond and the rest of the TNG gang ! Jeremy
* smbd/process.c: & type with 0xff for paranioa sake...Jeremy Allison2001-01-241-0/+1
| | | | | | smbd/reply.c smbd/service.c: cause all "add home service" calls to go through a winbindd aware function. Jeremy.
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-232-415/+417
| | | | | | | | | | | | | | | | | | | | source/rpc_server/srv_spoolss_nt.c - add an access check to _spoolss_deleteprinter() to stop random users and passers by from deleting printers. source/lib/messages.c - converted global msg_all struct to a local in message_send_all() function. source/include/smb.h - added a success error code to the spoolss return codes. source/include/proto.h source/param/loadparm.c source/printing/printing.c - Added new parameter "total print jobs" to limit the total number of print jobs across all queues. Currently individual queues are limited by "max print jobs".
* include/vfs.h:Jeremy Allison2001-01-232-415/+427
| | | | | | | | | | | | | smbd/vfs-wrap.c: smbd/vfs.c: Added fchmod_acl and chmod_acl. lib/substitute.c: smbd/lanman.c: smbd/open.c: smbd/process.c: smbd/reply.c: smbd/service.c: Removed sessetup_user variable. Added current_user_info struct which conatins domain info etc. Added '%D' for client domain parameter. Jeremy.
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-191-0/+2
| | | | | | | | source/include/proto.h - make proto source/rpc_server/srv_spoolss_nt.c - clean up incorrect debug statement
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-172-417/+418
| | | | | | | | | | | | | | | | source/include/proto.h source/include/rpc_spoolss.h source/rpc_parse/parse_spoolss.c source/rpc_server/srv_spoolss.c source/rpc_server/srv_spoolss_nt.c - speedups in printer queue enumeration - still room for improvement. The construct_dev_mode() still creates and destroys a printer info_2 structure every time it is called. - fixed job->devmode memory leak - converted printer job notification routines to use tallocated memory rather than a fixed 2K buffer. This reduces the memory requirements of a 4500 job queue enumeration from 90MB to about 16MB.
* New proto and some small changes to rpc_samr.hTim Potter2001-01-152-17/+113
|
* Some more bug fixes plus implementations of smbc_mkdir and smbc_rmdir,Richard Sharpe2001-01-121-0/+12
| | | | | | both tested ... More later.
* Many bug fixes to the libsmbclient.c code plusRichard Sharpe2001-01-121-2/+9
| | | | | | | - an implementation of smbc_readdir - extensions to tree.c to show files in a second window - changes to auth_fn to provide buffers for username, password, etc from caller rather than callee
* Fixed typo with acl_set_fd() not needing an ACL_TYPE_T parameter.Jeremy Allison2001-01-112-2/+3
| | | | | Ensure HAVE_NO_ACLS is set in configure if ACL support not selected. Jeremy
* New makefile and proto for rpcclient.Tim Potter2001-01-111-123/+39
|
* make protoTim Potter2001-01-111-53/+51
|
* Merge of various fixes from the tng headers.Tim Potter2001-01-114-143/+22
|
* First compiling version of code that sets NT ACLs as POSIX ACLs.Jeremy Allison2001-01-111-0/+16
| | | | | Now the debugging starts.... :-). Jeremy.
* rpc_server/srv_samr.c:Jeremy Allison2001-01-111-413/+421
| | | | | | | | | | | | smbd/reply.c: Added fix needed for appliances. When using winbindd - a new user may exist (from winbind) but have no home directory. Extend add user script so it is called with a %H substitution when a user exists but their home directory does not. Thanks to Alex Win at VA Linux for finding this one and testing the fix. libsmb/clidgram.c: Fixed missing return statements. smbd/uid.c: Fixed typo in debug. Jeremy.
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-101-0/+1
| | | | | | | | source/include/proto.h source/param/loadparm.c source/passdb/passdb.c source/rpc_server/srv_samr.c - add support for "hide local users" option to HEAD.
* Fix from "B.V.Dean" <B.V.Dean@ukc.ac.uk> to add "dos filemode" parameterJeremy Allison2001-01-091-0/+1
| | | | | | to allow a chmod to be done if the user has write access to a file, just like Windows allows. Off by default (compare with "dos filetimes" parameter). Jeremy.
* More fixes and implementation bits and pieces for libsmbclientRichard Sharpe2001-01-071-0/+4
|
* Fix proto.h ...Richard Sharpe2001-01-061-3/+4
|
* Fix a small type in libsmbclient.h ...Richard Sharpe2001-01-051-1/+1
|
* Arrgh, forgot to update proto.h with all the changes I have been making.Richard Sharpe2001-01-051-12/+6
| | | | Here is an updated one.
* The latest changes to libsmbclient ...Richard Sharpe2001-01-051-2/+23
| | | | | | | | It can now do a directory listing for workgroups, servers, and shares, and, with a bit more effort, it will be able to list directories and files. I also does not request a username and password for the IPC$ share, but it should if the first attempt to connect fails.
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-043-412/+430
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | source/Makefile.in - changes to ctags and etags rules that somehow got lost along the way. source/include/proto.h - make proto source/smbd/sec_ctx.c source/smbd/password.c - merge debugs for debugging user groups and NT token stuff. source/lib/util_str.c - capitalise domain name returned from parse_domain_user() source/nsswitch/wb_client.c - fix broken conditional in debug statement. source/include/rpc_secdes.h source/include/rpc_spoolss.h source/printing/nt_printing.c source/lib/util_seaccess.c - fix printer permission bugs related to ACE masks for printers. This adds mapping of generic access rights to object specific rights for NT printers. Still need to work out whether or not to ignore ACEs with certain flags set, though. See comments in util_seaccess.c:check_ace() for details. source/printing/nt_printing.c source/printing/printing.c - use PRINTER_ACCESS_ADMINISTER instead of JOB_ACCESS_ADMINISTER until we sort out printer/printjob permission stuff.
* First pass at the libsmbclient code ...Richard Sharpe2000-12-261-0/+154
| | | | | | | | | | | | 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.
* make protoTim Potter2000-12-211-0/+1
|
* implemented a much nicer name_status() interface. It now returns aAndrew Tridgell2000-12-202-2/+13
| | | | | | | 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)
* Fixed bug found by Gerald. If a Samba server joins a domain and is setJeremy Allison2000-12-191-1/+1
| | | | | | | | 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.
* Split the one sys_acl_free call into sys_acl_free_TYPE calls, to allowJeremy Allison2000-12-191-5/+7
| | | | | easier wrapping of non-POSIX ACL interfaces. Jeremy.
* Added lock backouts on fail.Jeremy Allison2000-12-151-3/+0
| | | | | | | | | | 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-151-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | 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 leaks in lsa_XX calls. Fixed memory leaks in smbcacls. MergedJeremy Allison2000-12-151-3/+3
| | | | | | in fixes from appliance-head and 2.2. Fixed multiple connection.tdb open problem. Jeremy.
* Renamed parameters and variables called acl to the_acl as it conflictsTim Potter2000-12-141-4/+4
| | | | with a Solaris system call.
* Added proto definition for new RPC calls.Jeremy Allison2000-12-131-0/+15
| | | | | Added printing fix from appliance-head. Jeremy.
* Server side changes for dynamic names in lsa_lookup_namesTim Potter2000-12-131-15/+0
|
* make protoTim Potter2000-12-133-19/+37
| | | | Updates for dynamic sized lookup names/sids
* Merged in Tim's changes : Removed static limit of MAX_LOOKUP_SIDS in rpc ↵Jeremy Allison2000-12-123-27/+25
| | | | | | | 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-122-383/+476
| | | | | | | (correctly) when the NT_USER_TOKEN is *created*. Jeremy.
* type for client_info structGerald Carter2000-12-111-2/+2
|