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

8766 Commits

Author SHA1 Message Date
Gerald Carter
7b60e23040 compile warngin fixes merged from 2.2
(This used to be commit 29874f4b8f)
2002-06-17 15:33:13 +00:00
Tim Potter
aaf43bbc8f Fixed typo in debug.
(This used to be commit 41f036ab37)
2002-06-17 07:39:43 +00:00
Gerald Carter
b2e088af72 fix typo
(This used to be commit 27bba80c0e)
2002-06-17 03:55:54 +00:00
Andrew Bartlett
d666280b0a Cope with the requirement for constant initialisers on some unix C compilers.
Andrew Bartlett
(This used to be commit 11b6d283d3)
2002-06-16 11:21:07 +00:00
Andrew Bartlett
36f7eaf32c Further updates to the service.c code. authorise_login() is now a bit simpiler
and we seem to have eliminated the segfault.

Unfortunetly I'm still at a bit of a loss as to why it did segfault, but
the patch is correct in any case.

Andrew Bartlett
(This used to be commit 70c16188c7)
2002-06-16 09:38:11 +00:00
Andrew Bartlett
a54afa45be Two things: Check how many paramaters that the LDAP libs take for the
rebind proc (some give an extra paramter to pass a void* paramater) and
some small changes for the SMB signing code to reset things when the
signing starts, and to 'turn off' signing if the session setup failed.

Andrew Bartlett
(This used to be commit a8805a34e5)
2002-06-16 05:03:11 +00:00
Andrew Bartlett
60ad5b6980 Fix up some of the SMB signing code:
The problem was that *all* packets were being signed, even packets before
signing was set up.  (This broke the session request).

This fixes it to be an 'opt in' measure - that is, we only attempt to sign
things after we have got a valid, non-guest session setup as per the CIFS spec.

I've not tested this against an MS server, becouse my VMware is down, but
at least it doesn't break the build farm any more.

Andrew Bartlett
(This used to be commit 1dc5a87658)
2002-06-16 04:21:56 +00:00
Andrew Bartlett
ba73192c3c When adding popt to an application, you need to ensure it builds on non-popt
platforms :-)
(This used to be commit bda8f12ff5)
2002-06-15 23:55:52 +00:00
Andrew Bartlett
249368f937 Simplify this code further. Just substitute %H, and let the normal code
paths handle the rest later.

Andrew Bartlett
(This used to be commit 09754ec797)
2002-06-15 13:05:37 +00:00
Andrew Bartlett
3c3814da25 Unsused function since last commit
(This used to be commit 957c865cee)
2002-06-15 12:40:37 +00:00
Andrew Bartlett
ac08646c37 Rework much of the service.c code:
The aim of this execise is to give the 'security>=user' code a straight paper
path.  Security=share will sill call authorise_login(), but otherwise we avoid
that mess.

This allow *much* more accurate error code reporting, beocuse we don't start
pretending that we can use the (nonexistant) password etc.

Also in this patch is code to create the 'homes' share at session setup time
(as we have done in the past - been broken recently) and to record this on
the user's vuser struct for later reference.  The changes here should also
allow for much better use of %H (some more changes to come here).

The service.c changes move a lot of code around, but are not as drastric
as they look...

(Also included is a fix to srv_srvsvc_nt.c where 'total_entries' not
'*total_entries' was compared).

This code is needs testing, but passes my basic tests.

I expect we have lost some functionality, but the stuff I had expected
to loose was already broken before I started.  In particular, we don't 'fall
back' to guest if the user cannot access a share (for security=user).  If you
want this kind of stuff then you really want security=share anyway.

Andrew Bartlett
(This used to be commit 4c0cbcaed9)
2002-06-15 12:38:13 +00:00
Andrew Bartlett
843a467f21 Update the netlogon code to better cope with trusted domains, where things
like the domain name and SID come from the remote domain, not the local
one.  These are filled out by the code from the previous commit (auth_util.c,
the make_server_info_info3() fn) and read back here.

Andrew Bartlett
(This used to be commit 6872de2e5b)
2002-06-15 11:40:25 +00:00
Andrew Bartlett
0142f47299 Add the missing makefile from previous commit
(This used to be commit a07f2c08ff)
2002-06-15 11:25:00 +00:00
Andrew Bartlett
b075458ee7 This patch does 2 things:
It extends the 'server mutex' to conver security=server, becouse the connection
race condition exists here too, and while people *should* use security=domain,
some sites don't....

(This probably should be done in 2.2 as well).

Also, start to actually extract and use the information that the remote
server returns in the info3 struct.

The server mutex code is now in a new file.

Andrew Bartlett
(This used to be commit 9b0dabdf4e)
2002-06-15 11:15:31 +00:00
Andrew Bartlett
209fcbfb92 Add another 'trivial' built in authentication module - this one is a
deveopers hack to always send a fixed challange, for the benifit
of tutorials and packet sniffing etc.

Enabling this module removes all security, so its a --enable-developer
option.

Andrew Bartlett
(This used to be commit 622e6b64df)
2002-06-15 11:08:46 +00:00
Andrew Bartlett
e2ed473f57 It appears that to match NT we should not use the 'samstrict' behaviour,
and that local accounts are perfectly fine.
(This used to be commit 9fe8da6dd1)
2002-06-15 11:07:25 +00:00
John Terpstra
0dd693bd98 x source path so this thing compiles.
(This used to be commit fb89be1355)
2002-06-15 07:34:06 +00:00
Andrew Bartlett
9026074f60 Add back sys_getpwnam() and freinds to the system.c interface, but don't
use the silly cache any more.  Also add group functions and fix a few callers.

Andrew Bartlett
(This used to be commit 41d4b94077)
2002-06-15 00:47:52 +00:00
Jeremy Allison
59e0dff0c7 Fix spelling typo.
Jeremy.
(This used to be commit 0e7e8d4462)
2002-06-14 23:16:00 +00:00
Jeremy Allison
998fe27880 Ok, now I can try my first client test...
Jeremy.
(This used to be commit 9d46193376)
2002-06-14 23:01:11 +00:00
Jeremy Allison
caa4262db6 More of SMB signing for client - not yet finished (should be harmless).
Jeremy.
(This used to be commit c1b20db4bb)
2002-06-14 22:38:43 +00:00
Jeremy Allison
d8b685ea27 Merge of csc termination fix.
Jeremy.
(This used to be commit 1f46dc9cbf)
2002-06-14 17:37:05 +00:00
Simo Sorce
e69fba0984 moved lp_list_* functions away from param/loadparm.c, put int lib/util_str.c
and renamed to str_list_* as it is a better name.
Elrond should be satisfied now :)
(This used to be commit 4ae260adb9)
2002-06-14 16:02:59 +00:00
Andrew Bartlett
a98d2b1e17 Add a touch of const to this - helps with some yet-to-be-commited changes
(This used to be commit a2c791c0bb)
2002-06-14 14:13:41 +00:00
Andrew Bartlett
58bec5e2fd Allow non unix accounts to be added to an ldap directory without NUA accounts
already.

Andrew Bartlett
(This used to be commit a5d5b4cf25)
2002-06-14 14:12:27 +00:00
Andrew Bartlett
89f5301e3d Patch from ctrlsoft to use the pdb_sethexpwd function in smbpasswd - instead
of implementing it twice inline.

This code is complex - but occasionally I get the feeling that people made
it more complext than it really needed to be...

Andrew Bartlett
(This used to be commit 273d518e52)
2002-06-14 06:43:51 +00:00
Andrew Bartlett
a8748f886a It looks like we never tested the 'cleanup' code, so when I triggered it
(invalid passdb backends smb.conf entry) we picked up a few things :-).

Andrew Bartlett
(This used to be commit dfa98ae0ac)
2002-06-14 06:23:42 +00:00
Andrew Bartlett
f1b393ce11 Some updates from ctrlsoft <jelmer@nl.linux.org> to return failure if *any* of
the passdb backends fail to load (is this the right way? - I think so).

Also, I've added some more comments, cleaned up some style etc.
(This used to be commit c8c490bcb8)
2002-06-14 04:45:04 +00:00
Andrew Bartlett
a2f07662a1 Debug fixes from ctrlsoft
(This used to be commit 27e34d4e63)
2002-06-14 04:26:23 +00:00
Andrew Bartlett
a26a4c6513 Kill useless cast
(This used to be commit e2f9dd8b65)
2002-06-14 04:02:28 +00:00
Andrew Bartlett
7591cb5ee3 Convenience function to allow a SID to be specified as a string.
(for use in passdb modules like pdb_xml or a new pdb_ldap that stores sids etc.)

Andrew Bartlett
(This used to be commit c70b2c4fb7)
2002-06-14 03:44:38 +00:00
Andrew Bartlett
a770dd49a4 Add some comments on writing new pdb modules. (from ctrlsoft)
Andrew Bartlett
(This used to be commit 0a64ff4c99)
2002-06-14 02:58:43 +00:00
Andrew Bartlett
0d7ac4bc2c Patch from ctrlsoft to make the pluggable passdb subsystem use an lp_list
rather than a string when configuring mulitple backends.

Also adjust some of the users of get_global_sam_sid() to cope with the fact
that it just might not exist (uninitialised, can't access secrets.tdb).

More places need conversion.

Add some const and remove silly casts.

Andrew Bartlett
(This used to be commit c264bf2ec9)
2002-06-14 02:58:03 +00:00
Andrew Bartlett
0886638844 Patch (from ctrlsoft <jelmer@nl.linux.org>) to poptify testparm, and the
modifications required to suppress the const warnings.

Andrew Bartlett
(This used to be commit ec4f1e9e2f)
2002-06-14 02:06:58 +00:00
Andrew Bartlett
baef1358d2 Add const, kill of useless casts and therefore eliminate warnings.
Andrew Bartlett
(This used to be commit 29490f2147)
2002-06-14 00:47:08 +00:00
Jeremy Allison
d179b19179 Ensure we save any older SIGALRM signal handler.
Jeremy.
(This used to be commit aa0a6f5532)
2002-06-13 22:49:13 +00:00
Jeremy Allison
824375e310 Veto files fix.
Jeremy.
(This used to be commit 1712a7b34a)
2002-06-13 21:20:51 +00:00
Jeremy Allison
5d452f0d00 Merge in mangle fixes from 2.2.
Jeremy.
(This used to be commit 5e2571f424)
2002-06-13 19:29:02 +00:00
Andrew Bartlett
bad738e653 Latest patch from metze <metze@metzemix.de> to move most of samba across
to using SIDs instead of RIDs.

The new funciton sid_peek_check_rid() takes an 'expected domain sid' argument.

The idea here is to prevent mistakes where the SID is implict, but isn't
the same one that we have in the struct.

Andrew Bartlett
(This used to be commit 04f9a8ff4c)
2002-06-13 14:06:08 +00:00
Andrew Tridgell
2154ebce84 a useful script for finding global variables or functions that could
be static

very very slow ... I leave it as an exercise for the reader to make
this O(n) instead of O(n^2)
(This used to be commit 7c035d473c)
2002-06-13 07:06:19 +00:00
Tim Potter
ba590d3dc3 Spelling.
(This used to be commit bfd8a33c68)
2002-06-12 05:50:03 +00:00
Tim Potter
9404025a02 Ignore winbindd_proto.h
(This used to be commit 8e51081333)
2002-06-12 05:27:13 +00:00
Tim Potter
58a3a5720d Spelling fixes.
(This used to be commit de18c785ab)
2002-06-12 05:10:19 +00:00
Tim Potter
3838eabc0e Removed eff_name field from cli_struct as it wasn't being used anywhere.
(This used to be commit aff65bf6c9)
2002-06-12 01:33:30 +00:00
Simo Sorce
2d64b98807 few fixes from Elrond(elrond@samba-tng.org) and Billy O'Connor(billy@oconnoronline.net)
(This used to be commit 88718883e0)
2002-06-11 22:54:06 +00:00
Gerald Carter
366a649d04 merge from 2.2
(This used to be commit 30a0e72572)
2002-06-11 03:22:32 +00:00
Jeremy Allison
de581b91e9 Merge of Jerry's fix from 2.2.
Jeremy.
(This used to be commit 64af68924b)
2002-06-10 21:49:18 +00:00
Andrew Bartlett
959ff024da Remove "sids.h" as it really wasn't being used anywhere, and was exporting
the (now static) global_sam_sid.

The only place it was being used was to return global_sid_NULL to some
uid->sid functions - and I'm not convinced this is correct in any case.

Andrew Bartlett
(This used to be commit e2a76a7fc9)
2002-06-10 12:27:05 +00:00
Andrew Bartlett
97a8dd6d9a With this file being automaticly regenerated, and cleaned up with 'make clean'
I think it should be removed from CVS.  This matches the other proto files.

Andrew Bartlett
(This used to be commit 5a8d573f17)
2002-06-10 09:40:58 +00:00
Andrew Bartlett
e8361a4193 Fix up comment on netbios scopes, and remove paragraph about international
charsets, becouse it really don't apply well with Samba 3.0 and unicode.

Andrew Bartlett
(This used to be commit 43fdd20386)
2002-06-09 13:31:23 +00:00