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

4839 Commits

Author SHA1 Message Date
Richard Sharpe
0ea6c2473b Improve the sample GTK+ client program to make it a bit more functional.
(This used to be commit 3e8366c58ccddae24cc117d37899eb7a06a84212)
2001-02-19 02:19:03 +00:00
Richard Sharpe
8a3d6ee07e Change code around and add retry to deal with the occassional loss of NetBIOS datagrams responses, either via TDB or direct receive ...
(This used to be commit 54b0fbe98b1cbb1d9d62606c16921dbffc3a3c6d)
2001-02-19 02:17:27 +00:00
Richard Sharpe
0293869b1f Fixes to libsmbclient so it will work when browsing real Windows systems which
only respond to port 138 when dealing with NetBIOS datagrams.

We use the unexpected packed database.
(This used to be commit 620cc34015ab16d25f7ef7e13cbc3d0f669da11e)
2001-02-18 10:36:03 +00:00
Jeremy Allison
fd46817f0b Excise snprintf -> slprintf.
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.
(This used to be commit d938ad6963a2dd4eda930d508600ec1902dc2b16)
2001-02-16 19:21:18 +00:00
Jeremy Allison
62dc55a432 configure configure.in smbd/posix_acls.c smbd/dosmode.c: Fix for zero permission W2K profiles.
libsmb/cliconnect.c rpc_client/cli_login.c smbd/reply.c: codepage fixes from Tim.
Jeremy.
(This used to be commit 3ded1e6bd5f79948e437ce5b1799705945f36ad2)
2001-02-16 00:24:43 +00:00
Jeremy Allison
ddfac242e3 Patch to add UnixWare ACLs from Michael Davidson <md@sco.COM>. With some
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.
(This used to be commit f8db87b0978be981448eafd57163703e3aeec2cb)
2001-02-15 19:56:10 +00:00
Herb Lewis
a82df9c673 samba/source/nmbd/nmbd.c change remote_machine name to nmbd instead
of nmb so we write to same log file that
				was originally created as log.nmbd
samba/source/smbd/server.c	change remote_machine name to smbd instead
				of smb so we write to same log file that
				was originally created as log.smbd
samba/source/lib/interface.c	allow binding to all interface IP addresses
				even if on same subnet. This allows you to
				specify which IP's you want in interfaces
				line and use bind interfaces only
(This used to be commit 01dfd59712f3730498784d7632da8fe0113d55b6)
2001-02-15 19:50:34 +00:00
Herb Lewis
c237db1c11 DEBUG merge from 2.2 about tdb init failure.
Patch from David Collier-Brown to print permission error on spool file
creation.
(This used to be commit 8907a51743b7b9b9ad4168033fae4d44012cca37)
2001-02-15 19:33:57 +00:00
Tim Potter
7f9fbcd0ef Merge of i18n password fix for smbclient.
(This used to be commit ec217eb8fc2a9cf329a51c51ba08a04fa5b008c2)
2001-02-15 05:42:04 +00:00
Jeremy Allison
d1a672b596 Fix from "Jim McDonough" <jmcd@us.ibm.com> for s390 Linux.
Jeremy.
(This used to be commit 493c31729f515bcc5cca99ac4fa5510604518a72)
2001-02-15 00:36:23 +00:00
Tim Potter
09b993ff46 Baltic codepage fixes from Toomas Soome <tsoome@ut.ee>
(This used to be commit 1f1fcea06d658375b234bbfedcabcedd01c66a88)
2001-02-14 21:56:57 +00:00
Tim Potter
e1be2877f5 Update to Baltic codepage support.
(This used to be commit 7f1219df247553bbdb18ab9676a050aea767f40b)
2001-02-14 21:53:07 +00:00
Tim Potter
64172d82fc Merge of i18n fixes from appliance branch. Samba can now talk to a network
with a PDC that has international netbios name and domain name.  There's
still quite a bit of i18n stuff to fix though...
(This used to be commit 79045bd72ace9144e7dd73785b1d10a71b0d15aa)
2001-02-14 05:34:50 +00:00
Jeremy Allison
da20d4e5df It compiles for me now :-). rpc_server/srv_lsa.c - added fix to allow w2k
clients to join a Samba domain - odd or even domain name length. Needs more testing.
Jeremy.
(This used to be commit 408672d38261e34cc3714200617b35464d88f931)
2001-02-13 16:28:48 +00:00
Gerald Carter
3d528fef2f change pstrcpy() in setup_pwret() to fstrcpy() since we are
using fstrings.  Spotted by Elrond.  Thanks :-)




jerry
(This used to be commit a55a4fea9728550c4d28b05910c0b7d5080714b3)
2001-02-13 07:17:07 +00:00
Jeremy Allison
14ac22b4b6 Fixup missing tests on code imported from tng.
Jeremy.
(This used to be commit 41d46a495b9e223d05bfc00e76612149531ec69a)
2001-02-13 00:32:07 +00:00
Jeremy Allison
b94ef4b67c Fix for DACL/SACL masking typo - spotted by medha@pezman.austin.ibm.com.
Jeremy.
(This used to be commit 8fc6bc170fd3dd1fd9437d4acc94bd251c35d544)
2001-02-12 22:37:40 +00:00
Jeremy Allison
94fc44a93c Merge of JohnR's changes to appliance-head, JF's changes to 2.2,
updated the POSIX_ACL code to be in sync.
Jeremy.
(This used to be commit c0517d6f4e3079feca1309fd1ea7b21e83f0de02)
2001-02-12 16:18:02 +00:00
Richard Sharpe
b4b387e31b Fix calls to smbc_init in testsmbc.c and tree.c
(This used to be commit 244edad065a48c110d73617e6c76bdae0ab6885d)
2001-02-12 12:31:05 +00:00
Richard Sharpe
167a7d76d9 Added commented/documented version of libsmbclient.h and fixed up a small
problem in libsmbclient.c where we no longer pass the workgroup.
(This used to be commit 3c6611434601a45ba448f0313397104c7cea616c)
2001-02-12 12:17:54 +00:00
Tim Potter
13577addd7 Updated proto.h
(This used to be commit 0102eea147d45c410842a25705b7be9fc3892cca)
2001-02-11 22:36:20 +00:00
Jeremy Allison
35d9695c76 Ensure people know this is unused.
Jeremy.
(This used to be commit 4f87f0f4027a0b78e091b5daaf6fb907b5811044)
2001-02-11 21:02:11 +00:00
Andrew Tridgell
b652abf923 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.
(This used to be commit c2a82a33da1b717b16fb71e597587c806bcf68b3)
2001-02-08 23:33:50 +00:00
Gerald Carter
01634eaf12 merge from SAMBA_2_2
(This used to be commit 9347121ce6888afeae3cdf256b5f0c5b9c58b0bc)
2001-02-08 20:47:09 +00:00
Gerald Carter
607ea0d6fa replaced inet_aton() with inet_addr() to keep Solaris from complaining.
jerry
(This used to be commit 2b18c4484313e77d98c8a7524cf9f5cc2c924dc2)
2001-02-08 18:41:01 +00:00
Gerald Carter
b5eb73d9aa add pam_setcred() call to pam_auth(). Patch was submited last Oct.
jerry
(This used to be commit 57165d1578eefa270d5c0bd8697a774eb8cb06cf)
2001-02-08 18:39:36 +00:00
Richard Sharpe
a44daf2961 Add Makefile.in target for installing smbclientlib ...
(This used to be commit 2b9c6d1c9e278caccd202c1d3b07690c0423acc1)
2001-02-07 19:41:19 +00:00
Richard Sharpe
5455f2896f Fix problems in libsmbclient with pring job struct plus add implementation
of last two print routines ...
(This used to be commit 7c50af3b71eeedfef8ed0d5771c2dc578fa95741)
2001-02-06 19:25:12 +00:00
Richard Sharpe
ca03ad79cf Implement two printing related functions and start the remaining two.
(This used to be commit c19559a286c3ec6dedefbd2423aa5738edd9ba41)
2001-02-05 13:02:20 +00:00
Richard Sharpe
2fd7e6e6a0 Fix some further small bugs in libsmbclient to make it pass the
Caldera test suite and start to add the printing routines.
(This used to be commit 838cfad404ef648ee7909f449264afa4db60fa3b)
2001-02-04 19:48:26 +00:00
Gerald Carter
deb638a7ac merge from APPLIANCE_HEAD (mapping access_required 0x0 to
PRINTER_ACCESS_USE)
(This used to be commit 0c57b05de46f04dda941fcb4ba4f2a5a88b8dc9f)
2001-02-03 23:45:59 +00:00
Jeremy Allison
01d45db46b Merge from 2.2 - with connection fix.
Jeremy.
(This used to be commit 8d3601c1366b5f0a9f5772e9797ff54a2250dbfd)
2001-02-03 17:19:10 +00:00
Tim Potter
f9a2be7822 Convert netbios name to dos codepage in make_nmb_name(). This allows
nmblookup and smbclient to work with i18n netbios names.
(This used to be commit 2eabb7c229fb8a64d47757f291b327f5b7f26b55)
2001-02-02 17:42:00 +00:00
Tim Potter
5d67bb9baf Added Baltic codepage support. From Toomas Soome <tsoome@ut.ee>
(This used to be commit d0c5339486c38b988d39fbf83bfb98c1258dd98d)
2001-02-02 17:31:33 +00:00
David O'Neill
4a9fb6b6b7 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.
(This used to be commit f449d871bf0c385d8c57de2d795e1d7ef7f256f7)
2001-01-31 18:34:49 +00:00
Tim Potter
92e347379a Fixed duplicate free_sec_acl() call in free_sec_desc() function.
From "Richard Bollinger" <rabollinger@home.com>
(This used to be commit 5b38513cef0cfeff09f54f855f9ace292050375c)
2001-01-31 17:16:09 +00:00
Tim Potter
fd3e20a278 Missing sys_endpwent() call in get_passwd_entries()
(This used to be commit a86f219f2f63f63e43d5b99e3d190a536954d400)
2001-01-31 17:11:58 +00:00
Tim Potter
2537e23620 Fix for KOI8-R codepage from Andrey Kiselev <dron@at1895.spb.edu>
(This used to be commit 7a08c3a699142fa8079c2736ed70aef0528ad578)
2001-01-31 17:09:13 +00:00
Jeremy Allison
4d6b6eb94a 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.
(This used to be commit c4f810a7588a2faf41f4222dc77678c53ab1dec0)
2001-01-31 05:14:31 +00:00
Tim Potter
66f6ad9729 Turned down noisy debug statement.
From "Richard Bollinger" <rabollinger@home.com>
(This used to be commit 1ec44d62eed67d88f59417d20680a073918626bd)
2001-01-30 17:08:44 +00:00
Jeremy Allison
8e18bd58f7 Fix inspited by Alan Romeril. 50% speedup in domain logins with this
change to default break response time of 10ms -> 0ms.
Jeremy.
(This used to be commit 541c7df16fff03f98c253a46b501574cafb4469f)
2001-01-30 00:37:12 +00:00
David O'Neill
2506c61ab3 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.
(This used to be commit 025f7a092ad258ff774e3f5e53737f8210cc8af6)
2001-01-29 21:34:08 +00:00
David O'Neill
9ec19336e5 Changes from SAMBA_2_2:
- fix typo in cast from talloc
(This used to be commit f24aa0b51f06b8181b46bb1d2e73d91e5159fe1c)
2001-01-29 21:32:45 +00:00
Richard Sharpe
b370588b9c Fix some bugs and prepare for some other bug fixes ...
(This used to be commit 4ae7812353c0ed088fb1ae4cd79c99daab363d1c)
2001-01-29 09:34:24 +00:00
Richard Sharpe
7eea846f52 Add an extra error code translation to clierror.c so that libsmbclient
gets some more error codes correct ...
(This used to be commit bca6b7dd20839a15aa97b4e6ba03c60eab9ed237)
2001-01-29 04:52:12 +00:00
David O'Neill
221926402a 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.
(This used to be commit b9036a07781724d58b34da3b6e876dd28d5f70a6)
2001-01-26 18:13:17 +00:00
David O'Neill
c7a7dea333 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.
(This used to be commit bbe51d4b5f6da4c7668214511e25eff098bf03b1)
2001-01-25 20:15:32 +00:00
David O'Neill
fcfaebda7f 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.
(This used to be commit b4c98196fc65e8b3bce928296e854987622eae78)
2001-01-25 16:36:42 +00:00
Richard Sharpe
4f7b2b7083 Remove an inet_aton so that this code will compile on Solaris ...
Ahhh, the sweet smell of portability.
(This used to be commit 09902d2d4a51b134190861fbb3ddaabcae5bc1bb)
2001-01-25 13:47:13 +00:00
Anton Blanchard
c15a054b21 io_bufsize was set too large and so full length reads
and writes got broken up into one ~64k and one ~1k packet.
(This used to be commit b91f9064673a8ff11a3c0ea2ac40c3f39fa2a2d7)
2001-01-25 06:40:44 +00:00