1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00
Commit Graph

10206 Commits

Author SHA1 Message Date
Andrew Tridgell
8c60a408e1 add a note about relative opens with blank paths - its a re-open!
(not implemented yet)
(This used to be commit bceac9cdde)
2003-02-12 00:41:35 +00:00
Andrew Tridgell
3b562efcbd add a note about a better method for finding netbios name of workgroup
(not implemented yet)
(This used to be commit 8a8cca78ad)
2003-02-12 00:40:41 +00:00
Andrew Tridgell
c713b6aaf5 pull_ucs2_talloc() should pull to a char**, not a void**
(This used to be commit 3cf539421f)
2003-02-12 00:39:36 +00:00
Andrew Tridgell
5b70946744 removed a duplicate copy of smb_io_sid_array()
(This used to be commit 2ef72f9500)
2003-02-11 22:53:57 +00:00
Andrew Bartlett
ef6be9db1e Merge from HEAD: Patch by Anthony Liguori <aliguor@us.ibm.com> to replace scandir() with portable readdir() calls.
Andrew Bartlett
(This used to be commit b9ca0b9ef3)
2003-02-11 21:56:38 +00:00
Andrew Tridgell
8ddccd47c7 added server stubs for lsa_enum_acct_with_right
(This used to be commit aa2abacaf4)
2003-02-11 21:55:48 +00:00
Andrew Bartlett
2d220ef00d Patch from Anthony Liguori <aliguor@us.ibm.com> to remove scandir() portability
madness.

Andrew Bartlett
(This used to be commit 7836b9a58d)
2003-02-11 21:54:36 +00:00
Jim McDonough
270631338d remove trailing 'a' from VFS_MODULES targets...fix build
(This used to be commit fa4961b1fc)
2003-02-11 19:57:17 +00:00
Jeremy Allison
4689a33497 Fixup delete on close torture.
Jeremy.
(This used to be commit b031e81f4f)
2003-02-11 02:29:04 +00:00
Jeremy Allison
e6ac820d81 Fix delete on close semantics to match W2K. I (think:-) I understand it now :-).
Thanks to Nir Livni <nirl@cyber-ark.com> for giving me the test case to
track it down.
Jeremy.
(This used to be commit 41894489e8)
2003-02-11 02:24:51 +00:00
Jeremy Allison
cc99ea0ef0 Fix delete on close semantics to match W2K. I (think:-) I understand it now :-).
Thanks to Nir Livni <nirl@cyber-ark.com> for giving me the test case to
track it down.
Jeremy.
(This used to be commit c98ebb3031)
2003-02-11 02:24:45 +00:00
Shirish Kalele
70f1fcb87b Fix the msdfs proxy handling code in dfsenum to return the cumulative number of
dfs links encountered. Previously the number was being mistakenly reset to 1.
Thanks to Guenther Deschner <gd@suse.de> for pointing this out and a fix.
[Check into SAMBA_3_0]
(This used to be commit 041a1dd543)
2003-02-11 01:45:48 +00:00
Shirish Kalele
f687e95377 Fix the msdfs proxy handling code in dfsenum to return the cumulative number of
dfs links encountered. Previously the number was being mistakenly reset to 1.
Thanks to Guenther Deschner <gd@suse.de> for pointing this out and a fix.
[Check into HEAD]
(This used to be commit 9307942a89)
2003-02-11 01:45:15 +00:00
Gerald Carter
89393d93b0 autogen - cope with autoconf-2.53/2.13 systems (like RH 7.3)
findsmb - use @PERL@
(This used to be commit f869db787b)
2003-02-10 17:31:25 +00:00
Gerald Carter
a9f1ec0d6b autogen - cope with autoconf-2.53/2.13 systems (like RH 7.3)
findsmb - use @PERL@
(This used to be commit 1585385729)
2003-02-10 17:30:20 +00:00
Richard Sharpe
0ad56b68a2 Fix a mistake spotted by Metze
(This used to be commit cf167e9249)
2003-02-10 16:42:24 +00:00
Andrew Bartlett
bb9c664622 Clean up our NTLMv2 code by moving the grunt work into a helper function.
Andrew Bartlett
(This used to be commit 6789e237d7)
2003-02-10 12:22:57 +00:00
Andrew Bartlett
8a20407442 Cleanups: (merge from HEAD)
- use safe_strcpy() instead of pstrcpy() for malloc()ed strings

 - CUPS: a failure in an attempt to automaticly add a printer is not level 0 stuff.

 - Fix up a possible Realloc() failure segfault

Andrew Bartlett
(This used to be commit c1cfc296c2)
2003-02-10 11:47:21 +00:00
Andrew Tridgell
6c66e42d2c added the 'lsaenumacctwithright' command to rpcclient. This allows you
to lookup what SIDs have a particular privilege (that is how
privileges are stored).
(This used to be commit 3ddb5fb0dd)
2003-02-10 11:31:23 +00:00
Andrew Bartlett
baff308f16 As metze mentioned, this is the proper way to find perl...
Andrew Bartlett
(This used to be commit f364921864)
2003-02-10 10:36:09 +00:00
Andrew Bartlett
6fa61ac2a8 perl might not be in /usr/bin/perl, so try and find it in the path.
Perhaps this generated file should be autobuilt on samba.org for the
build farm and the tarballs.

Andrew Bartlett
(This used to be commit b8a07da680)
2003-02-10 09:23:30 +00:00
Andrew Bartlett
c46f8a0249 Use safe_strcpy() instead of pstrcpy() for malloced strings.
Andrew Bartlett
(This used to be commit 333d313c9d)
2003-02-10 09:20:09 +00:00
Andrew Bartlett
a9d598d6bb Failure to find a CUPS printer, when auto-adding printers is not a level 0 error.
Andrew Bartlett
(This used to be commit 79650e08c9)
2003-02-10 09:18:04 +00:00
Andrew Bartlett
ec7a1994b0 Some cleanups:
- Don't use pstrcpy into an allocated string - use safe_strcpy() directly
instead.

- Keep a copy of the 'server_info' attached to the vuid.  In future use this
for things like the session key, homedir and full name instead of current
copies.

- Try to avoid memory leak/segfault on Realloc failure

- clear up #endif comments

Andrew Bartlett
(This used to be commit 162477bb08)
2003-02-10 09:16:05 +00:00
Andrew Bartlett
868d169a40 (only for HEAD at the moment).
Add NTLMv2 support to our client, used when so configured ('client use NTLMv2 =
yes') and only when 'client use spengo = no'.  (A new option to allow the
client and server ends to chose spnego seperatly).

NTLMv2 signing doesn't yet work, and NTLMv2 is not done for NTLMSSP yet.

Also some parinoia checks in our input parsing.

Andrew Bartlett
(This used to be commit 85e9c060ea)
2003-02-09 12:26:58 +00:00
Jeremy Allison
4703248a8e Ensure we return NOSPACE if we can't fast allocate a print job.
Jeremy.
(This used to be commit 82cf8aa747)
2003-02-08 01:04:43 +00:00
Jeremy Allison
d05322efce Ensure we return NOSPACE if we can't fast allocate a print job.
Jeremy.
(This used to be commit 9cd29f2bac)
2003-02-08 01:04:26 +00:00
Andrew Bartlett
8f166a9725 merge from HEAD - x_fileno, not fileno on an XFILE
(This used to be commit e3468d8edc)
2003-02-08 01:01:49 +00:00
Andrew Bartlett
99f9caebe4 One more fix for the difference between FILE and X_FILE.
(This used to be commit 7e56014b28)
2003-02-08 01:00:55 +00:00
Andrew Bartlett
b36a53b0cb Merge from HEAD - don't mix FILE and X_FILE - fixes debian bug
http://bugs.debian.org/178219 where the first 4096 bytes where being chewed
into the FILE buffer, and never available to X_FILE's read.

Andrew Bartlett
(This used to be commit 8af72c1384)
2003-02-08 00:08:23 +00:00
Andrew Bartlett
315e4f513b Ensure we don't get problems between FILE and X_FILE buffers - always use the
x_ varient of the command.

Andrew Bartlett
(This used to be commit 6a028507f0)
2003-02-07 23:39:47 +00:00
Jeremy Allison
5bc835c188 Samba janitors: applying mbp's redundant umask fix.
Jeremy.
(This used to be commit 45d4e58ca5)
2003-02-07 22:52:35 +00:00
Jeremy Allison
9e8fc1ee4e Samba janitors: applying mbp's redundant umask fix.
Jeremy.
(This used to be commit b54f6bf06c)
2003-02-07 22:52:19 +00:00
Jeremy Allison
a90def7e8a Samba janitor: adding mbp's umask patch :-).
Jeremy.
(This used to be commit d4d8d27bf1)
2003-02-07 21:59:51 +00:00
Jeremy Allison
5bff9ad142 Samba janitor: adding mbp's umask patch :-).
Jeremy.
(This used to be commit babbbd9c65)
2003-02-07 21:59:42 +00:00
Gerald Carter
36657d41ce check pointer before dereferencing it
(This used to be commit 786d91d75c)
2003-02-07 16:20:58 +00:00
Gerald Carter
67acaa0026 check pointer before dereferencing it
(This used to be commit 8712bd1f8e)
2003-02-07 16:20:42 +00:00
Volker Lendecke
13f65125ac Invert flag testing
(This used to be commit 05397c526d)
2003-02-07 08:03:37 +00:00
Volker Lendecke
6b703fc40a Revert Flag testing upon abartlet's request ;-)
Volker
(This used to be commit e8f751fe84)
2003-02-07 08:02:18 +00:00
John Terpstra
51bf3e0b76 Added my name to copyright.
(This used to be commit 143df82aeb)
2003-02-07 05:01:06 +00:00
John Terpstra
5eac9f60cc Added extended audit module that logs to smbd log as well as syslog.
(This used to be commit d2fe7e38b2)
2003-02-07 05:00:34 +00:00
John Terpstra
fb0cb8894a Added extended audit module.
(This used to be commit f158bfa233)
2003-02-07 04:56:37 +00:00
John Terpstra
e0a9628bd4 Added audit module that logs info to smbd log file as well as syslog.
(This used to be commit 0ce5f23bdb)
2003-02-07 04:53:15 +00:00
Andrew Tridgell
50edc1a831 merge from head
(This used to be commit fd3216dbcb)
2003-02-07 04:11:36 +00:00
Andrew Tridgell
4dc434c804 make sure we don't run over the end of 'name' in unix_convert()
Thanks to Andrew Bartlett for spotting this.
(This used to be commit b4c210ccb0)
2003-02-07 04:01:36 +00:00
Volker Lendecke
21ee739b83 merge from HEAD
(This used to be commit 4ef6de20cb)
2003-02-06 17:10:38 +00:00
Volker Lendecke
0326e054c3 Make account flags editable with pdbedit.
Volker
(This used to be commit 597c505509)
2003-02-06 16:53:58 +00:00
Andrew Bartlett
0f5ac791db .cvsignore for configure and config.h.in
(This used to be commit 7d48ad967c)
2003-02-06 10:40:51 +00:00
Andrew Tridgell
81356b6269 ignore config.h.in in cvs as generated by autoheader
(This used to be commit 830423abd8)
2003-02-06 09:55:21 +00:00
Andrew Tridgell
a74bdcbee0 ignore configure in cvs
(This used to be commit 0a5ed634d8)
2003-02-06 09:54:51 +00:00
Andrew Bartlett
82bad04844 (merge from HEAD)
Move configure and include/config.h.in out of CVS.

Andrew Bartlett
(This used to be commit 482465bbaf)
2003-02-06 09:22:22 +00:00
Andrew Bartlett
d13a3ce9f0 Remove configure and config.h.in from CVS.
configure and config.h.in is now regenerated by the 'autogen.sh' script.

However, samba.org will run autoconf and autoheader to keep the anonyomous
rsync 'unpacked' areas intact (helping the build farm), and released will ship
with the genereated files.

Andrew Bartlett
(This used to be commit 15bba73dea)
2003-02-06 09:20:32 +00:00
Andrew Tridgell
b4776d89ea added the LSA privileges server backend stubs. Right now they just log
what was requested.
(This used to be commit 64ac6c2bcb)
2003-02-06 05:42:19 +00:00
Jeremy Allison
0edff28a63 Collapse duplicate messages before sending.
Jeremy.
(This used to be commit 105d37474d)
2003-02-05 23:03:58 +00:00
Jeremy Allison
68fdf96637 Collapse duplicate messages before sending.
Jeremy.
(This used to be commit 203959f1c2)
2003-02-05 23:03:47 +00:00
Jeremy Allison
56060dcf9e Fixed type.
Jeremy.
(This used to be commit ae635bb6ec)
2003-02-05 22:09:32 +00:00
Jeremy Allison
7d854ebcc6 Fixed type.
Jeremy.
(This used to be commit 76c3ccf6ed)
2003-02-05 22:09:06 +00:00
Jeremy Allison
15fda89ab6 Check for too many processes *before* the fork.
Jeremy.
(This used to be commit dfb596b012)
2003-02-05 21:17:12 +00:00
Jeremy Allison
35a8dceb20 Check for too many processes *before* the fork.
Jeremy.
(This used to be commit be54b1b831)
2003-02-05 21:16:55 +00:00
Gerald Carter
9a42f660fb CUPS patch to log client name
(This used to be commit 364a4de6df)
2003-02-05 06:37:54 +00:00
Gerald Carter
0adfd3d418 CUPS patch to log client name
(This used to be commit d4168c327b)
2003-02-05 06:37:27 +00:00
Jeremy Allison
42edbfe918 Hold the lock for a much shorter time when allocating a new jobid.
Jeremy.
(This used to be commit 62e274abbb)
2003-02-04 23:52:49 +00:00
Jeremy Allison
d62f32ceeb Hold the lock for a much shorter time when allocating a new jobid.
Jeremy.
(This used to be commit 0b5a0fec82)
2003-02-04 23:52:46 +00:00
Jeremy Allison
eccae5d23a Mem alloc checks.
Jeremy.
(This used to be commit 46ea028169)
2003-02-04 23:44:28 +00:00
Jeremy Allison
0701e642f2 Mem alloc failure checks.
Jeremy.
(This used to be commit 4e33e3f37f)
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 5f13d6b4a0)
2003-02-04 23:43:21 +00:00
Jeremy Allison
41b680fce5 Up the hash table size for printing tdb.c
Jeremy.
(This used to be commit 97848f40ee)
2003-02-04 23:43:03 +00:00
Jeremy Allison
2e45eda386 Ensure we overwrite a tdb if the hash size changes.
Jeremy.
(This used to be commit b300696cb5)
2003-02-04 23:40:43 +00:00
Jeremy Allison
0716caac8b Ensure we overwrite a tdb if the hash size changes.
Jeremy.
(This used to be commit 3497330ff5)
2003-02-04 23:40:17 +00:00
Jim McDonough
ae26a74e79 Try to allow old and new heimdal installs
(This used to be commit 6d593ca174)
2003-02-04 16:33:24 +00:00
cvs2svn Import User
5cafa28cfc This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit 0dfbda0048) 2003-02-04 10:54:02 +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 9e8e352e10)
2003-02-04 10:54:01 +00:00
Andrew Bartlett
b694d0ff53 Merge HEAD: check both the account and password...
Andrew Bartlett
(This used to be commit 830de56bf2)
2003-02-04 10:08:45 +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 49640635b1)
2003-02-04 10:02:43 +00:00
Andrew Bartlett
1fb6f689e7 Merge from HEAD: avoid braindead #define on Tru64.
(This used to be commit 299233fbf2)
2003-02-04 08:27:02 +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 3dfdaa0208)
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 2110901b38)
2003-02-04 01:43:11 +00:00
Jeremy Allison
ce85e52eff Ensure we only ever set fsp->conn in one place.
Jeremy.
(This used to be commit d8a42753cc)
2003-02-04 01:43:10 +00:00
Jim McDonough
d74edbb483 Try to allow old and new heimdal installs
(This used to be commit 29d25382ac)
2003-02-04 01:39:06 +00:00
Jeremy Allison
70a03079a7 Ensure Samba passes the open attribute truncate tests in smbtorture.
Jeremy.
(This used to be commit b3df40bc80)
2003-02-04 01:11:56 +00:00
Jeremy Allison
3e822dd2c6 Ensure Samba passes the open attribute truncate tests in smbtorture.
Jeremy.
(This used to be commit 651db9f242)
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 510cd30a6e)
2003-02-03 23:17:24 +00:00
Herb Lewis
5e391e0092 fix another syntax error
(This used to be commit 678c07f11d)
2003-02-03 22:07:14 +00:00
Herb Lewis
9c36c6094f if @EXTRA_ALL_TARGETS@ is empty, this fixes makefile syntax error
(This used to be commit aef873826f)
2003-02-03 21:58:58 +00:00
Jeremy Allison
824bcb885c Grrr. Kill all BSD-isms... Spotted by Paul Green <paulg@sw.stratus.com>.
Jeremy.
(This used to be commit e96978954b)
2003-02-03 20:38:01 +00:00
Jeremy Allison
ce36f03701 Grrr. Kill all BSD-isms... Spotted by Paul Green <paulg@sw.stratus.com>.
Jeremy.
(This used to be commit 77737b498d)
2003-02-03 20:37:16 +00:00
Gerald Carter
c803605f3d reran autoconf-2.53
(This used to be commit 60955d1b81)
2003-02-03 19:29:15 +00:00
Jim McDonough
cd1a26b87e 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 de8ffcad47)
2003-02-03 18:20:54 +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 44fd5c8275)
2003-02-03 18:10:27 +00:00
Tim Potter
11245e0fc3 smb signing compile fix
(This used to be commit 22d7aa0e67)
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 36b2f6c932)
2003-02-02 18:08:43 +00:00
Simo Sorce
df6d278785 untest fix from HEAD/2.2 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 8498503f1d)
2003-02-02 18:08:37 +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 e6f87c7ee5)
2003-02-02 11:11:24 +00:00
Andrew Bartlett
3719bfd1a0 Merge from HEAD: Send the session key to the client, allowing it to perform SMB
signing.

Andrew Bartlett
(This used to be commit 9bcdb869e5)
2003-02-02 05:22:37 +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 574e8a8ab7)
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 b1c722e306)
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 1a2738937e)
2003-02-01 13:01:31 +00:00
Jelmer Vernooij
39e0b72728 Merge from HEAD: netbsd supports dynamic libs
(This used to be commit f91d4c8fd3)
2003-02-01 12:18:37 +00:00
Jelmer Vernooij
4e8a085923 NetBSD also supports dynamic libs
(This used to be commit dbb29495e7)
2003-02-01 11:00:39 +00:00
Andrew Bartlett
963e88aa90 Merge LDAP filter parinoia from HEAD, a few other pdb_ldap updates and some
misc libads fixes.

Andrew Bartlett
(This used to be commit 9c3a1710ef)
2003-02-01 07:59:29 +00:00
Andrew Bartlett
9c858c3188 Merge from HEAD - convert username/password to unix before checking them in
SWAT.
(This used to be commit 8485c51bc4)
2003-02-01 07:27:01 +00:00
Andrew Bartlett
3b2244526c Merge of signed/unsigned fixes from HEAD.
(This used to be commit e9f56a157b)
2003-02-01 07:25:53 +00:00
Andrew Bartlett
7c1698d302 Bitmap offsets and counts are always positive.
(This used to be commit 8f495e8634)
2003-02-01 06:30:12 +00:00
Andrew Bartlett
e0adea449a Makefile.in change for ldap escaping fixes
(This used to be commit 9f3525967d)
2003-02-01 06:26:16 +00:00
Andrew Bartlett
df3acbadf8 One more signed/unsigned fix
(This used to be commit 013fa87473)
2003-02-01 06:25:08 +00:00
Andrew Bartlett
95a604f5df Non-error connection numbers are always positive
(This used to be commit 69e94440cd)
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 98a4ebf55c)
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 21da8c3bb3)
2003-02-01 06:13:33 +00:00
cvs2svn Import User
21554bfae2 This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit ed336acc6e) 2003-02-01 05:20:12 +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 34b2e558a4)
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 0676b4e35f)
2003-02-01 04:40:00 +00:00
Andrew Bartlett
840e8b3502 A couple more signed/unsigned issues.
(This used to be commit 01d78b828b)
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 fdc14aa6f6)
2003-01-31 20:01:32 +00:00
Jeremy Allison
351db1e6ee Ensure Luke Howard's (C) is added.
Jeremy.
(This used to be commit 6624fa59d7)
2003-01-31 18:34:12 +00:00
Jeremy Allison
6aeddce85e Ensure Luke Howard's (C) is added.
Jeremy.
(This used to be commit 4af9e80521)
2003-01-31 18:33:35 +00:00
Jeremy Allison
bbf9f09ee5 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 07efebb984)
2003-01-30 23:55:58 +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 4ae130bfa8)
2003-01-30 23:55:13 +00:00
Jeremy Allison
bcf6fae786 More scalable print tdb fixes.
Jeremy.
(This used to be commit fa8647eb20)
2003-01-30 23:27:16 +00:00
Jeremy Allison
920287bf6b More scalable print tdb fixes.
Jeremy.
(This used to be commit 7ace900b33)
2003-01-30 23:26:49 +00:00
Jeremy Allison
2a3c62b747 Sync up with 3.0 heimdal.
Jeremy.
(This used to be commit 371f4aca92)
2003-01-30 20:36:59 +00:00
Jeremy Allison
59222d70e2 Re-added the Heimdal stuff tpot removed.
Jeremy.
(This used to be commit e79dc0dade)
2003-01-30 20:36:44 +00:00
Jeremy Allison
13e5145b1a Fix kerberos compile after the tpot massicre :-).
Jeremy
(This used to be commit d63849db6d)
2003-01-30 20:16:18 +00:00
Jeremy Allison
32bfb31947 Revert tpot's HEAD merge which broke the Heimdal build.
Jeremy.
(This used to be commit 1298ecd0b8)
2003-01-30 18:03:34 +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 1fec0f50ed)
2003-01-30 18:01:23 +00:00
Jeremy Allison
f6fbf0c9db Revert tpot's breakage of the Heimdal fixes.
Jeremy.
(This used to be commit 90336900ad)
2003-01-30 18:01:03 +00:00
Gerald Carter
f02f723dde Straus VOS detection patches from Paul Green
(This used to be commit 29962f99f2)
2003-01-30 17:07:28 +00:00
Gerald Carter
a7f3709720 Straus VOS detection patches from Paul Green
(This used to be commit 726181537d)
2003-01-30 17:04:47 +00:00
Tim Potter
cf292aead6 Sync of Heimdal kerberos stuff with HEAD. If this breaks I'm blaming
the dog again.
(This used to be commit 6f89ee2c9d)
2003-01-30 04:40:12 +00:00
Tim Potter
142837e5d3 Merge of controversial 'max log size' fix.
(This used to be commit 71e2b60d8f)
2003-01-30 04:38:39 +00:00
Tim Potter
97027aa5ff Merge of REQ_DEBUGLEVEL messaging and debug_count fixes from HEAD.
(This used to be commit abb112ba2a)
2003-01-30 04:37:18 +00:00
Tim Potter
4d26d86195 The REQ_DEBUGLEVEL message returns a string not a list of integers.
(This used to be commit 08050a93d9)
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 6fee7196d6)
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 d1e8991a76)
2003-01-30 01:42:08 +00:00
Jeremy Allison
b61f89826f 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 33e3e863eb)
2003-01-30 01:41:46 +00:00
John Terpstra
812a531f45 Added "passwd backend" to WIZARD section in SWAT.
(This used to be commit 0104e80637)
2003-01-29 23:38:55 +00:00
Jeremy Allison
f8601187ca Merge tpot's changes to request the correct sizes for user dispinfo
from HEAD. I had to do this for him as he was *so* tired, the poor
chap, plus he has this bad leg, plus the dog ate his homework etc. etc.
Jeremy.
(This used to be commit 1e752b48a1)
2003-01-29 20:15:35 +00:00
Gerald Carter
aed54afc2c playing janitor for abartlet. :-(
"
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 e959a8eb67)
2003-01-29 18:47:57 +00:00
Jeremy Allison
655000e43e Removed duplicate fn to avoid compiler warning. (from HEAD - tpot).
Jeremy.
(This used to be commit 60be9a2f1e)
2003-01-29 17:55:41 +00:00
Andrew Bartlett
6789cc3de6 Merge from HEAD - fix to findsmb by Waider
(This used to be commit 28258224de)
2003-01-29 13:14:18 +00:00
Andrew Bartlett
4c9f6c5a31 Fix to findsmb by Waider
(This used to be commit c32c1bccc2)
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 dceb7820d7)
2003-01-29 12:11:30 +00:00
Jeremy Allison
ef49ed3e06 Remove NULL buffer checks before rpcstr_pull() as they're now done
inside this function. Merge from HEAD (tpot).
Jeremy.
(This used to be commit e20cb9ca55)
2003-01-29 06:53:07 +00:00
Jeremy Allison
d4b82b17fc Return 0 instead of crashing when a NULL source string is passed
to rpcstr_pull() - merge from HEAD (tpot).
Jeremy.
(This used to be commit e781388c59)
2003-01-29 06:51:35 +00:00
Tim Potter
7634efbfec Use new interface for cli_samr_query_dispinfo().
(This used to be commit d3962da61a)
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 2eea2813d9)
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 c3b077f763)
2003-01-29 06:13:18 +00:00
Tim Potter
ffaaa7a5af Removed duplicate fn to avoid compiler warning.
(This used to be commit 55d268fdd6)
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 cdc7c599c7)
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 b9c4cc1195)
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 1e7236371d)
2003-01-29 02:54:36 +00:00
Jeremy Allison
438b5c92d4 Merge tridge's client priv code from HEAD.
Jeremy
(This used to be commit 49739be1e2)
2003-01-29 02:24:12 +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 bf99440398)
2003-01-28 21:31:45 +00:00
Jeremy Allison
734c6d8a51 Merging tridge's privillage client changes from HEAD.
Jeremy.
(This used to be commit 30a33920b4)
2003-01-28 21:09:56 +00:00
Gerald Carter
4571637a4b patch from Paul Green to only build libsmbclient.so on platforms that support shared libraries
(This used to be commit f739a7263d)
2003-01-28 20:55:09 +00:00
Gerald Carter
3a9dfe6384 patch from Paul Green to only build libsmbclient.so on platforms that support shared libraries
(This used to be commit 8ef302f6bf)
2003-01-28 20:11:20 +00:00
Andrew Tridgell
5f9112ac1b cleaned up the lsa_enum_acct_rights function and added a
lsa_add_acct_rights function.

This allows us to add privileges remotely to accounts using rpcclient.
(This used to be commit 2e5e659e09)
2003-01-28 12:52:51 +00:00
Andrew Bartlett
1cba0a7579 Merge from HEAD:
- NTLMSSP over SPENGO (sesssion-setup-and-x) cleanup and code refactor.
  - also consequential changes to the NTLMSSP and SPNEGO parsing functions
  - and the client code that uses the same functions
 - Add ntlm_auth, a NTLMSSP authentication interface for use by applications
   like Squid and Apache.
  - also consquential changes to use common code for base64 encode/decode.
 - Winbind changes to support ntlm_auth (I don't want this program to need
   to read smb.conf, instead getting all it's details over the pipe).
 - nmbd changes for fstrcat() instead of fstrcpy().

Andrew Bartlett
(This used to be commit fbb46da79c)
2003-01-28 12:07:02 +00:00
Andrew Bartlett
6b84af6421 As per a comment by herb a little while back, this should be >=, not == to keep
identical behaviour with previous versions
(This used to be commit 7cbb194b58)
2003-01-28 11:51:55 +00:00
Andrew Bartlett
e11d91e201 Make this an fstrcat(), as this seems to fix some weird issue with the server
name being truncated...  (either way, it's the correct thing to do).

Andrew Bartlett
(This used to be commit a058960c15)
2003-01-28 10:16:07 +00:00
Andrew Bartlett
0041b2c46e The previous patch (NTLMSSP common code factoring) was missing a minor detail -
testing :-).  This gets the 'signiture' after the extended security blob,
rather than over the top of it.

Also move that code to the top of the file, with some of the other util functions.

Andrew Bartlett
(This used to be commit e5c67a0124)
2003-01-28 05:13:07 +00:00
cvs2svn Import User
2326525950 This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit b741abd496) 2003-01-28 03:37:15 +00:00
Andrew Bartlett
dc4bb3bed8 Factor out common code in the NTLMSSP/SPNEGO code.
The idea here is to seperate, as much as possible, the SPNEGO layer from the
NTLMSSP layer.  This not only helps us with protocol correctness, but also
should allow further mechinisms to be added with relitive ease.  I indend to
make the kerberos code use this shortly.

I've never seen the 'zero length blob' form of the anonymous login, so I've
removed that case.

Andrew Bartlett
(This used to be commit a8773c9f82)
2003-01-28 03:37:14 +00:00
Jeremy Allison
b1bce45141 Finally we compile with Heimdal as well as MIT ! Wonder if it works... :-).
Jeremy.
(This used to be commit 1b71786c16)
2003-01-28 03:31:33 +00:00
Gerald Carter
db56e6f8f0 performance patch from HP-UX folks (cant remember who)
(This used to be commit d6c22e693e)
2003-01-28 02:15:11 +00:00
Gerald Carter
99bb7dccb2 performance patch from HP-UX folks (cant remember who)
(This used to be commit 9180e2d062)
2003-01-28 02:14:33 +00:00
Gerald Carter
9c50a316f5 CUPS-PRINTER_CLASS patch from Michael Sweet
(This used to be commit d74d4fe0b0)
2003-01-28 01:58:51 +00:00
Gerald Carter
f473388887 CUPS-PRINTER_CLASS patch from Michael Sweet
(This used to be commit 8d0bde4315)
2003-01-28 01:58:38 +00:00
Jeremy Allison
755e33ee3f Get smbd to link with Heimdal. Still missing some client progs...
Jeremy.
(This used to be commit 85dda43476)
2003-01-28 00:33:21 +00:00
Gerald Carter
c248f658f6 reran autoconf
(This used to be commit f89a99bf88)
2003-01-27 17:57:24 +00:00
Richard Sharpe
412a142d8c One more try to fix the GNU Make dependency
(This used to be commit 84b6f32cff)
2003-01-27 07:57:59 +00:00
Richard Sharpe
cefc3a20ce One more fix ... Things link now if you don't use dynamic RPC stuff
(This used to be commit 58a7744f4a)
2003-01-27 07:12:20 +00:00
Richard Sharpe
e5e456a66c One more try to get rid of the dependency on GNU MAKE
(This used to be commit a96592fb69)
2003-01-27 06:15:27 +00:00
Richard Sharpe
45d481fa7e Fix the dependency on GNU Make introduced by the DYNAMIC RPC stuff.
I have not tested this in a GNU MAKE environment yet.
(This used to be commit 5e99472d5b)
2003-01-27 05:54:30 +00:00
Gerald Carter
f911f03a7d sync with tpot's change to gencache_get() in HEAD
(This used to be commit 305f167db2)
2003-01-24 21:25:12 +00:00
Gerald Carter
7cc3cf9410 masking an assert error in Tim's wins server checking code; needs a proper fix after I talk to tpot
(This used to be commit 607bc0b4fc)
2003-01-24 21:20:31 +00:00
Jeremy Allison
012f7aae4e Fix memory leak found my Leo Qiu <leoxqiu@yahoo.com>.
Jeremy.
(This used to be commit af6e4ea640)
2003-01-24 19:20:01 +00:00
Jeremy Allison
ac49b63c1c Memory leak fix from Leo Qiu <leoxqiu@yahoo.com>.
Jeremy.
(This used to be commit efd52f6ca7)
2003-01-24 19:19:25 +00:00
Jeremy Allison
dd072d240b Fixed typo found by tpot.
Jeremy.
(This used to be commit 7e2bc1fe58)
2003-01-24 19:05:32 +00:00
Richard Sharpe
c924528c86 Commit just a little more infrastructure for HAVE_GETDIRENTRIES
(This used to be commit fdd449fe7b)
2003-01-24 18:58:52 +00:00
Richard Sharpe
3a9beef2b7 At the prompting, start to add infrastructure to detect the presence of
getdirentries. We would also detect getdents if present. This has some
rudimentary support already.
(This used to be commit 916c8784d2)
2003-01-24 18:35:22 +00:00
Gerald Carter
48f6ede4b4 merging [un]signed declaration
(This used to be commit 15be89e72f)
2003-01-24 16:34:54 +00:00
Tim Potter
bb3bf8d3f4 Merge of increment_smbd_process_count() fix from appliance.
(This used to be commit c39c54e6b6)
2003-01-24 04:04:49 +00:00
Jeremy Allison
6cf8ac019e Thanks Meeester Potter, for reverting *all* my Heimdal changes because
I mistyped a comma :-).
Jeremy.
(This used to be commit 04cc149c75)
2003-01-23 18:15:18 +00:00
Tim Potter
644d31ae25 Merge of max log file fixes from appliance:
- smbd/process.c: check log file sizes more often than in
       timeout_processing()

 - lib/debug.c: increment debug_count inside Debug1() instead of
       when log file sizes are checked.
(This used to be commit 303710c206)
2003-01-23 03:02:08 +00:00
Tim Potter
f354d6469a Fixed typo.
(This used to be commit 09d8a8e87f)
2003-01-23 00:21:22 +00:00
Tim Potter
1c4eacafba Fixed typo.
(This used to be commit 9b11ede901)
2003-01-23 00:21:00 +00:00
Tim Potter
f27d292efc Merge: remove dead function.
(This used to be commit 648307ab3d)
2003-01-22 23:33:18 +00:00
Tim Potter
c79eccad91 Merge of kerberos changes to make this branch build again!
(This used to be commit 51b319f57f)
2003-01-22 23:32:33 +00:00
Tim Potter
2ad0d8ccbd Merge of wins server dead list into gencache.tdb
(This used to be commit d1107efa1c)
2003-01-22 23:32:03 +00:00
Tim Potter
eb708fe9c3 Merge: Make torture tools in everything target.
(This used to be commit 087607e03a)
2003-01-22 23:31:04 +00:00
Gerald Carter
069ac15942 fix for CR 1603; provide description of NT_STATUS_PIPE_NOT_AVAILABLE
(This used to be commit fcf63df8bf)
2003-01-22 14:37:50 +00:00
Gerald Carter
72ae2c1159 fix for CR 1603; provide description of NT_STATUS_PIPE_NOT_AVAILABLE
(This used to be commit b063acd906)
2003-01-22 14:34:00 +00:00
Jeremy Allison
e545fe3c0a Get closer to Heimdal compile... Damn. HEAD has different code in
kerberos_verify...
Jeremy.
(This used to be commit e8c4098da6)
2003-01-21 20:43:26 +00:00
Jim McDonough
85ecf66547 Properly display popt errors. Also fix debug to be -d for consistency with other progs.
(This used to be commit c58c84e806)
2003-01-21 14:08:33 +00:00
Jim McDonough
e47fbbd37f revert accidentally committed changes
(This used to be commit 5d43346761)
2003-01-21 14:05:37 +00:00
Jim McDonough
19938c0d2c Properly display popt errors. Also fix debug to be -d for consistency with other progs.
(This used to be commit 97133f7168)
2003-01-21 13:58:16 +00:00
Jeremy Allison
e0762fe08d Fixup proto generation to not include krb5 specific symbols
if no kerberos selected. Noticed by Metze.
Jeremy.
(This used to be commit 1684719695)
2003-01-21 13:33:36 +00:00
Jeremy Allison
18c2948bc5 Fixup proto generation to not include krb5 specific symbols
if no kerberos selected. Noticed by Metze.
Jeremy.
(This used to be commit 0c98f779f0)
2003-01-21 13:33:31 +00:00
Tim Potter
aeaa901a72 Updated some comments.
(This used to be commit f150af98a7)
2003-01-21 06:30:11 +00:00
Jeremy Allison
b0aadff202 More fixes getting us closer to full Heimdal compile....
Jeremy.
(This used to be commit a7ee6ed645)
2003-01-21 06:23:49 +00:00
Jeremy Allison
e97e51f5fd More fixes getting us closer to full Heimdal compile....
Jeremy.
(This used to be commit 193cc4f4fc)
2003-01-21 06:23:10 +00:00
Tim Potter
4d3ec0020d Keep the list of dead WINS servers in gencache.tdb instead of in
memory.  This allows the information to be shared amongst all smbd
processes.

HP CR #1099
(This used to be commit 88d977ecce)
2003-01-21 05:05:10 +00:00
Tim Potter
4d6535dc1a Make the valstr and timeout return pointers optional so a caller can
pass NULL if it doesn't care about the gencache key.
(This used to be commit 9ff4fe7e0d)
2003-01-21 05:01:05 +00:00
Tim Potter
7b69c6a48c Deleted arguments to help output - they didn't work.
(This used to be commit 8b167a45a6)
2003-01-21 03:45:18 +00:00
Gerald Carter
2bdcf68ab6 don't free() auto variables; fixes segfault when looking up RefusePasswordChange registry value
(This used to be commit d89b0bff44)
2003-01-21 03:42:38 +00:00
Gerald Carter
2d12fa4294 don't free() auto variables; fixes segfault when looking up RefusePasswordChange registry value
(This used to be commit b3fc458e9e)
2003-01-21 03:42:26 +00:00
Gerald Carter
8308ec6979 sanity checks from Ken Cross
(This used to be commit 9f35846b8e)
2003-01-21 01:21:33 +00:00
Gerald Carter
3b35519857 sanity checks from Ken Cross
(This used to be commit ec26877f0b)
2003-01-21 01:20:48 +00:00
Jim McDonough
51d3f61750 should be HAVE_KRB5_SET_REAL_TIME (HAVE_ was missing)...fix the build
(This used to be commit 9f1f3cb8bb)
2003-01-20 19:37:11 +00:00
Jim McDonough
ebe53e592a should be HAVE_KRB5_SET_REAL_TIME (HAVE_ was missing)...fix the build
(This used to be commit aceaaad1c2)
2003-01-20 19:31:01 +00:00
Martin Pool
115f3d8470 Add FIXME about dodgy argument parser.
(This used to be commit a580283308)
2003-01-20 00:53:35 +00:00
Jeremy Allison
812e093f02 Merge in more of the SuSE patches for Heimdal. These changes show how
to add a function without an explicit #ifdef HEIMDAL which I'm trying
to avoid.
Jeremy.
(This used to be commit 92ecd0bf0f)
2003-01-19 22:27:32 +00:00
Jeremy Allison
a45db02a82 Merge in more of the SuSE patches for Heimdal. These changes show how
to add a function without an explicit #ifdef HEIMDAL which I'm trying
to avoid.
Jeremy.
(This used to be commit 77aeb262ef)
2003-01-19 22:25:34 +00:00
Gerald Carter
52b65f70ca strip any trailing \'s from reg key names in an open
(This used to be commit 03807cd564)
2003-01-19 05:04:20 +00:00
Gerald Carter
dd99a6a816 strip any trailing \'s from reg key names in an open
(This used to be commit d13f727c4b)
2003-01-19 05:04:03 +00:00
Jim McDonough
e2f2558753 Fix some debug levels (were set to 0 with RPC module patch), and
change one fprintf(stderr,...) to DEBUG.
(This used to be commit 77f8913977)
2003-01-18 20:41:19 +00:00
Gerald Carter
8c6790b6f0 removing extra debug statement
(This used to be commit 657f8c25a5)
2003-01-18 01:41:00 +00:00
Gerald Carter
d7478da11d removing extra debug statement
(This used to be commit 1244ef3dbe)
2003-01-18 01:40:29 +00:00
Jim McDonough
1793c8f143 dlsym() can return NULL validly, so we can't use that as the error test.
dlerror() is the correct way to test.
(This used to be commit 41b1be15ba)
2003-01-17 21:23:14 +00:00
Jim McDonough
9eb368e068 Enable dynamic loading of RPC modules. See docs/textdocs/RPC_PLUGGIN.txt for instructions.
(This used to be commit d51e12df78)
2003-01-17 20:57:26 +00:00
Gerald Carter
edbc2a174f connect to the actual netbios name in smb.conf and not LOCALHOST
(This used to be commit 3e9701f34c)
2003-01-17 14:34:23 +00:00
Gerald Carter
01b805e06b connect to the actual netbios name in smb.conf and not LOCALHOST
(This used to be commit 50d65996e4)
2003-01-17 14:34:07 +00:00
Jeremy Allison
ff8ca2f88b Janitorial duty...
fix some undefined behaviour with increments in C. In theory a
compiler could have produced complete crap for this code. (tridge).
Jeremy.
(This used to be commit 2b4335f062)
2003-01-17 06:40:12 +00:00
Jeremy Allison
074c99a852 Fix reference count bug where smbd's would not terminate with no
open resources.
Jeremy.
(This used to be commit 0173d6fe16)
2003-01-17 06:35:33 +00:00
Jeremy Allison
2b79854f06 Fix reference count bug where smbd's would not terminate with no
open resources.
Jeremy.
(This used to be commit b7e5a2c547)
2003-01-17 06:34:22 +00:00
Andrew Tridgell
96c795cea7 reverted this patch till I sort out the craziness with UNIHDR
(This used to be commit e3d00fa47d)
2003-01-17 06:15:18 +00:00
Andrew Tridgell
ec879eacc2 This removes the 3rd argument from init_unistr2(). There were 240
calls to init_unistr2() in the code and every one of them got the 3rd
argument incorrect, so I thought it best just to remove the argument.

The incorrect usage was caused by callers using strlen() to determine
the length of the string. The 3rd argument to init_unistr2() was
supposed to be the character length, not the byte length of the
string, so for non-english this could come out wrong.

I also removed the bogus 'always allocate at least 256 bytes'
hack. There may be some code that relies on this, but if there is then
the code is broken and needs fixing.
(This used to be commit b9eff31b14)
2003-01-17 04:58:45 +00:00
Andrew Tridgell
ba51d1d888 the 'static' keyword here is useless as we are not declaring a
variable or function
(This used to be commit f2c9c64900)
2003-01-17 04:12:12 +00:00
Andrew Tridgell
31482b2c6b fix some undefined behaviour with increments in C. In theory a
compiler could have produced complete crap for this code.
(This used to be commit 0e90da0810)
2003-01-17 04:09:23 +00:00
Tim Potter
5183aada24 Let's clean up client side ntlmssp!
Removed a dead function.
(This used to be commit a1c790b5ea)
2003-01-17 04:05:28 +00:00
Tim Potter
f1ffe1b1dc Remove unused variable in reply_spnego_ntlmssp_ok
(This used to be commit 60c13a7675)
2003-01-17 01:08:09 +00:00
Richard Sharpe
da0603c0c3 Merge the fix from head about short variables.
(This used to be commit e408bf3291)
2003-01-16 23:29:14 +00:00
Richard Sharpe
2ff1d60bdc Fix an error where the SK Offset was truncated to 16 bits. Variables needed
to be unsigned int (DWORD) not unsigned int (WORD).
(This used to be commit e1e9c29c40)
2003-01-16 23:27:37 +00:00
Jeremy Allison
effbd70c21 Fixed up mutex protection around winbindd logon code. Sync with APP-HEAD.
Jeremy.
(This used to be commit 3d04872499)
2003-01-16 20:08:33 +00:00
Jeremy Allison
6b2eb72df0 Fixed up mutex protection around winbindd logon code. Sync with APP-HEAD.
Jeremy.
(This used to be commit daf179bcd6)
2003-01-16 20:08:26 +00:00
Andrew Bartlett
30ddea1f05 (missed in last commit)
Change the 'cookie' to be the ntlmssp_context, and use the 'auth_context' on
that to store the cookie.  Ensures that simple callbacks can 'just work'.

Also make it clear that we are doing a pull_string into a pstring, not just
any sized buffer.

Andrew Bartlett
(This used to be commit c7793f2718)
2003-01-16 04:40:07 +00:00
Andrew Tridgell
70bf249cfb allow a couple of LSA functions to take a username instead of a SID,
They still accept a SID, it just can be tedious to have to type SIDs
instead of names all the time.
(This used to be commit 665cc9b1ac)
2003-01-16 04:14:59 +00:00
Andrew Bartlett
5b076fe30b Add LIBSMB_OBJ for the new ntlm_auth functionality.
Andrew Bartlett
(This used to be commit 9128aa3dd2)
2003-01-16 03:32:55 +00:00
Andrew Bartlett
d92b21280e Updates to the NTLMSSP code again - moving the base64 decode fuctionality out
of the SWAT code, and adding a base64 encoder.

The main purpose of this patch is to add NTLMSSP support to 'ntlm_auth', for
use with Squid.  Unfortunetly the squid side doesn't quite support what we need
yet.

Changes to winbind to get us the info we need, and a couple of consequential
changes/cleanups in the rest of the code.

Andrew Bartlett
(This used to be commit fe50ca8f54)
2003-01-16 03:29:54 +00:00
Jeremy Allison
e4af5eaca6 More Heimdal changes. Still not compiling with Heimdal yet...
Jeremy.
(This used to be commit c3544c119e)
2003-01-16 02:58:25 +00:00
Jeremy Allison
cdc6c1662d More Heimdal changes. Still not compiling with Heimdal yet...
Jeremy.
(This used to be commit 4333be5732)
2003-01-16 02:58:14 +00:00
Jeremy Allison
4375fe73ba Fist part of fixes to make us compile with Heimdal. Don't explicitly
detect for now, I still have vague hopes of hiding the differences
between MIT and Heimdal with a compatibility layer....
Jeremy.
(This used to be commit a776fbef32)
2003-01-16 02:39:58 +00:00
Jeremy Allison
7dd7d3a96a Fist part of fixes to make us compile with Heimdal. Don't explicitly
detect for now, I still have vague hopes of hiding the differences
between MIT and Heimdal with a compatibility layer....
Jeremy.
(This used to be commit 54d83de8a2)
2003-01-16 02:39:49 +00:00
Andrew Bartlett
078468a147 Fix a signed/unsigned warning.
(This used to be commit b5ae49544d)
2003-01-16 02:02:23 +00:00
Jeremy Allison
1e19c4a609 Add mutex protection around auth calls.
Jeremy.
(This used to be commit af8a5d7968)
2003-01-16 00:27:30 +00:00
Jeremy Allison
d5c4685336 Add mutex protection around auth calls.
Jeremy.
(This used to be commit ea4fe9baad)
2003-01-16 00:27:27 +00:00
Tim Potter
f167d37bcd Merge of holding pattern stuff from HEAD.
(This used to be commit bf8bb62023)
2003-01-15 23:32:47 +00:00
Gerald Carter
d7ed1e1362 s/WIFSIGNALLED/WIFSIGNALED/g
(This used to be commit dc6cda5951)
2003-01-15 23:11:57 +00:00
Gerald Carter
523e406daf s/WIFSIGNALLED/WIFSIGNALED/g
(This used to be commit 251585142b)
2003-01-15 23:11:45 +00:00
Gerald Carter
1c9aee8599 missed a file
(This used to be commit 1df9f3e259)
2003-01-15 22:52:54 +00:00