1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

4968 Commits

Author SHA1 Message Date
Jeremy Allison
4f87f0f402 Ensure people know this is unused.
Jeremy.
-
Andrew Tridgell
c2a82a33da reverted *.* patch until someone explains to me what the test case is
that requires this.

i _know_ that this isn't the right solution and it breaks things,
which is why I am reverting now.
-
Gerald Carter
9347121ce6 merge from SAMBA_2_2 -
Gerald Carter
2b18c44843 replaced inet_aton() with inet_addr() to keep Solaris from complaining.
jerry
-
Gerald Carter
57165d1578 add pam_setcred() call to pam_auth(). Patch was submited last Oct.
jerry
-
Richard Sharpe
2b9c6d1c9e Add Makefile.in target for installing smbclientlib ... -
Richard Sharpe
7c50af3b71 Fix problems in libsmbclient with pring job struct plus add implementation
of last two print routines ...
-
Richard Sharpe
c19559a286 Implement two printing related functions and start the remaining two. -
Richard Sharpe
838cfad404 Fix some further small bugs in libsmbclient to make it pass the
Caldera test suite and start to add the printing routines.
-
Gerald Carter
0c57b05de4 merge from APPLIANCE_HEAD (mapping access_required 0x0 to
PRINTER_ACCESS_USE)
-
Jeremy Allison
8d3601c136 Merge from 2.2 - with connection fix.
Jeremy.
-
Tim Potter
2eabb7c229 Convert netbios name to dos codepage in make_nmb_name(). This allows
nmblookup and smbclient to work with i18n netbios names.
-
Tim Potter
d0c5339486 Added Baltic codepage support. From Toomas Soome <tsoome@ut.ee> -
David O'Neill
f449d871bf Changes from SAMBA_2_2:
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.
-
Tim Potter
5b38513cef Fixed duplicate free_sec_acl() call in free_sec_desc() function.
From "Richard Bollinger" <rabollinger@home.com>
-
Tim Potter
a86f219f2f Missing sys_endpwent() call in get_passwd_entries() -
Tim Potter
7a08c3a699 Fix for KOI8-R codepage from Andrey Kiselev <dron@at1895.spb.edu> -
Jeremy Allison
c4f810a758 lib/system.c: Fix for pw caching.
srv_samr.c: Fix for pw caching.
smbd/nttrans.c: Fix to allow trans create to set ACL on open.
Jeremy.
-
Tim Potter
1ec44d62ee Turned down noisy debug statement.
From "Richard Bollinger" <rabollinger@home.com>
-
Jeremy Allison
541c7df16f Fix inspited by Alan Romeril. 50% speedup in domain logins with this
change to default break response time of 10ms -> 0ms.
Jeremy.
-
David O'Neill
025f7a092a Changes from APPLIANCE_HEAD:
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.
-
David O'Neill
f24aa0b51f Changes from SAMBA_2_2:
- fix typo in cast from talloc
-
Richard Sharpe
4ae7812353 Fix some bugs and prepare for some other bug fixes ... -
Richard Sharpe
bca6b7dd20 Add an extra error code translation to clierror.c so that libsmbclient
gets some more error codes correct ...
-
David O'Neill
b9036a0778 Changes from APPLIANCE_HEAD:
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.
-
David O'Neill
bbe51d4b5f Changes from APPLIANCE_HEAD:
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.
-
David O'Neill
b4c98196fc Changes from APPLIANCE_HEAD:
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.
-
Richard Sharpe
09902d2d4a Remove an inet_aton so that this code will compile on Solaris ...
Ahhh, the sweet smell of portability.
-
Anton Blanchard
b91f906467 io_bufsize was set too large and so full length reads
and writes got broken up into one ~64k and one ~1k packet.
-
Jeremy Allison
d04ed97eca Fixes from appliance-head for pdc searches.
Jeremy.
-
Jeremy Allison
f76dc952f7 Fixed "object picker can't determine if object in domain" bug seen from W2K
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
-
Andrew Tridgell
b987ce37ce fixed pipe in smb.conf description -
Jeremy Allison
2bd4f16389 Fix insure problems with passwd caching code.
Jeremy.
-
Jeremy Allison
e0431672cc Sync up with POSIX ACL code from 2.2.
Jeremy.
-
Jeremy Allison
3712e35c54 Added modification to Richard Bollinger getpw[nam|uid] cache patch. Only
uses cache max 100 times.
Jeremy.
-
Jeremy Allison
a72d12e992 smbd/process.c: & type with 0xff for paranioa sake...
smbd/reply.c smbd/service.c: cause all "add home service" calls to go through a
winbindd aware function.
Jeremy.
-
Jeremy Allison
a958f7822e smbd/lanman.c: Fix for calling qsort with 0 number.
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.
-
David O'Neill
be61c98832 Changes from APPLIANCE_HEAD:
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.
-
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
-