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

4887 Commits

Author SHA1 Message Date
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 ...
0001-01-01 00:00:00 +00:00
Jeremy Allison
7079300da6 Added LsaGetConnectedCredentials patch from Manoj Naik <manoj@almaden.ibm.com>.
Jeremy.
0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
Tim Potter
008628fb8a Removed another silly static array. 0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
Tim Potter
30411d4004 Replaced memcpy() with memmove() to make safe_strcpy() safe for overlapping
source and destination.
0001-01-01 00:00:00 +00:00
Jeremy Allison
2999eab5ab Use a logical cli_read(), removed the cli_read_one() hack.
Jeremy.
0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
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 -)-----
0001-01-01 00:00:00 +00:00
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
0001-01-01 00:00:00 +00:00
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 0001-01-01 00:00:00 +00:00
Jeremy Allison
39d4131a45 Syncup between 2.2 and HEAD.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
d8e5409ebb on sco2 socketpair_tcp needs a bind 0001-01-01 00:00:00 +00:00
Andrew Tridgell
87f90d48d8 handle EISCONN in socketpair_tcp
this should get the auto-tests working on IRIX
0001-01-01 00:00:00 +00:00
Tim Potter
9874df0c22 Added some missing entries to usage().
Added -d option to set debug level.
0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
Richard Sharpe
8a873b5dfb Fix a stupid typo ... 0001-01-01 00:00:00 +00:00
Herb Lewis
45bf995bf6 SGI compiler fixes.
Jeremy
0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
Jeremy Allison
274c0f5028 Ensure we always have a valid pointer on unmarshalling an SD with zero
ace entries.
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
a48d480ce9 Put an 0x in front of a hex number. 0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
Jeremy Allison
52143c0853 Always use DOMAIN\user first that this is the more specific case.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
442bf5cc9e fixed build
don't rush commits :)
0001-01-01 00:00:00 +00:00
Andrew Tridgell
4d0c316709 fall back to "unsigned" for uint32 on systems that don't have one 0001-01-01 00:00:00 +00:00
Andrew Bartlett
b33000cdc0 Remove warning about trapdoor systems for non-root mode.
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Jeremy Allison
e88da9dcc7 Ensure numeric group or user names don't get misinterpreted.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
e94957d548 Added Andrew's pam password change stuff. Needs some testing but looks good !
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
fa721b4adf Fixed stupid typo that would stop trusted domains working.
Jeremy.
0001-01-01 00:00:00 +00:00
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?
0001-01-01 00:00:00 +00:00
Andrew Tridgell
e2ecff419f fixed usage of socklen_t and also tidied up SIG_ATOMIC_T, using a typedef instead of a define 0001-01-01 00:00:00 +00:00
Andrew Tridgell
72f63f5144 make sure we have BOOL in autoconf usage of util_sec.c 0001-01-01 00:00:00 +00:00
Andrew Tridgell
ab63520265 added a -L option to smbpasswd to force it to run locally so we can test smbpasswd as non-root 0001-01-01 00:00:00 +00:00
Andrew Tridgell
55109a7525 - 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
0001-01-01 00:00:00 +00:00
Simo Sorce
7e5a9860fa fixed error
using wrong pointer to test and free s/str/s/
0001-01-01 00:00:00 +00:00
Jeremy Allison
f8c121c69c Log debug before and after netbios names copied so we know if they've been
changed.
Jeremy.
0001-01-01 00:00:00 +00:00
Simo Sorce
d0acacfc9d uhm some pointer went wrong 0001-01-01 00:00:00 +00:00
Simo Sorce
26ab608c91 handle P_LIST parameters 0001-01-01 00:00:00 +00:00
Simo Sorce
1959864490 fix compiler warnings 0001-01-01 00:00:00 +00:00
Simo Sorce
7420e2f789 fix compiler warnings 0001-01-01 00:00:00 +00:00
Jeremy Allison
e059fffd03 Added other_safe_chars to alpha_strcpy(). Needs testing but is a better
fix for the problem.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
17c3faa367 Better fix for client name vulnarability.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
a2da1f91c1 Fix for multibyte default service parameter from TAKAHASHI Motonobu, Samba Users Group Japan
Jeremy
0001-01-01 00:00:00 +00:00
Jeremy Allison
08c1682423 Fixed logic bug in timeout processing spotted by Ying Chen <ying@almaden.ibm.com>.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
5cbb210673 Fix for race condition found by Herb where we can end up with a NULL dbf.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
5b2ffd160f Fix from "Jim McDonough" <jmcd@us.ibm.com>" - when we use open_file_shared(),
we need to close with close_file().
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
7e8e6ae9a8 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.
0001-01-01 00:00:00 +00:00
Gerald Carter
3ab50e648d sync this function with 2.2 (single check for NULL parameter) 0001-01-01 00:00:00 +00:00