1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

5655 Commits

Author SHA1 Message Date
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 -
Andrew Tridgell
72f63f5144 make sure we have BOOL in autoconf usage of util_sec.c -
Andrew Tridgell
ab63520265 added a -L option to smbpasswd to force it to run locally so we can test smbpasswd as non-root -
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
-
Simo Sorce
7e5a9860fa fixed error
using wrong pointer to test and free s/str/s/
-
Jeremy Allison
f8c121c69c Log debug before and after netbios names copied so we know if they've been
changed.
Jeremy.
-
Simo Sorce
d0acacfc9d uhm some pointer went wrong -
Simo Sorce
26ab608c91 handle P_LIST parameters -
Simo Sorce
1959864490 fix compiler warnings -
Simo Sorce
7420e2f789 fix compiler warnings -
Jeremy Allison
e059fffd03 Added other_safe_chars to alpha_strcpy(). Needs testing but is a better
fix for the problem.
Jeremy.
-
Jeremy Allison
17c3faa367 Better fix for client name vulnarability.
Jeremy.
-
Jeremy Allison
a2da1f91c1 Fix for multibyte default service parameter from TAKAHASHI Motonobu, Samba Users Group Japan
Jeremy
-
Jeremy Allison
08c1682423 Fixed logic bug in timeout processing spotted by Ying Chen <ying@almaden.ibm.com>.
Jeremy.
-
Jeremy Allison
5cbb210673 Fix for race condition found by Herb where we can end up with a NULL dbf.
Jeremy.
-
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.
-
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.
-
Gerald Carter
3ab50e648d sync this function with 2.2 (single check for NULL parameter) -
Jeremy Allison
54ea00fa87 Removed unused (and potentially crash-causing) free function.
Jeremy.
-
Andrew Tridgell
0dc9227156 add an ignore on proto.h -
Andrew Tridgell
8a37df73ec auto-build proto.h if its not there, but don't make it depend
on anything. Delete proto.h from CVS
-
Tim Potter
465994cfbc Cleanup of cli_lsa_enum_trust_dom(). talloc() doesn't like attempts to
allocate 0 bytes.
-
Tim Potter
5f4889beb9 Spelling fix. -
Andrew Tridgell
7a96ca313e the BAD_PTR idea in talloc.h is actually a bad idea - it means callers have no way of telling if the call really failed -
Tim Potter
f179e0ff61 Use cli_read_one() for reading DCE/RPC reply fragments. We need to check
for and ignore ERRmoredata errors as the client library doesn't support
32-bit error messages.

Added some annotations for the RPC pipe code to make it a bit clearer
maybe.
-
Tim Potter
9e074bc2bf Merged cli_read_one() function for reading DCE/RPC reply fragments. -
Jeremy Allison
0187cd6aef Andrew - please look this over. I've fixed a long standing (maybe 4-5
years old) bug when chainging a sessionsetup_and_X and tcon together.
The wrong username was being entered into the tdb, even though the
correct user was used for accessing files. This is related to the fact
that authorise_login() is not used for sessionsetup, but only for tcon
auths.
Jeremy.
-
Andrew Tridgell
bbfbe03cc6 added some comments to make the cli read code clearer -
Simo Sorce
72b749ec89 use next_token instead of strtok.
single elemnts of list cannot be longer than a pstring (1024B now)
-
Jeremy Allison
2d1c6d1f6b Ok - I misspoke.... mmap returns MAP_FAILED, not neccessarily -1 :-).
Jeremy.
-
Jeremy Allison
b77c8b536d When mmap fails it returns -1 *NOT NULL*.
This got regressed somehow.....
Jeremy.
-
Jeremy Allison
6b4a70cd82 Merging Gerry's spoolss changes.
Jeremy.
-
Gerald Carter
5932471a03 merge from 2.2 -
Andrew Tridgell
674ee2f1d1 next_token() was supposed to be a reentrant replacement for strtok(),
but the code suffered from bitrot and is not now reentrant. That means
we can get bizarre behaviour
i've fixed this by making next_token() reentrant and creating a
next_token_nr() that is a small non-reentrant wrapper for those lumps
of code (mostly smbclient) that have come to rely on the non-reentrant
behaviour
-
Andrew Tridgell
86613493a9 Added STR_NOALIGN flags to clistr and srvstr fns. Yes, NT actually does
send unaligned unicode strings sometimes!
Fixed our handling of the workgroup name tacked on the end of the
NT1 negprot response (a unaligned unicode)
fixed a couple of places where we should be using the message_end fns instead
of pre-calculated buffer lengths
-
Jeremy Allison
244aec8ea6 Following info from TAKAHASHI Motonobu <monyo@samba.gr.jp>,
Samba Users Group Japan, ensure that we don't use dos_to_unix(xx,True),
but always use dos_to_unix(xx,False) to prevent overwriting.
Jeremy.
-
Jeremy Allison
05a2911403 Fixed W2K SP2 joining a Samba PDC hosted domain.
Jermey.
-
Jeremy Allison
87f647715d Warning fix from Andrew Bartlett.
Jeremy.
-
Simo Sorce
e1572f85d6 initial support for paramter type P_LIST
it will avoid problems with lists being longer than 1024 bytes
just now only ip list parameters have been converted to the new type
(hosts allow, hosts deny, ssl hosts, ssl hosts resign)
-
Tim Potter
d0b37d1a62 make proto -
Tim Potter
2162454d9e Added cli_samr_delete_dom_user() function. -
Tim Potter
aa9024c959 Added delete domain user rpcclient command. -
Andrew Tridgell
15b17a80db added a close-share smbcontrol message that forcibly closes a share in smbd (to allow unmount) -