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

5981 Commits

Author SHA1 Message Date
Andrew Bartlett
ba76564c2a Move the claim_connection stuff till a little later in the process.
(You don't have to clean up somthing you haven't done yet...)
-
Andrew Bartlett
6fd8eb08c1 Move admin user check into a helper function.
Formatting fixes.
-
Andrew Bartlett
7dc716f174 Move read only check into a helper funcion. Ensure conn->service is set
before we use it to find a share's details.
-
Andrew Bartlett
dc635bde22 Restore a debug I think I dropped earlier -
Andrew Bartlett
15c87e404f smbd/auth_server: Doco, we want to use cli_nt_error here soon
smbd/password.c: We don't use globals here anymore

smbd/reply.c: Tidyness, global_myworkgroup must die!

smbd/service.c:  Move some of the make_connection code into a helper
                 function.
-
Andrew Bartlett
3d91c11942 Style cleanup for the last vuid change.
Style, doco and DEBUG() fixes for auth_smbpasswd.c
(In particular for the account control call).

Andrew Bartlett
-
Andrew Bartlett
204da7ba96 One less getpwnam() call...
Andrew Bartlett
-
Andrew Tridgell
6b43e4a15d removed unused file -
Andrew Tridgell
c452eb0fbb removed unused file -
Jeremy Allison
800e46ea7e Added Jim McDonough's Win9x take ownership fix.
Jeremy.
-
Gerald Carter
7049217eb4 merge from 2.2 -
Jeremy Allison
befbfea210 Add printing of errno when POSIX lock requests fail.
Jeremy.
-
Tim Potter
6c0dab8502 Moved across definition of dos error types from smb.h to doserr.h -
Tim Potter
577f6065f6 Converted to new error API.
Now that we support NT errors from the client, appropriate values will need
to be filled in for the various invocations of check_error() within the
torture code.
-
Tim Potter
45254ae23b Fixed typo in debug message. -
Tim Potter
73addddb2e Fixed up 'orrible formatting. -
Tim Potter
a7863f0f03 Fixed crash bug when attempting to list contents of non-existent
directory.
-
Simo Sorce
fa8e55b8b4 this is a big global fix for the ptr = Realloc(ptr, size) bug.
many possible mem leaks, and segfaults fixed.

someone should port this fix to 2.2 also.
-
Andrew Bartlett
895d1cd317 Kill of idra's extra become_root()/unbecome_root() now I have fixed the actual
problem.

Andrew Bartlett
-
Andrew Bartlett
ea1c547ac8 This patch does a number of things, mostly smaller than they look :-)
In particuar, it moves the domain_client_validate stuff out of
auth_domain.c to somwhere where they (I hope) they can be shared
with winbind better.  (This may need some work)

The main purpose of this patch was however to improve some of the
internal documentation and to correctly place become_root()/unbecome_root()
calls within the code.

Finally this patch moves some more of auth.c into other files, auth_unix.c
in this case.

Andrew Bartlett
-
Simo Sorce
a2a4d4e628 it was half committed last time,
thanks to Hasch@t-online.de (Juergen Hasch) for spotting that.
-
Simo Sorce
f25a5dab60 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
-
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>
-