1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-20 14:03:59 +03:00

9423 Commits

Author SHA1 Message Date
Jeremy Allison
d62f32ceeb Hold the lock for a much shorter time when allocating a new jobid.
Jeremy.
(This used to be commit 0b5a0fec826475c6282177bae88dcdad23c2825d)
2003-02-04 23:52:46 +00:00
Jeremy Allison
0701e642f2 Mem alloc failure checks.
Jeremy.
(This used to be commit 4e33e3f37fd548b9b1ed3c84f673a853b0dc4818)
2003-02-04 23:44:05 +00:00
Jeremy Allison
bfcdd6eed3 Up the hash table size for printing tdb.c
Jeremy.
(This used to be commit 5f13d6b4a009a02c5d5ef9f806f0eb4b52cfe70c)
2003-02-04 23:43:21 +00:00
Jeremy Allison
0716caac8b Ensure we overwrite a tdb if the hash size changes.
Jeremy.
(This used to be commit 3497330ff53a264e433090066b7318c31d833411)
2003-02-04 23:40:17 +00:00
Andrew Bartlett
22e2340155 Add autogen.sh from distcc via mbp.
This to allow us to remove configure from CVS.
(This used to be commit 9e8e352e102b75489b4540d701ce2c67c0f3cf31)
2003-02-04 10:54:01 +00:00
Andrew Bartlett
3354f25489 Actually checking both the account and password tests would be a good idea...
Andrew Bartlett
(This used to be commit 49640635b15f53be6bb28d3d79255abe10c207dd)
2003-02-04 10:02:43 +00:00
Andrew Bartlett
89152846b7 Patch from Edmund Lam <epl@unimelb.edu.au> to fix braindead Tru64 behaviour:
Apparently acl_type is #defined to acl_common.entry_type in their acl.h....

Andrew Bartlett
(This used to be commit 3dfdaa0208ee538631378aa921300d95c596b70c)
2003-02-04 08:26:04 +00:00
Jeremy Allison
349c83f243 Ensure we only ever set fsp->conn in one place.
Jeremy.
(This used to be commit 2110901b381f2a749605c8e8b262fa5ceba11169)
2003-02-04 01:43:11 +00:00
Jim McDonough
d74edbb483 Try to allow old and new heimdal installs
(This used to be commit 29d25382ac394707da372d4af2b828bfcd0d6874)
2003-02-04 01:39:06 +00:00
Jeremy Allison
3e822dd2c6 Ensure Samba passes the open attribute truncate tests in smbtorture.
Jeremy.
(This used to be commit 651db9f242bb649f5efa4f4e59fe1ac0afe82981)
2003-02-04 01:11:33 +00:00
Jeremy Allison
9c1c11dada Got complete (I hope) coverage of the OPEN TRUNCATE ATTRIBUTES test.
Now to make Samba pass it :-).
Jeremy.
(This used to be commit 510cd30a6ec72544d24b79c13fc8a7d1c9415757)
2003-02-03 23:17:24 +00:00
Jeremy Allison
ce36f03701 Grrr. Kill all BSD-isms... Spotted by Paul Green <paulg@sw.stratus.com>.
Jeremy.
(This used to be commit 77737b498d0c1c3efb23891465623f44c03d1801)
2003-02-03 20:37:16 +00:00
Jim McDonough
f589ec26d2 Try to get build working on systems with krb runtime but not devel libs.
Let's not assume that because one dir exists the whole shebang is there...
(This used to be commit 44fd5c827537bd14c2220f62f5e44190247ae556)
2003-02-03 18:10:27 +00:00
Tim Potter
11245e0fc3 smb signing compile fix
(This used to be commit 22d7aa0e673baa1c26205d1c659ba71ad2f94609)
2003-02-02 22:49:28 +00:00
Simo Sorce
a3a1ce50e0 untest fix for wide links parameter bug.
it work properly on 2.2 and the patch apply so I think it should be ok.
(This used to be commit 36b2f6c9320fe46a1b5d2c4e90117b7839c35f21)
2003-02-02 18:08:43 +00:00
Andrew Bartlett
809bb276ad Add some return values, and don't attempt signing for NTLMSSP yet (it uses a
different algorithm).

Andrew Bartlett
(This used to be commit e6f87c7ee5c61f03f81159a8017d31f439c4454a)
2003-02-02 11:11:24 +00:00
Andrew Bartlett
28e3e48431 Send the user's session key in the SAMLOGON reply, so that a member server can
use smb signing.

Andrew Bartlett
(This used to be commit 574e8a8ab7c94ecd9113df42e395e83632980675)
2003-02-02 05:10:26 +00:00
Andrew Bartlett
ac2eeb7a8f More signing updates - start checking that the server isn't being spoofed.
Andrew Bartlett
(This used to be commit b1c722e306533babeffeba9d8c7dcfa00e019423)
2003-02-02 00:11:12 +00:00
Andrew Bartlett
2f5d3e7a64 We now have client-side SMB signing support!
This checking allows us to connect to Microsoft servers the use SMB signing,
within a few restrictions:

 - I've not get the NTLMSSP stuff going - it appears to work, but if you break
the sig - say by writing a zero in it - it still passes...
 - We don't currently verfiy the server's reply
 - It works against one of my test servers, but not the other...

However, it provides an excellent basis to work from.  Enable it with 'client
signing' in your smb.conf.

Doc to come (tomorrow) and this is not for 3.0, till we get it complete.

The CIFS Spec is misleading - the session key (for NTLMv1 at least) is the
standard session key, ie MD4(NT#).

Thanks to jra for the early work on this.

Andrew Bartlett
(This used to be commit 1a2738937e3d80b378bd0ed33cd8d395fba2d3c3)
2003-02-01 13:01:31 +00:00
Jelmer Vernooij
4e8a085923 NetBSD also supports dynamic libs
(This used to be commit dbb29495e7cd94b4ad07efd656d021d9551f5eb6)
2003-02-01 11:00:39 +00:00
Andrew Bartlett
7c1698d302 Bitmap offsets and counts are always positive.
(This used to be commit 8f495e8634a1777c4b03d3ec07c76f905ff2fb98)
2003-02-01 06:30:12 +00:00
Andrew Bartlett
e0adea449a Makefile.in change for ldap escaping fixes
(This used to be commit 9f3525967d3a55a0156544733a1e83711bf4be78)
2003-02-01 06:26:16 +00:00
Andrew Bartlett
df3acbadf8 One more signed/unsigned fix
(This used to be commit 013fa874733566169ecefb25458d26065190f302)
2003-02-01 06:25:08 +00:00
Andrew Bartlett
95a604f5df Non-error connection numbers are always positive
(This used to be commit 69e94440cd89a19bbcebc49d87836153b452da47)
2003-02-01 06:24:07 +00:00
Andrew Bartlett
b7ee989aa8 Prompted by RedHat bugzilla bug #77999, convert the user's username and
password from 'display' to 'unix' before we check them.

Andrew Bartlett
(This used to be commit 98a4ebf55cfce9da2c187d89a4f9c7b34e5f999e)
2003-02-01 06:17:32 +00:00
Andrew Bartlett
97716129f5 More ldap parinoia - if we ever get more than one result, bail. The order we
get them in should be indeterminate, so just picking the first one would be
bad...

Andrew Bartlett
(This used to be commit 21da8c3bb39c507eb90865549c3bb3538dcea138)
2003-02-01 06:13:33 +00:00
Andrew Bartlett
c2b134cc3b Always escape ldap filter strings. Escaping code was from pam_ldap, but I'm to
blame for the realloc() stuff.

Plus a couple of minor updates to libads.

Andrew Bartlett
(This used to be commit 34b2e558a4b3cfd753339bb228a9799e27ed8170)
2003-02-01 05:20:11 +00:00
Andrew Bartlett
cf4e0982fd Make it clear that the magic value is (size_t)-1.
Andrew Bartlett
(This used to be commit 0676b4e35f2ab5b58c44df9fe2eef112425d6013)
2003-02-01 04:40:00 +00:00
Andrew Bartlett
840e8b3502 A couple more signed/unsigned issues.
(This used to be commit 01d78b828b89f04b70b53ded01a7f4b356979317)
2003-02-01 04:39:15 +00:00
Jeremy Allison
d7f253609d Added first part of attribute matrix tests. Not run and compiled in right now...
Jeremy.
(This used to be commit fdc14aa6f67b95350796cd1075a3910e3e5d84b6)
2003-01-31 20:01:32 +00:00
Jeremy Allison
351db1e6ee Ensure Luke Howard's (C) is added.
Jeremy.
(This used to be commit 6624fa59d749b0c0d6aacc35b9b6ba2b567d6eb4)
2003-01-31 18:34:12 +00:00
Jeremy Allison
b102e79e75 Add 3 second timeout when terminating server and sending print notify
messages. Stops build-up of large numbers of smbd's waiting to terminate
on large print throughput.
Jeremy.
(This used to be commit 4ae130bfa82be60de6a6f357f65207fcb24f45fb)
2003-01-30 23:55:13 +00:00
Jeremy Allison
bcf6fae786 More scalable print tdb fixes.
Jeremy.
(This used to be commit fa8647eb208a971063039c24da849021c5e25267)
2003-01-30 23:27:16 +00:00
Jeremy Allison
2a3c62b747 Sync up with 3.0 heimdal.
Jeremy.
(This used to be commit 371f4aca9204f3c093af622ec6c9ea7c5145bf85)
2003-01-30 20:36:59 +00:00
Jeremy Allison
13e5145b1a Fix kerberos compile after the tpot massicre :-).
Jeremy
(This used to be commit d63849db6d02b1a9430072e6e15a67e1c526e5e7)
2003-01-30 20:16:18 +00:00
Jeremy Allison
0414b4ac93 Stop tpot from trampling over my Heimdal fixes by moving some of them
to HEAD :-).
Jeremy.
(This used to be commit 1fec0f50ed0e750afec5cdf551fcd37ef4858e94)
2003-01-30 18:01:23 +00:00
Gerald Carter
a7f3709720 Straus VOS detection patches from Paul Green
(This used to be commit 726181537db6bdd299fd9256a5e6def6b4b8ae33)
2003-01-30 17:04:47 +00:00
Tim Potter
4d26d86195 The REQ_DEBUGLEVEL message returns a string not a list of integers.
(This used to be commit 08050a93d9c5b2276c4eaf933974607cf11a1876)
2003-01-30 04:01:21 +00:00
Tim Potter
0310697963 Move debug level message handling into debug.c from messages.c
Removed duplicate message_register() for REQ_DEBUGLEVEL message.
(This used to be commit 6fee7196d695ca813a301b1e6d7da687b7e7bda5)
2003-01-30 04:00:28 +00:00
Jeremy Allison
f26591b3de Fix for interesting resource constraint condition. When all opens are
level 2 and a request for open with no oplock is received then the
smbd should send *synchronous* break messages, not asynchronous,
otherwise it spins very rapidly, releasing the lock, sending the
'break to none' messages and then re-acquiring the lock before
any other process has a chance to get the lock and remove it's own
oplock (at least on linux).
Jeremy.
(This used to be commit d1e8991a76a57b7d96dd7db3c1d9bbf5b28da88e)
2003-01-30 01:42:08 +00:00
Andrew Bartlett
4c9f6c5a31 Fix to findsmb by Waider
(This used to be commit c32c1bccc27f10e2f44f3e7f3778aae38bba8f25)
2003-01-29 13:13:00 +00:00
Andrew Bartlett
cbe8213a62 Make the vampire code use just pdb calls - allowing better operation on systems
that are not configured with an add user script, and have an _nua backend for
storage.

We really need to get the PDB backends out of the IDMAP game...

Andrew Bartlett
(This used to be commit dceb7820d71ce624de60ce8f729d5d3711b64152)
2003-01-29 12:11:30 +00:00
Tim Potter
7634efbfec Use new interface for cli_samr_query_dispinfo().
(This used to be commit d3962da61a5717dda7e99996bbeb4735d4373041)
2003-01-29 06:24:13 +00:00
Tim Potter
c21af45555 Pass down max_size parameter to cli_samr_query_dispinfo() instead of
using a hardcoded value later on.

Added a helper function that returns the observed values for
max_entries and max_size for each cli_samr_query_dispinfo() call.
These values were obtained from watching the NT4 user manager
application with ethereal and are the only ones that can enumerate a
60k user domain reliably under Windows 2000.
(This used to be commit 2eea2813d9adc414f0a7ea074826b23697f376ee)
2003-01-29 06:20:08 +00:00
Tim Potter
9ce596b2a0 Pass down max_size parameter to init_samr_q_query_dispinfo() instead
of hardcoding it to 0xffff.
(This used to be commit c3b077f763d94ba063b2d4231cd5d411e44933e7)
2003-01-29 06:13:18 +00:00
Tim Potter
ffaaa7a5af Removed duplicate fn to avoid compiler warning.
(This used to be commit 55d268fdd67e42244128dae8614d0e4aa2eb2da2)
2003-01-29 05:16:16 +00:00
Tim Potter
e536c2e9d3 Remove NULL buffer checks before rpcstr_pull() as they're now done
inside this function.
(This used to be commit cdc7c599c72119e96a2a3d392458cd6d52bf56a5)
2003-01-29 02:57:03 +00:00
Tim Potter
308efc0337 Return 0 instead of crashing when a NULL source string is passed
to rpcstr_pull()
(This used to be commit b9c4cc119588d6a564f0aaf12fd2ef867a42aeb8)
2003-01-29 02:55:39 +00:00
Tim Potter
1394248a10 Quieten debug about gencache.tdb not being able to be opened.
Perhaps we should try to open O_RDONLY if O_RDWR fails?
(This used to be commit 1e7236371d2b766b161acbb0c950cd3bb4a6ede7)
2003-01-29 02:54:36 +00:00
Andrew Tridgell
79b26867c0 added LsaRemoveAccountRights
this now gives us complete remove privileges control in the client
libs, so we are in good shape for starting on the server side.
(This used to be commit bf99440398db86f46233eb2f5adddffb61280a1b)
2003-01-28 21:31:45 +00:00