1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-19 10:03:58 +03:00

5959 Commits

Author SHA1 Message Date
Jeremy Allison
8c5e5f8c84 Added Mike Davidsons Tru64 ACL patch.
Jeremy.
-
Jeremy Allison
a3781ad38f Merge in the NT drivers changes from 2.2.
Jeremy.
-
Simo Sorce
fd54412ce9 - avoid possible mem leaks in rpcclient/cmd_*.c (talloc_destroy not performed)
- ported two rpc back from TNG (WINREG: shutdown and abort shutdown)
- some optimizations and changed some DEBUG statement in loadparm.c
- changed rpcclient a bit moved from non reentrant next_token_nr to next_token
- in cmd_reg.c not sure if getopt will work ok on all platforms only setting optind=0
-
Tim Potter
e98f948123 Debug cleanups. -
Tim Potter
e9ceb17d77 Had the test for cli_is_error() reversed. You idiot Stimpy! -
Tim Potter
9c57e45d44 Fixes for new client error api. -
Tim Potter
b196a52483 Use new client error api. -
Tim Potter
688da3c41d Use the new client error api. -
Tim Potter
6dbdb0d813 A rewrite of the error handling in the libsmb client code. I've separated
out the error handling into a bunch of separate functions rather than all
being handled in one big function.

Fetch error codes from the last received packet:

    void cli_dos_error(struct cli_state *cli, uint8 *eclass, uint32 *num);
    uint32 cli_nt_error(struct cli_state *);

Convert errors to UNIX errno values:

    int cli_errno_from_dos(uint8 eclass, uint32 num);
    int cli_errno_from_nt(uint32 status);
    int cli_errno(struct cli_state *cli);

Detect different kinds of errors:

    BOOL cli_is_dos_error(struct cli_state *cli);
    BOOL cli_is_nt_error(struct cli_state *cli);
    BOOL cli_is_error(struct cli_state *cli);

This also means we now support CAP_STATUS32 as we can decode and understand
NT errors instead of just DOS errors.  Yay!

Ported a whole bunch of files in libsmb to use this new API instead of the
just the DOS error.
-
Tim Potter
00703d306f More constant conversions. -
Tim Potter
589aaa5fb1 Removed nt_error field from cli_state as it was not used anywhere. -
Tim Potter
5f5ed41ee8 Replaced the duplicate DOS constants with appropriate ones from doserr.h to
emphasise the fact that the spoolss pipe returns DOS error codes instead of
32-bit nt status codes.
-
Tim Potter
1bd8b6f797 Moved dos error codes from smb.h into new file doserr.h -
Tim Potter
fb60798a77 Changed the order of arguments in make_oem_passwd_hash(). All the other
encryption functions have outputs as the last arguments.
-
Gerald Carter
6ab0e949d1 merge from 2.2 -
Jeremy Allison
36e01dcdbd Fixed typo in patch.
Jeremy.
-
Jeremy Allison
fd89261a2c Fixed wrong placement of allocate code :-(.
Changed alignment offset to 1 to allow netmon to parse ok.
Jeremy.
-
Jeremy Allison
635f3a3ee2 Added fix from Dan Thibadeau @ HP for parsing problem.
Jeremy.
-
Jeremy Allison
1f6e3d18cd Fix inspired by Don @ HP. Close down password server connection if keepalive
fails.
Jeremy.
-
Jeremy Allison
61141c371a Merged John's fix.
Jeremy.
-
Gerald Carter
ef01739708 a few cleanups while mergeing the passdb code into 2.2 -
Andrew Bartlett
23b6772a24 Try to set the socket options early for some OSs (like Sol 8) where they
can't be set after the listen().

Andrew Bartlett
-
Tim Potter
2c73ae4ac7 Link fix for smbpasswd. -
Simo Sorce
7f33c01688 Change all realloc() statements to Realloc() (ecxept for tdb.c)
changed some code to exploit the fact that Realloc(NULL, size) == malloc(size)
fixed some possible mem leaks, or seg faults.

thanks to andreas moroder (mallocs not checked in client/client.c, client/smbumount.c)
-
Andrew Bartlett
08e99f4c12 Some better debugs for our security=server code. I want to track down why
we occasionally don't make the connection to the server.
-
Tim Potter
4c4d128d08 Merge of modesty patch from 2.2 spec file. -
Tim Potter
04d978258b Factored out common rpc pipe initialisation and shutdown code. -
Tim Potter
78207d0fc8 Patch for having spaces in tdb keys, NULL termination fixes and other
stuff.  From Andrew Esh <AEsh@tricord.com>
-
Jeremy Allison
84e15b8199 Update to work with no crypt available, just like it will in Samba.
Jermey.
-
Gerald Carter
a7bf5e2ab8 merge from 2.2 -
Jeremy Allison
e4a295b730 Always return NT_STATUS_DISK_FULL, even for quota errors.
Jeremy.
-
Jeremy Allison
3bf2419f4b Added fixes to return correct error codes on space allocation fail.
Jeremy.
-
Jeremy Allison
d1e7cf6073 Correctly report amount written in debug when allocation space.
Jeremy.
-
Tim Potter
ce22267ec8 A collection of fixes/cleanups to the security descriptor code by
matt_zinkevicius@hp.com
-
Tim Potter
4c9f010a1e Fixed another possible memleak in cli_initialise() -
Jeremy Allison
b7bd512d9a Added Gerald's lanman printing only change to HEAD.
Jeremy.
-
Jeremy Allison
298595e8cb Fix for getting allocate_file_space to return the correct errno.
Jeremy.
-
Andrew Bartlett
9fff946cf1 Record the NT_STATUS constant rather than its number in the logfiles
Fix typo in lmhosts manpage
-
Richard Sharpe
8878a44868 Stop HP/UX building shared libraries for the moment ... -
Tim Potter
0b3fbd9e6e We don't use indent in the HEAD branch. -
Tim Potter
b5373f4b59 Cleaned up error handling in cli_initialise() to fix a memleak found by
Claudia Moroder <claudiamoroder@st-ulrich.suedtirol.net>
-
Tim Potter
99ce277fc8 Changed lone malloc() call to talloc(). Spotted by
Claudia Moroder <claudiamoroder@st-ulrich.suedtirol.net>
-
Tim Potter
e4831d4d01 Added smbtree to list of ignored files. -
Simo Sorce
f87924aec4 me stupid.
never commit without building.
sorry.
-
Tim Potter
99071c45d0 Another winbind test - fill in later. -
Simo Sorce
b29a549cdd Some fixes about malloc/Realloc and mem leak
thanks to andreas moroder
-
Volker Lendecke
b4f06c3ecf Print an error message if database could not be opened.
Volker
-
Jeremy Allison
352a02bf5c Extra debug to see what errno is on write fail.
Jeremy.
-
Jeremy Allison
28b4ee1eba The write zero bytes is an allocate, not set EOF.
Jeremy.
-
Jeremy Allison
dd4a6edd49 Added include guards...
We may need to rename this file smbauth.h, as auth.h
is so generic it will probably conflict with system header
files on some systems.
Jeremy.
-