1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

5897 Commits

Author SHA1 Message Date
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.
-
Tim Potter
a48d480ce9 Put an 0x in front of a hex number. -
Tim Potter
89eaaafe7d 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.
-
Jeremy Allison
52143c0853 Always use DOMAIN\user first that this is the more specific case.
Jeremy.
-
Andrew Tridgell
442bf5cc9e fixed build
don't rush commits :)
-
Andrew Tridgell
4d0c316709 fall back to "unsigned" for uint32 on systems that don't have one -
Andrew Bartlett
b33000cdc0 Remove warning about trapdoor systems for non-root mode.
Andrew Bartlett
-
Jeremy Allison
e88da9dcc7 Ensure numeric group or user names don't get misinterpreted.
Jeremy.
-
Jeremy Allison
e94957d548 Added Andrew's pam password change stuff. Needs some testing but looks good !
Jeremy.
-
Jeremy Allison
fa721b4adf Fixed stupid typo that would stop trusted domains working.
Jeremy.
-
Tim Potter
d936ffedd9 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?
-
Andrew Tridgell
9d02041f00 got rid of the date headers off all text docs -
Andrew Tridgell
e2ecff419f fixed usage of socklen_t and also tidied up SIG_ATOMIC_T, using a typedef instead of a define -