1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-08 05:57:51 +03:00

5959 Commits

Author SHA1 Message Date
Christopher R. Hertel
c2977be340 Very minor cleanup. I was looking for another problem and found some bits
of code that were unclear.

Chris -)-----
-
Andrew Bartlett
5d3f622375 This fix from Eelco Vriezekolk <eelco@nexus.com.na> is for a SIG11 bug where we
would always file_free(fsp) twice, once in close_file and once afterwoulds.

The bug was reported in SAMBA_2_2, but a code inspection shows it to be in HEAD
as well.  (Unfortunetly I don't have the facilites to actualy check this, but
the change is quite simple, makes sence and compiles).

Andrew Bartlett
-
Andrew Bartlett
d04ea88b5d Fix the torture test, we had the wrong file-name in the tests
Andrew Bartlett
-
Tim Potter
33f668b137 Re-ran configure. -
Tim Potter
9db0332954 Only build the pam_winbind module if --with-pam used.
Replaced extra shell variable with_pam_for_crypto with a check against
$with_pam
-
Andrew Bartlett
584a14a216 We need strict locking to pass LOCK4
Andrew Bartlett
-
Andrew Bartlett
eee251f710 Start of smbtorture based testing. Not all of smbtorture's facilites
are used, but these ones should pass.

Andrew Bartlett
-
Andrew Bartlett
aa5708de69 Not all OSs have setbuffer, so we better check for it.
Andrew Bartlett
-
Andrew Bartlett
a73aefef09 Make smbtorture return status values for use in the build_farm tests.
This should not have changed behaviour, and it has been tested.

Andrew Bartlett
-
Jeremy Allison
a3925cb9c6 Fixed the nastiest locking bug to track down.... smb_pids are sent in the
lockingX calls - use that instead of smb_pid in the packet.
Jeremy.
-
Jeremy Allison
15c64199cb Insure caught the fact that PTRDIFFs were being done between two unrelated
pointers.
Jeremy.
-
Simo Sorce
db36ed1d80 "netbios aliases" and "interfaces" options change from P_STRING to P_LIST -
Jeremy Allison
33dc250ebb Fix for building --with-profile for new vfscalls.
Jeremy.
-
Andrew Tridgell
ba79d2a030 cli_read() was reading too many bytes. -
Simo Sorce
200110a3b4 - fix bug in reply_nt- fix bug in reply_nt1 -
Richard Sharpe
93c45024cd Make sure we compile with gcc by default. -
Richard Sharpe
9627bace72 Add a static linking target to the examples Makefile so I can test out static linking ... -
Jeremy Allison
015a077acc Ensure we return correct error on trying to unlock a region not locked.
Jeremy.
-
Richard Sharpe
09837044a2 Fix another small problem with Makefile.in ... not doing the correct
check for whether or not we should build a shared library.
-
Andrew Bartlett
58b981a56f This should return the build to normallity.
When you update an #ifdef'ed function, also update its matching null function
or all hell breaks loose on the build farm!

Andrew Bartlett
-
Jeremy Allison
5c42845b5b Fixed the first locking error (test #8 found by locktest code from
Clarion locktest.
Jeremy.
-
Richard Sharpe
332f646fdc Modified Makefile.in to work properly. Define BLDSHARED as a variable in the makefile now. -
Richard Sharpe
9585529455 These changes cause the libsmbclient stuff to always build a non-shared library and to build a shared library only for the four OSes that we currently like.
I will probably add HP/UX and AIX support based on the CUPS stuff soon ...
-
Jeremy Allison
7079300da6 Added LsaGetConnectedCredentials patch from Manoj Naik <manoj@almaden.ibm.com>.
Jeremy.
-
Jeremy Allison
c24e6b41ea Ensured all the system calls in msdfs.c go through the vfs layer.
Added vfs calls to symlink() and readlink() with appropriate configure
checks.
Jeremy.
-
Jeremy Allison
001e9b7b54 From JF....
hi jeremy,

can you commit the following patch against HEAD. I can't do it right now

Thanks Tim for me. He changed the SAM_DISPINFO_1 array without checking if
he didn't break the server code. And he did.

So on my way I cleaned info_1, 2, .. 5

it may break winbind. I leave to tim the pleasure to fix it ;-)

        jf.

I added some talloc changes and checks for alloc fails.

Jeremy.
-
Tim Potter
937b96feaa Experimental support for joining a domain without creating an account in
server manager first.  Just use the -U parameter to smbpasswd when joining
the domain:

	smbpasswd -r PDC -j DOMAIN -U administrator%password

Should also work with domain users with the 'add workstation to domain'
user right.
-
Tim Potter
008628fb8a Removed another silly static array. -
Tim Potter
b4a9079833 Win9x weirdness. When setting the named pipe handle state on a Unicode
server, Win9x only sends \PIPE instead of \PIPE\.  Looks suspiciously like
an off-by one bug in the Win9x dce/rpc pipe code.
-
Tim Potter
30411d4004 Replaced memcpy() with memmove() to make safe_strcpy() safe for overlapping
source and destination.
-
Jeremy Allison
2999eab5ab Use a logical cli_read(), removed the cli_read_one() hack.
Jeremy.
-
Jeremy Allison
5a5d33b946 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.
-
Christopher R. Hertel
8f2f09af0a 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 -)-----
-
Jeremy Allison
fe5cac150d Properly instrument print_job_start()/print_job_end() so every fail case
logs a debug. We need this to track fail cases.
Jeremy
-
Andrew Tridgell
0d112d7960 fixed guest account for build farm boxes -
Andrew Tridgell
83d0dc4b53 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 -
Jeremy Allison
39d4131a45 Syncup between 2.2 and HEAD.
Jeremy.
-
Andrew Bartlett
19fdc553d6 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
-
Andrew Tridgell
d8e5409ebb on sco2 socketpair_tcp needs a bind -
Andrew Tridgell
87f90d48d8 handle EISCONN in socketpair_tcp
this should get the auto-tests working on IRIX
-
Andrew Bartlett
b28baf71a7 Add the generic funcions file for the basicsmb tests
Andrew Bartlett
-
Tim Potter
9874df0c22 Added some missing entries to usage().
Added -d option to set debug level.
-
Richard Sharpe
cc72c44e53 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.
-
Tim Potter
d8598efb57 Added doco for the -d parameter. -
Richard Sharpe
8a873b5dfb Fix a stupid typo ... -
Andrew Bartlett
56a881b2b4 Changed some of the tests around, made failures for parts actualy count
Andrew Bartlett
-
Herb Lewis
45bf995bf6 SGI compiler fixes.
Jeremy
-
Martin Pool
8b0a5bc436 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.
-
Andrew Bartlett
542977bc43 Added the basic tests of smb functionality for HEAD
This works with the new build farm system

Andrew Bartlett
-
Jeremy Allison
274c0f5028 Ensure we always have a valid pointer on unmarshalling an SD with zero
ace entries.
Jeremy.
-