summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix inspited by Alan Romeril. 50% speedup in domain logins with thisJeremy Allison2001-01-302-1/+4
| | | | | change to default break response time of 10ms -> 0ms. Jeremy.
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-2910-508/+672
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Changes from SAMBA_2_2:David O'Neill2001-01-291-1/+1
| | | | - fix typo in cast from talloc
* Fix some bugs and prepare for some other bug fixes ...Richard Sharpe2001-01-291-6/+67
|
* Add an extra error code translation to clierror.c so that libsmbclientRichard Sharpe2001-01-291-1/+2
| | | | gets some more error codes correct ...
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-261-1/+23
| | | | | | | | source/printing/nt_printing.c - fix for Win2k sending NULL devicemode in setprinter calls which was making NT4 grumpy. The solution is to never set a NULL devicemode if we previously had a valid one in the printer's TDB entry.
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-251-20/+11
| | | | | | | | | | source/rpc_server/srv_spoolss_nt.c - Changed the se_access_check() call in _spoolss_open_printer_ex() to a print_access_check(). This allows the 'printer admins' smb.conf and other permission override parameters to affect the result of a printer open. - Don't perform access check when opening a handle on a print server as it breaks browsing the Printers folder.
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-252-0/+11
| | | | | | | | | source/smbd/server.c source/nmbd/nmbd.c - Fixed a very subtle bug with signals. Seems that POSIX requires that the signal mask be inhereted. So, if you happen to kick off smbd/nmbd from code that has the mask set on SIGUSR1, you lose messages.
* Remove an inet_aton so that this code will compile on Solaris ...Richard Sharpe2001-01-251-5/+3
| | | | Ahhh, the sweet smell of portability.
* io_bufsize was set too large and so full length readsAnton Blanchard2001-01-251-1/+1
| | | | and writes got broken up into one ~64k and one ~1k packet.
* Fixes from appliance-head for pdc searches.Jeremy Allison2001-01-252-19/+17
| | | | Jeremy.
* Fixed "object picker can't determine if object in domain" bug seen from W2KJeremy Allison2001-01-255-503/+620
| | | | | | | 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
* fixed pipe in smb.conf descriptionAndrew Tridgell2001-01-251-5/+1
|
* Fix insure problems with passwd caching code.Jeremy Allison2001-01-241-6/+10
| | | | Jeremy.
* Sync up with POSIX ACL code from 2.2.Jeremy Allison2001-01-242-11/+54
| | | | Jeremy.
* Added modification to Richard Bollinger getpw[nam|uid] cache patch. OnlyJeremy Allison2001-01-241-2/+14
| | | | | uses cache max 100 times. Jeremy.
* smbd/process.c: & type with 0xff for paranioa sake...Jeremy Allison2001-01-244-34/+46
| | | | | | smbd/reply.c smbd/service.c: cause all "add home service" calls to go through a winbindd aware function. Jeremy.
* smbd/lanman.c: Fix for calling qsort with 0 number.Jeremy Allison2001-01-243-200/+344
| | | | | | | smbd/nttrans.c: Realloc mem fixes based on those that went into trans2.c smbd/process.c: Move to a table based dispatch, based on a comment from Andrew about Antons work. Jeremy.
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-241-8/+17
| | | | | | | | | source/printing/printing.c - When deleting a job, remove the entry from the back-end database if the delete succeeded. This stops a spurious permission denied message appearing if the forced database update is within the lpq cache timeout and doesn't actually delete the job from the database.
* getpw[nam|uid] caching patch from "Richard Bollinger"Gerald Carter2001-01-241-7/+37
| | | | | | | | <rabollinger@home.com> jerry
* fixed typo in debug statementGerald Carter2001-01-241-2/+2
| | | | jerry
* Fix a problem with smbc_unlink on directories where it was returning EACCESRichard Sharpe2001-01-241-1/+39
| | | | | instead of EPERM and a problem with SMBC_OPEN where it ignored an error from the underlying cli_open routine and cheerfully returned a bogus FD.
* Fix from Kenichi Okuyama for memory leak on Realloc fail.Jeremy Allison2001-01-231-21/+51
| | | | Jeremy.
* increase MAX_POL_HNDS (merge from 2.2)Gerald Carter2001-01-231-1/+1
| | | | --jerry
* only add the service name and client machine name to list of users namesGerald Carter2001-01-232-3/+11
| | | | | | | for a session when in share mode security --jerry
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-236-441/+494
| | | | | | | | | | | | | | | | | | | | 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".
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-232-4/+3
| | | | | | | | | | | | source/rpc_server/srv_spoolss_nt.c - remove redundant srv_spoolss_sendnotify() calls from _spoolss_startdocprinter() and _spoolss_enddocprinter(), as its functionality is already covered in print_job_start() and print_job_end() source/printing/printing.c - force a print_queue_update() prior to print queue purge so that all jobs are purged.
* Some systems don't support SEC_RIGHTS_MAXIMUM_ALLOWED for lsa_open_policy()Tim Potter2001-01-231-1/+5
| | | | but NT sends 0x2000000 so we might as well do it too.
* Patch to get smbcacls and rpcclient to compile together.Tim Potter2001-01-231-4/+4
|
* include/vfs.h:Jeremy Allison2001-01-2311-449/+819
| | | | | | | | | | | | | 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-221-1/+1
| | | | | source/printing/printing.c - remove unused variable
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-222-20/+37
| | | | | | | | | | source/smbd/lanman.c - cleanup and bug fix for win9x print queue purge. source/printing/printing.c - cleanup and bug fix for win9x print queue purge. - print_job_end() changed to cleanup spool file in the event of a failure returned from the print_run_command()
* Changes from SAMBA_2_2:David O'Neill2001-01-221-0/+3
| | | | | | docs/yodldocs/smb.conf.5.yo - add comment about ability to include environment variables in smb.conf. Added just to mention it, probably needs improvement.
* Small bugfix from Kenichi Okuyama <okuyamak@dd.iij4u.or.jp>:David O'Neill2001-01-221-1/+1
| | | | | -FN_GLOBAL_INTEGER(lp_min_wins_ttl, &Globals.max_wins_ttl) +FN_GLOBAL_INTEGER(lp_min_wins_ttl, &Globals.min_wins_ttl)
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-192-2/+4
| | | | | | | | 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-192-20/+45
| | | | | | | | | | | | | | | | | | source/printing/nt_printing.c - use se_create_child_secdesc() to create appropriate security descriptor when performing print job admin security checks. source/printing/printing.c - Use JOB_ACCESS_ADMINISTER instead of PRINTER_ACCESS_ADMINISTER in print_job_{delete,pause,resume}() - If stat'ing the job file fails, delete the job from printing.tdb - In print_job_end() check lpq cache time and do a print_queue_update() This prevents printing.tdb from growing when using NT/2K clients, and there isn't someone pressing F5 in a port monitor window. - In print_queue_resume() check lpq cache time and do a print_queue_update() Probably should do it for print_job_resume() too.
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-191-28/+119
| | | | | | | | | | | | | | | | source/lib/util_seaccess.c - added se_create_child_secdesc() function which takes a parent (container) security descriptor and creates a security descriptor which has the inheritance flags for each ACE applied. In NT a print job is a child object of a printer so deleting and pausing/resuming jobs requires a check against the child security descriptor, not the parent. The values seen in NT printer security descriptors now all fit together in a natural and elegant way which is always nice. - Removed #ifdef'ed out portion of check_ace() when the INHERIT_ONLY flag is set as the se_create_child_secdesc() function now creates a security descriptor which can be used without this hack.
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-181-1/+1
| | | | | | source/rpc_server/srv_spoolss_nt.c - Fixed dereference of NULL pointer in security descriptor notification used by Win2K printers.
* Get the logic right thistime :-(.Jeremy Allison2001-01-171-2/+3
| | | | Jeremy.
* Typo in new file_chmod code caused file attribute changes to fail.Jeremy Allison2001-01-171-1/+1
| | | | | THIS NEEDS TO BE ADDED TO APPLIANCE-HEAD. Jeremy.
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-175-519/+874
| | | | | | | | | | | | | | | | 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.
* Cleanup of Get_Pwnam(). Adds debugging, cleans up the allow_changeDavid O'Neill2001-01-171-48/+45
| | | | codepath.
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-171-3/+4
| | | | | source/smbd/lanman.c - Change fill_printq_info() to fix corrupted 9X/ME printer comment
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-179-45/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | source/rpc_server/srv_spoolss_nt.c - Unrolled construct_notify_jobs_info() loop to only fetch printer info_2 structure once rather than num_print_jobs times. - convert command to unix codepage. - remove lp_remove_service() call as it prevents lp_killservice() from working. - Modified some DEBUG and DEBUGADD statements. source/param/loadparm.c source/param/params.c - change printer, preload, auto services to FLAG_DOS_STRING, reverted earlier changes to szPrintername et al, add comments. source/printing/load.c - fix bug with lp_auto_services() and strtok() source/printing/nt_printing.c source/printing/printing.c - remove redundant test that used SERVICE(snum) source/printing/pcap.c - add unix_to_dos() calls, add notes wrt FIXMEs for xxx_printer_fn() functions. source/web/swat.c - added FIXME comment. source/smbd/service.c - added comment re: dos codepage
* Set the tdb->map_ptr to NULL if mmap() returns -1.Tim Potter2001-01-161-0/+3
|
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-161-0/+2
| | | | | | source/param/loadparm.c - changed lp_add_printer() to convert szPrintername and comment from unix to DOS codepage.
* Fix for no master browser present.Tim Potter2001-01-161-3/+4
|
* Some ugly mucking around to get the new rpcclient compiling and linkingTim Potter2001-01-151-2/+10
| | | | with the new samr code and have prototypes working and smbd linking.
* New proto and some small changes to rpc_samr.hTim Potter2001-01-152-17/+113
|
* rpcclient functions for remaining samr and lsa functions. All functionsTim Potter2001-01-153-25/+458
| | | | | now pass through insure except for some of the dodgy spoolss prs weirdness.