1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

4780 Commits

Author SHA1 Message Date
Gerald Carter
158430ba6a getpw[nam|uid] caching patch from "Richard Bollinger"
<rabollinger@home.com>



jerry
-
Gerald Carter
a28d384e4d fixed typo in debug statement
jerry
-
Richard Sharpe
68614bac5a Fix a problem with smbc_unlink on directories where it was returning EACCES
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.
-
Jeremy Allison
6e56833225 Fix from Kenichi Okuyama for memory leak on Realloc fail.
Jeremy.
-
Gerald Carter
a946d13e0c increase MAX_POL_HNDS (merge from 2.2)
--jerry
-
Gerald Carter
22d6c2c163 only add the service name and client machine name to list of users names
for a session when in share mode security


--jerry
-
David O'Neill
02f154e729 Changes from APPLIANCE_HEAD:
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".
-
David O'Neill
0ccc552203 Changes from APPLIANCE_HEAD:
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.
-
Tim Potter
394e17645b Some systems don't support SEC_RIGHTS_MAXIMUM_ALLOWED for lsa_open_policy()
but NT sends 0x2000000 so we might as well do it too.
-
Tim Potter
5a9870f22d Patch to get smbcacls and rpcclient to compile together. -
Jeremy Allison
2844ec3d51 include/vfs.h:
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.
-
David O'Neill
2d09b53b3a Changes from APPLIANCE_HEAD:
source/printing/printing.c
		- remove unused variable
-
David O'Neill
0235fbef37 Changes from APPLIANCE_HEAD:
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()
-
David O'Neill
50c5ee3c7b Changes from SAMBA_2_2:
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.
-
David O'Neill
0233ba4426 Small bugfix from Kenichi Okuyama <okuyamak@dd.iij4u.or.jp>:
-FN_GLOBAL_INTEGER(lp_min_wins_ttl, &Globals.max_wins_ttl)
+FN_GLOBAL_INTEGER(lp_min_wins_ttl, &Globals.min_wins_ttl)
-
David O'Neill
f07f4e9c7b Changes from APPLIANCE_HEAD:
source/include/proto.h
		- make proto

	source/rpc_server/srv_spoolss_nt.c
		- clean up incorrect debug statement
-
David O'Neill
0068b7741f Changes from APPLIANCE_HEAD:
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.
-
David O'Neill
f125b9a944 Changes from APPLIANCE_HEAD:
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.
-
David O'Neill
1b6efd1894 Changes from APPLIANCE_HEAD:
source/rpc_server/srv_spoolss_nt.c
        - Fixed dereference of NULL pointer in security descriptor
          notification used by Win2K printers.
-
Jeremy Allison
83596034cd Get the logic right thistime :-(.
Jeremy.
-
Jeremy Allison
b92ccc0c8e Typo in new file_chmod code caused file attribute changes to fail.
THIS NEEDS TO BE ADDED TO APPLIANCE-HEAD.
Jeremy.
-
David O'Neill
7853b27bc1 Changes from APPLIANCE_HEAD:
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.
-
David O'Neill
767f73aee6 Cleanup of Get_Pwnam(). Adds debugging, cleans up the allow_change
codepath.
-
David O'Neill
acbed88a19 Changes from APPLIANCE_HEAD:
source/smbd/lanman.c
        - Change fill_printq_info() to fix corrupted 9X/ME printer comment
-
David O'Neill
7b774b72c2 Changes from APPLIANCE_HEAD:
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
-
Tim Potter
cef7f58ac5 Set the tdb->map_ptr to NULL if mmap() returns -1. -
David O'Neill
6a1f55b325 Changes from APPLIANCE_HEAD:
source/param/loadparm.c
        - changed lp_add_printer() to convert szPrintername and comment
          from unix to DOS codepage.
-
Tim Potter
24c78fdf5f Fix for no master browser present. -
Tim Potter
6d61f11788 Some ugly mucking around to get the new rpcclient compiling and linking
with the new samr code and have prototypes working and smbd linking.
-
Tim Potter
7f31d4ab1d New proto and some small changes to rpc_samr.h -
Tim Potter
76f08426a0 rpcclient functions for remaining samr and lsa functions. All functions
now pass through insure except for some of the dodgy spoolss prs
weirdness.
-
Tim Potter
13e4fd1d84 Added remaining samr functions needed by winbindd.
Added #define/#undef NEW_NTDOMAIN symbols.
-
Jeremy Allison
180e4a9cd0 Fixes for POSIX ACLS. ACL merge code.
Jeremy.
-
Jeremy Allison
6fb5eb8b1e Updated from 2.2.
Jeremy.
-
David O'Neill
59229b9025 Changes from APPLIANCE_HEAD:
source/rpc_parse/parse_lsa.c
        - off by one unistr length bug in init_lsa_trans_name()

    source/lib/util_sid.c
        - resolve more BUILTIN sid values to names.

    source/nsswitch/wb_client.c
        - fix typo in debug message
        - set errno on error so we don't get bogus value from last failure.

    source/rpc_server/srv_spoolss_nt.c
        - add debug to track number of open printer handles for ease of
          tracking handle leaks in the future.

    source/rpc_server/srv_lsa.c
        - fix off-by-one string bug.  This was preventing NT from
          displaying names for well-know SIDs in printer permissions
          dialog.
-
Tim Potter
d7920a670b Compile fix for smbw_dir_add function. -
Andrew Tridgell
30fb31a3ab removed unnecessary process_exists() call in message_send_pid()
it slows us down and doesn't gain anything
-
Richard Sharpe
5629b097d4 Fixed bugs relating to Win2K and the need for a codepage so that unicode
strings can be handled correctly.
-
Herb Lewis
b04bd9ea24 merge from 2.0 branch for installing Using Samba book files -
Tim Potter
635db9b601 Pass correctly formatted args to cli_spoolss_open_printer_ex() -
Tim Potter
a125eba0aa Printer name unistr is null terminated in make_spoolss_q_open_printer_ex() -
Tim Potter
079f46aca4 Memory leak fixes and uninitialised variables spotted by insure. -
Tim Potter
8072ee62b0 Memory leak fixes spotted by insure. -
Richard Sharpe
66bb40153a Some more bug fixes plus implementations of smbc_mkdir and smbc_rmdir,
both tested ...

More later.
-
Richard Sharpe
7f559c1a73 Many bug fixes to the libsmbclient.c code plus
- 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
-
Tim Potter
42674cc616 Use MAXIMUM_ALLOWED_ACCESS when doing a cli_spoolss_open_printer_ex() -
David O'Neill
5358f8abc1 Changes from APPLIANCE_HEAD:
source/tests/crypttest.c
        - another one missed from a while ago: Add back tests/crypttest.c
          so that we can check for truncated crypt on those systems that it
          is relevant for and we avoid setting if for those systems that it
          is not true for.  (Originally from SAMBA_2_2, Nov 13th 2000)
-
Tim Potter
793153ebde RPC server fixes for RPC client changes merged from TNG. -
Tim Potter
e5b078ee7c Removed link errors between rpcclient and smbd. -
Jeremy Allison
523c919356 Fixed typo with acl_set_fd() not needing an ACL_TYPE_T parameter.
Ensure HAVE_NO_ACLS is set in configure if ACL support not selected.
Jeremy
-