1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
Commit Graph

5678 Commits

Author SHA1 Message Date
Jeremy Allison
95d1969e7e param/loadparm.c: Fix for bad volume label, found by TAKAHASHI Motonobu
Samba Users Group Japan. Ensure same as in 2.2.x codebase.
Jeremy.
(This used to be commit 5a5d33b946)
2001-06-28 23:21:43 +00:00
Christopher R. Hertel
9e7896144a Added info to some of the debug messages to get a better handle on a problem
people are reporting regarding multiple responses to queries on <1D> names.

There should only ever be one LMB but some users are seeing multiple replies
to queries for the LMB name.  This is probably due to nodes on the LAN that
have NetBIOS over NetBEUI and/or IPX enabled.  Previously, the debug message
did not include the IP address associated with the name.  It *did* include
the source address of the packet, but in the examples I've seen all of these
were the same, eg:

[2000/06/22 11:58:25, 0] nmbd/nmbd_namequery.c:query_name_response(93)
query_name_response: Multiple (2) responses received for a query on subnet
129.130.10.136 for name NT.CIS.KSU.EDU<1d>. This response was from IP
129.130.10.24
 [2000/06/22 11:58:25, 0] nmbd/nmbd_namequery.c:query_name_response(93)
query_name_response: Multiple (3) responses received for a query on subnet
129.130.10.136 for name NT.CIS.KSU.EDU<1d>. This response was from IP
129.130.10.24
 [2000/06/22 11:58:25, 0] nmbd/nmbd_namequery.c:query_name_response(93)
query_name_response: Multiple (4) responses received for a query on subnet
129.130.10.136 for name NT.CIS.KSU.EDU<1d>. This response was from IP
129.130.10.24
[2000/06/22 11:58:25, 0] nmbd/nmbd_namequery.c:query_name_response(93)
query_name_response: Multiple (5) responses received for a query on subnet
129.130.10.136 for name NT.CIS.KSU.EDU<1d>. This response was from IP
129.130.10.24

Note that all of the above are reported as having come from 129.130.10.24.
This should never happen.  If 129.130.10.24 is a WINS server it should
send a Negative Name Query Response for a <1D> name query (wierd but true).

So, are all of the above coming from different systems, all of which
think are the LMB?  Are they all coming from one system that is, for some
strange reason, replying five times to the same query?

Anyway, I needed more info so I've changed the debug messages.

Chris -)-----
(This used to be commit 8f2f09af0a)
2001-06-28 20:49:47 +00:00
Jeremy Allison
eb57553512 Properly instrument print_job_start()/print_job_end() so every fail case
logs a debug. We need this to track fail cases.
Jeremy
(This used to be commit fe5cac150d)
2001-06-28 19:23:43 +00:00
Andrew Tridgell
39117f1650 fixed guest account for build farm boxes
(This used to be commit 0d112d7960)
2001-06-28 05:57:56 +00:00
Andrew Tridgell
a2c81f1aed temporarily made smbclient a non-error target so that builds will succeed when it fails. This will give richard a chance to fix problems without breaking the tree
(This used to be commit 83d0dc4b53)
2001-06-28 03:03:11 +00:00
Jeremy Allison
8f91108faf Syncup between 2.2 and HEAD.
Jeremy.
(This used to be commit 39d4131a45)
2001-06-27 17:26:29 +00:00
Andrew Bartlett
dc346a5c6d Jigger around with the tests a bit more
We now test security=share, security=user, security=server for both the
positive and negitive case (good/bad pw) and check that guest shares work for
share level security.

The server level security stuff seems to test positive without actualy
contating a server (another LIBSMB_PROG based smbd) - I will need to look into that...

Andrew Bartlett
(This used to be commit 19fdc553d6)
2001-06-27 13:58:58 +00:00
Andrew Tridgell
5ac133bac7 on sco2 socketpair_tcp needs a bind
(This used to be commit d8e5409ebb)
2001-06-27 13:58:44 +00:00
Andrew Tridgell
c6f647dfd9 handle EISCONN in socketpair_tcp
this should get the auto-tests working on IRIX
(This used to be commit 87f90d48d8)
2001-06-27 10:44:14 +00:00
Andrew Bartlett
a0b75f7da7 Add the generic funcions file for the basicsmb tests
Andrew Bartlett
(This used to be commit b28baf71a7)
2001-06-27 07:59:09 +00:00
Tim Potter
39a265ae20 Added some missing entries to usage().
Added -d option to set debug level.
(This used to be commit 9874df0c22)
2001-06-27 04:43:55 +00:00
Richard Sharpe
d088d8e9d0 Added back the automatic build of libsmbclient.so in head.
This is so I can find out what platforms it fails on. I will pull it again tomorrow if there are too many problems, like > 2 platforms that it fails to build on, but will pop it back in again as I resolve platforms.
(This used to be commit cc72c44e53)
2001-06-27 04:41:01 +00:00
Tim Potter
c9c1e685fc Added doco for the -d parameter.
(This used to be commit d8598efb57)
2001-06-27 04:40:12 +00:00
Richard Sharpe
8831dcd59d Fix a stupid typo ...
(This used to be commit 8a873b5dfb)
2001-06-27 04:06:13 +00:00
Andrew Bartlett
d6ffe900c9 Changed some of the tests around, made failures for parts actualy count
Andrew Bartlett
(This used to be commit 56a881b2b4)
2001-06-27 00:32:52 +00:00
Herb Lewis
c2cfcb34e1 SGI compiler fixes.
Jeremy
(This used to be commit 45bf995bf6)
2001-06-26 20:23:45 +00:00
Martin Pool
21fd0a0f62 Add check for working AF_LOCAL sockets, which are borken
on RH7.0 with _LARGEFILE64_SOURCE, and probably not
present on non-Unix systems like VMS.
(This used to be commit 8b0a5bc436)
2001-06-26 07:44:02 +00:00
Andrew Bartlett
4c83248fcf Added the basic tests of smb functionality for HEAD
This works with the new build farm system

Andrew Bartlett
(This used to be commit 542977bc43)
2001-06-26 07:41:40 +00:00
Jeremy Allison
96ff4b8ee2 Ensure we always have a valid pointer on unmarshalling an SD with zero
ace entries.
Jeremy.
(This used to be commit 274c0f5028)
2001-06-26 06:31:55 +00:00
Tim Potter
0c563186fb Put an 0x in front of a hex number.
(This used to be commit a48d480ce9)
2001-06-26 06:26:05 +00:00
Tim Potter
742609a21d Fixed bug introduced by changeover of security descriptor code from
malloc() to talloc().  Previously, creating an ACL containing zero ACEs
would return a non-NULL pointer to zero bytes of memory.  The talloc() code
would return a NULL pointer making the ACL a NULL ACL instead of an empty
one.  The difference is a NULL ACL allows all access and an empty ACL
denies all access.

We solve this by calling talloc(ctx, sizeof(SEC_ACE) * num_aces + 1).
Heh.
(This used to be commit 89eaaafe7d)
2001-06-26 06:11:40 +00:00
Jeremy Allison
629a59fe85 Always use DOMAIN\user first that this is the more specific case.
Jeremy.
(This used to be commit 52143c0853)
2001-06-26 06:06:42 +00:00
Andrew Tridgell
f73122e79d fixed build
don't rush commits :)
(This used to be commit 442bf5cc9e)
2001-06-26 05:38:24 +00:00
Andrew Tridgell
8a0480b137 fall back to "unsigned" for uint32 on systems that don't have one
(This used to be commit 4d0c316709)
2001-06-26 05:21:49 +00:00
Andrew Bartlett
90498a10c7 Remove warning about trapdoor systems for non-root mode.
Andrew Bartlett
(This used to be commit b33000cdc0)
2001-06-26 03:45:45 +00:00
Jeremy Allison
9f447adbec Ensure numeric group or user names don't get misinterpreted.
Jeremy.
(This used to be commit e88da9dcc7)
2001-06-25 21:29:33 +00:00
Jeremy Allison
b0be9cd768 Added Andrew's pam password change stuff. Needs some testing but looks good !
Jeremy.
(This used to be commit e94957d548)
2001-06-25 20:44:04 +00:00
Jeremy Allison
31ab8ae3ff Fixed stupid typo that would stop trusted domains working.
Jeremy.
(This used to be commit fa721b4adf)
2001-06-25 19:08:30 +00:00
Tim Potter
6e0605c3ab Cosmetic fixups found while playing with the server manager. Added support
for NET_SRV_SET_INFO rpc call which is made when double-clicking on a
computer in the server manager and changing the description.  We always
return NT_STATUS_NOPROBLEMO as NT doesn't seem to decode any error messages
passed back.

Maybe the changed comment string could be stored in a tdb and regurgitated
instead of the "server string" smb.conf parameter?
(This used to be commit d936ffedd9)
2001-06-25 06:13:27 +00:00
Andrew Tridgell
dae746c639 got rid of the date headers off all text docs
(This used to be commit 9d02041f00)
2001-06-25 03:36:09 +00:00
Andrew Tridgell
b95a294a08 fixed usage of socklen_t and also tidied up SIG_ATOMIC_T, using a typedef instead of a define
(This used to be commit e2ecff419f)
2001-06-25 02:53:13 +00:00
Andrew Tridgell
413ad23faf make sure we have BOOL in autoconf usage of util_sec.c
(This used to be commit 72f63f5144)
2001-06-25 01:20:47 +00:00
Andrew Tridgell
53ca6d33ce added a -L option to smbpasswd to force it to run locally so we can test smbpasswd as non-root
(This used to be commit ab63520265)
2001-06-25 01:15:17 +00:00
Andrew Tridgell
8b79a473fa - make the regresison test mode code build in by default. This should
allow us to have test targets without special configure options
- fixed make proto so that it actually does something
(This used to be commit 55109a7525)
2001-06-25 00:46:34 +00:00
Simo Sorce
cc6bf9a06f fixed error
using wrong pointer to test and free s/str/s/
(This used to be commit 7e5a9860fa)
2001-06-24 01:41:38 +00:00
Jeremy Allison
08bda36755 Log debug before and after netbios names copied so we know if they've been
changed.
Jeremy.
(This used to be commit f8c121c69c)
2001-06-23 20:01:23 +00:00
Simo Sorce
2b8e2f16c3 uhm some pointer went wrong
(This used to be commit d0acacfc9d)
2001-06-23 15:27:04 +00:00
Simo Sorce
5be670074e handle P_LIST parameters
(This used to be commit 26ab608c91)
2001-06-23 15:01:34 +00:00
Simo Sorce
6ad1fcc279 fix compiler warnings
(This used to be commit 1959864490)
2001-06-23 14:58:38 +00:00
Simo Sorce
d56e091694 fix compiler warnings
(This used to be commit 7420e2f789)
2001-06-23 14:13:32 +00:00
Jeremy Allison
37eb0d6c74 Added other_safe_chars to alpha_strcpy(). Needs testing but is a better
fix for the problem.
Jeremy.
(This used to be commit e059fffd03)
2001-06-23 07:22:16 +00:00
Jeremy Allison
7133aed083 Better fix for client name vulnarability.
Jeremy.
(This used to be commit 17c3faa367)
2001-06-23 00:22:14 +00:00
Jeremy Allison
fe136fe623 Fix for multibyte default service parameter from TAKAHASHI Motonobu, Samba Users Group Japan
Jeremy
(This used to be commit a2da1f91c1)
2001-06-22 22:05:47 +00:00
Jeremy Allison
5ba566efb7 Fixed logic bug in timeout processing spotted by Ying Chen <ying@almaden.ibm.com>.
Jeremy.
(This used to be commit 08c1682423)
2001-06-22 20:56:52 +00:00
Jeremy Allison
17d5d660b5 Fix for race condition found by Herb where we can end up with a NULL dbf.
Jeremy.
(This used to be commit 5cbb210673)
2001-06-22 19:46:38 +00:00
Jeremy Allison
b08ee8995d Fix from "Jim McDonough" <jmcd@us.ibm.com>" - when we use open_file_shared(),
we need to close with close_file().
Jeremy.
(This used to be commit 5b2ffd160f)
2001-06-22 18:58:35 +00:00
Andrew Tridgell
868d010aa1 added the ability to test smbd safely as an ordinary user. The way it works is
that libsmb/ creates a local tcp socket then launches smbd as a subprocess
attached to that socket. smbd thinks it is being launched from inetd.

to use it do the following:

- compile with -DSMB_REGRESSION_TEST
- run like this (also works with smbtorture etc)
    export SMBD_TEST=1
    export LIBSMB_PROG=bin/smbd
    smbclient //server/share -Uuser%pass

obviously you need to setup a smb.conf etc. Using --prefix to configure
is useful.

The aim of all this stuff is to add a decent set of regression tests
to the build farm, so we know if smbd actually runs correctly on all the
platforms, not just builds. We can run smbtorture, masktest, locktest etc,
plus a bunch of smbclient scripts and any new tests we write.

This doesn't help much with nmbd (at least not yet) but its a good start.
(This used to be commit 7e8e6ae9a8)
2001-06-22 15:14:45 +00:00
Gerald Carter
3281f6f076 sync this function with 2.2 (single check for NULL parameter)
(This used to be commit 3ab50e648d)
2001-06-22 14:18:27 +00:00
Jeremy Allison
9a89a5b4fa Removed unused (and potentially crash-causing) free function.
Jeremy.
(This used to be commit 54ea00fa87)
2001-06-22 02:37:52 +00:00
Andrew Tridgell
8e886b875b add an ignore on proto.h
(This used to be commit 0dc9227156)
2001-06-22 02:34:34 +00:00