1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

5142 Commits

Author SHA1 Message Date
Simo Sorce
9644bf74bd it was half committed last time,
thanks to Hasch@t-online.de (Juergen Hasch) for spotting that.
(This used to be commit a2a4d4e628)
2001-08-12 09:18:31 +00:00
Simo Sorce
8d5916d5fa Without this become_root()/unbecome_root() pair I was not able to login
when samba acting as a PDC.
I also removed a pdb_free_sam(sampass), because it sampass was never
initialized before...

Please abartlet can you check this patch is ok?
I feel like this was a bad check-in
(This used to be commit f25a5dab60)
2001-08-11 16:34:11 +00:00
Jeremy Allison
16afd6d2bc Added Mike Davidsons Tru64 ACL patch.
Jeremy.
(This used to be commit 8c5e5f8c84)
2001-08-10 20:48:25 +00:00
Jeremy Allison
4b2016305b Merge in the NT drivers changes from 2.2.
Jeremy.
(This used to be commit a3781ad38f)
2001-08-10 19:38:53 +00:00
Simo Sorce
acc149c427 - 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
(This used to be commit fd54412ce9)
2001-08-10 09:52:10 +00:00
Tim Potter
5c47841335 Debug cleanups.
(This used to be commit e98f948123)
2001-08-10 07:41:18 +00:00
Tim Potter
ea43baeeb0 Had the test for cli_is_error() reversed. You idiot Stimpy!
(This used to be commit e9ceb17d77)
2001-08-10 06:46:11 +00:00
Tim Potter
afbca61a28 Fixes for new client error api.
(This used to be commit 9c57e45d44)
2001-08-10 06:16:05 +00:00
Tim Potter
5836e1f7fe Use new client error api.
(This used to be commit b196a52483)
2001-08-10 06:11:31 +00:00
Tim Potter
62f7f6a022 Use the new client error api.
(This used to be commit 688da3c41d)
2001-08-10 06:01:11 +00:00
Tim Potter
2ccfea3de7 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.
(This used to be commit 6dbdb0d813)
2001-08-10 06:00:33 +00:00
Tim Potter
4bbd1ddb27 More constant conversions.
(This used to be commit 00703d306f)
2001-08-10 05:50:47 +00:00
Tim Potter
af0af3d42a Removed nt_error field from cli_state as it was not used anywhere.
(This used to be commit 589aaa5fb1)
2001-08-10 05:50:20 +00:00
Tim Potter
047a7c88d7 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.
(This used to be commit 5f5ed41ee8)
2001-08-10 05:41:53 +00:00
Tim Potter
7d9358cf58 Moved dos error codes from smb.h into new file doserr.h
(This used to be commit 1bd8b6f797)
2001-08-10 05:37:52 +00:00
Tim Potter
c4495240f6 Changed the order of arguments in make_oem_passwd_hash(). All the other
encryption functions have outputs as the last arguments.
(This used to be commit fb60798a77)
2001-08-10 04:59:05 +00:00
Gerald Carter
de5f42c9d9 merge from 2.2
(This used to be commit 6ab0e949d1)
2001-08-10 04:27:26 +00:00
Jeremy Allison
fc0fe941d8 Fixed typo in patch.
Jeremy.
(This used to be commit 36e01dcdbd)
2001-08-10 03:17:58 +00:00
Jeremy Allison
c604830585 Fixed wrong placement of allocate code :-(.
Changed alignment offset to 1 to allow netmon to parse ok.
Jeremy.
(This used to be commit fd89261a2c)
2001-08-09 20:01:35 +00:00
Jeremy Allison
4f181227e5 Added fix from Dan Thibadeau @ HP for parsing problem.
Jeremy.
(This used to be commit 635f3a3ee2)
2001-08-09 19:36:12 +00:00
Jeremy Allison
541f2b73bc Fix inspired by Don @ HP. Close down password server connection if keepalive
fails.
Jeremy.
(This used to be commit 1f6e3d18cd)
2001-08-09 19:22:51 +00:00
Jeremy Allison
f0ce79331f Merged John's fix.
Jeremy.
(This used to be commit 61141c371a)
2001-08-09 18:20:43 +00:00
Gerald Carter
f8d3cac8af a few cleanups while mergeing the passdb code into 2.2
(This used to be commit ef01739708)
2001-08-09 15:53:49 +00:00
Andrew Bartlett
3dbd870d37 Try to set the socket options early for some OSs (like Sol 8) where they
can't be set after the listen().

Andrew Bartlett
(This used to be commit 23b6772a24)
2001-08-09 12:52:05 +00:00
Tim Potter
d41606d6d9 Link fix for smbpasswd.
(This used to be commit 2c73ae4ac7)
2001-08-09 03:41:18 +00:00
Simo Sorce
2f844bf447 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)
(This used to be commit 7f33c01688)
2001-08-08 16:54:16 +00:00
Andrew Bartlett
0897979a8b Some better debugs for our security=server code. I want to track down why
we occasionally don't make the connection to the server.
(This used to be commit 08e99f4c12)
2001-08-08 03:25:47 +00:00
Tim Potter
49eea105fd Factored out common rpc pipe initialisation and shutdown code.
(This used to be commit 04d978258b)
2001-08-08 03:18:49 +00:00
Tim Potter
ef67997d0f Patch for having spaces in tdb keys, NULL termination fixes and other
stuff.  From Andrew Esh <AEsh@tricord.com>
(This used to be commit 78207d0fc8)
2001-08-07 23:21:45 +00:00
Jeremy Allison
9d96f7321e Update to work with no crypt available, just like it will in Samba.
Jermey.
(This used to be commit 84e15b8199)
2001-08-07 19:48:54 +00:00
Gerald Carter
db3ad91012 merge from 2.2
(This used to be commit a7bf5e2ab8)
2001-08-07 19:34:38 +00:00
Jeremy Allison
64c24ebf6d Always return NT_STATUS_DISK_FULL, even for quota errors.
Jeremy.
(This used to be commit e4a295b730)
2001-08-07 19:18:27 +00:00
Jeremy Allison
0c218e1abe Added fixes to return correct error codes on space allocation fail.
Jeremy.
(This used to be commit 3bf2419f4b)
2001-08-07 01:19:32 +00:00
Jeremy Allison
d851036d82 Correctly report amount written in debug when allocation space.
Jeremy.
(This used to be commit d1e7cf6073)
2001-08-07 00:36:10 +00:00
Tim Potter
a2bac4d2ca A collection of fixes/cleanups to the security descriptor code by
matt_zinkevicius@hp.com
(This used to be commit ce22267ec8)
2001-08-07 00:01:41 +00:00
Tim Potter
a6234ad6f2 Fixed another possible memleak in cli_initialise()
(This used to be commit 4c9f010a1e)
2001-08-06 23:29:25 +00:00
Jeremy Allison
b026e6edf2 Added Gerald's lanman printing only change to HEAD.
Jeremy.
(This used to be commit b7bd512d9a)
2001-08-06 22:39:51 +00:00
Jeremy Allison
f8d9da9983 Fix for getting allocate_file_space to return the correct errno.
Jeremy.
(This used to be commit 298595e8cb)
2001-08-06 19:21:23 +00:00
Andrew Bartlett
ac989cbe07 Record the NT_STATUS constant rather than its number in the logfiles
Fix typo in lmhosts manpage
(This used to be commit 9fff946cf1)
2001-08-06 09:35:08 +00:00
Richard Sharpe
c2316f4c2d Stop HP/UX building shared libraries for the moment ...
(This used to be commit 8878a44868)
2001-08-06 08:52:39 +00:00
Tim Potter
4acf4dfe19 We don't use indent in the HEAD branch.
(This used to be commit 0b3fbd9e6e)
2001-08-06 02:35:14 +00:00
Tim Potter
9f08cea054 Cleaned up error handling in cli_initialise() to fix a memleak found by
Claudia Moroder <claudiamoroder@st-ulrich.suedtirol.net>
(This used to be commit b5373f4b59)
2001-08-06 02:18:40 +00:00
Tim Potter
54fc7e1aba Changed lone malloc() call to talloc(). Spotted by
Claudia Moroder <claudiamoroder@st-ulrich.suedtirol.net>
(This used to be commit 99ce277fc8)
2001-08-06 02:13:23 +00:00
Tim Potter
6128f584a4 Added smbtree to list of ignored files.
(This used to be commit e4831d4d01)
2001-08-06 02:10:59 +00:00
Simo Sorce
92dbd04e0e me stupid.
never commit without building.
sorry.
(This used to be commit f87924aec4)
2001-08-05 16:05:40 +00:00
Simo Sorce
e485a1a498 Some fixes about malloc/Realloc and mem leak
thanks to andreas moroder
(This used to be commit b29a549cdd)
2001-08-05 10:10:16 +00:00
Volker Lendecke
efe1d83dbb Print an error message if database could not be opened.
Volker
(This used to be commit b4f06c3ecf)
2001-08-04 18:17:30 +00:00
Jeremy Allison
27bdf594fb Extra debug to see what errno is on write fail.
Jeremy.
(This used to be commit 352a02bf5c)
2001-08-04 00:24:54 +00:00
Jeremy Allison
4f415ef128 The write zero bytes is an allocate, not set EOF.
Jeremy.
(This used to be commit 28b4ee1eba)
2001-08-03 19:32:33 +00:00
Jeremy Allison
5b33eaedde 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.
(This used to be commit dd4a6edd49)
2001-08-03 17:28:18 +00:00