Jeremy Allison
c032c2b364
Added xstrdup, removed static version from smbpasswd.c
...
Jeremy.
(This used to be commit d01a9e5974d80ee8be2f7a20aeaae5826325d035)
2001-10-22 02:38:45 +00:00
Jeremy Allison
96ef1b0eb2
Added xmalloc - calls smb_panic on zero size or malloc fail.
...
Added xmemdup - calls xmalloc.
Made data_blob() call xmemdup.
Defensive programming (I still hate the no error checking... :-).
Jeremy.
(This used to be commit 2cc262278f9d4892cf2485d7a73d88bc0e7559a8)
2001-10-22 02:34:41 +00:00
Jeremy Allison
cfd68eaac4
Ok, I know it's a language thing and it shouldn't matter.... but a kerberos
...
name is a "principal", not a principle. English majors will complain :-).
Jeremy.
(This used to be commit b668d7d656cdd066820fb8044f24bcd4fda29524)
2001-10-21 20:51:27 +00:00
Tim Potter
e68daea2bd
Fix for fussy Solaris compiler.
...
(This used to be commit d50005d4c118ae32d1ddbdee4feec479db4682b9)
2001-10-21 07:01:01 +00:00
Andrew Tridgell
51bc5f128c
patch for neater output() function from vance
...
(This used to be commit 2472ecf7fc510115489baf0a888b511446b9c1fd)
2001-10-21 06:04:46 +00:00
Andrew Bartlett
c41b64d814
Fix for compilation on non-krb5 systems
...
(This used to be commit 44bdb8b12b3d6a7bf3148c2ac651a79f10776db6)
2001-10-21 04:08:15 +00:00
Andrew Tridgell
a0a42f2c1f
change smbd to use HOST/hostname principle form until I work out how
...
to use the other form in netjoin
smb_wct is a char, not a word
(This used to be commit 3dbb48b188980cf6c869dc762e3039dd375bf392)
2001-10-21 03:27:13 +00:00
Andrew Tridgell
42a4e6890c
change smbd to use HOST/hostname principle form until I work out how
...
to use the other form in netjoin
(This used to be commit 58cfa13d6576bd34ceed7ba6ad52bced96e50544)
2001-10-21 03:26:24 +00:00
Andrew Tridgell
bbcd9deb07
made smbclient cope better with arbitrary principle forms
...
(This used to be commit d1341d74b7aa5f6b3f72e5409b245f87f1ad670b)
2001-10-21 03:25:34 +00:00
Andrew Tridgell
cbe31055f8
support both old and new kerberos OIDs
...
(This used to be commit eac164c7e650a8f855e7b662b126a5dfc5516927)
2001-10-21 00:11:22 +00:00
Andrew Tridgell
b7331220c6
fixed the spnego detection code in session setup
...
this gets share mode working again
(This used to be commit 8286e5307ca47f14d27ee0d9bc9700d52151d56a)
2001-10-21 00:10:16 +00:00
Tim Potter
7cd889f566
Converted a bunch of 0x85 constants to SMBkeepalive.
...
(This used to be commit b16a15a13ed7d267c6366abaeeb3ccafa5776f5e)
2001-10-20 23:34:40 +00:00
Jeremy Allison
88b55f47b4
Move from timestamp to gen count file id's for finding oplocked files
...
in a tdb.
Jeremy.
(This used to be commit 058ae6b58f61ef46013dd076af3a84de5fbaaab1)
2001-10-20 21:59:34 +00:00
Jim McDonough
e5868e1f57
Use asprintf, do bounds check, better rc logic
...
(This used to be commit 6a734158d92663873b7a9df517bec45a27ee9790)
2001-10-20 21:50:51 +00:00
Andrew Tridgell
60747ab66e
crude fix for anonymous session setup with extended security
...
negotiated
(This used to be commit b3caf2109090cb2b97a829913bee7e50e7eacba8)
2001-10-20 11:47:44 +00:00
Andrew Tridgell
93645be91f
better krb5 error handling (thanks andrewb!)
...
(This used to be commit fd3a3daef3b8f7140e7006d30d23d739ac3aad2f)
2001-10-20 06:50:24 +00:00
Andrew Tridgell
9884de2d3b
finished auth when we get a valid kerberos ticket
...
smbd now works with kerberos authentication if you use a MIT KDC and
smbclient. Next step is to make it work with a windows client
(This used to be commit e0c99e1f3708b155b8db99950f9ac6e27763368f)
2001-10-20 06:31:25 +00:00
Andrew Tridgell
e82c34aab5
add non_root_mode() check
...
(This used to be commit 96f910bae510fb45e2f1181c1e3ad607a50a64d7)
2001-10-20 06:29:52 +00:00
Andrew Tridgell
b67ca9cf8c
removed an unused variable
...
(This used to be commit 9355f251656d0233395dae6978c58f4e520e069b)
2001-10-20 06:28:11 +00:00
Andrew Tridgell
f26677441a
don't need KRB5_DIR define
...
(This used to be commit a899086a51546220247390ac641f51b1df2f5496)
2001-10-20 06:27:48 +00:00
Andrew Tridgell
4245accc03
fixed LDSHFLAGS when using non-standard lib locations
...
(This used to be commit d23772c306c641a74b5c08c68550c684c206b1a5)
2001-10-20 01:23:27 +00:00
Andrew Tridgell
42fd55bd61
quick fix for krb5 compilation. I've told vance how to fix this module
...
properly and will wait for him to send a patch
(This used to be commit 7adad774d872a3f2424f49f364416e7c42409b90)
2001-10-20 00:48:28 +00:00
Jeremy Allison
07f54cb592
Ensure we mask off deny modes correctly on being set (this shouldn't have
...
caused problems but is tidier).
Fix debug statement in locking.c
Jeremy.
(This used to be commit eac6bbd24ebf00b35e50953bc11186111dc39059)
2001-10-19 23:56:21 +00:00
Jeremy Allison
bc0643b47c
Added include guards around file.
...
Jeremy
(This used to be commit dac22352cf051f301edf066cac8db81d24c7c459)
2001-10-19 22:01:55 +00:00
Jim McDonough
d1006a96d0
Add RAP net share add support
...
(This used to be commit a70bc077a1ecc4b42254f83327c8d80c618e95f6)
2001-10-19 19:13:11 +00:00
Jean-François Micouleau
4be5c040b6
print in a human readable format when the password expired.
...
J.F.
(This used to be commit 255b197a5c92bfc18a567613bbffb013fd0a834d)
2001-10-19 17:30:05 +00:00
Jim McDonough
78b109e43b
Add build of net utility
...
(This used to be commit 53247f5880150ed7ee831d68a5c0fdbcb1422194)
2001-10-19 17:00:11 +00:00
Jim McDonough
10d0331754
Add command-line remote management utility
...
(This used to be commit 50c243518aa7996e697876096073598a3b5a8d3a)
2001-10-19 16:51:26 +00:00
Jim McDonough
d095275326
Add additional client RAP calls
...
(This used to be commit b94427ddd55c177145da2665afe3d3a3682db031)
2001-10-19 16:50:15 +00:00
Jim McDonough
b24ceaa837
Add rap.h for net utility and libsmb
...
(This used to be commit 3545de4773438f859e64b3578c2bbf706257eced)
2001-10-19 16:46:34 +00:00
Jim McDonough
6061a10d98
Add header for common RAP definitions
...
(This used to be commit 7c38daa54ac9a7c3cc36dbbf82d0a9f8c04ca0b9)
2001-10-19 16:34:10 +00:00
Jeremy Allison
f1cd7f14e2
Fixed issues with changenotify only being called once in VC++.
...
Jeremy.
(This used to be commit ce59e4a7729c45f3a84d877e1dbdfffa984060b9)
2001-10-19 09:41:35 +00:00
Jeremy Allison
4bb9cebf84
Tidy up debug in notify code.
...
Jeremy.
(This used to be commit 7707c5e07385ce5ac3732715d586ad6c6b41de65)
2001-10-19 08:37:32 +00:00
Tim Potter
e3e9c52b7a
Fixed some memory leaks introduced by connection handling rewrite, as well
...
as one memory leak that has been there for ages!
Changed the way talloc is used in get{pw,gr}nam routines.
(This used to be commit d52cd1854fdff18c223d6dd1eca0e26f1f0bf01b)
2001-10-19 08:22:52 +00:00
Tim Potter
52995a5f7d
Converted some more functions to create and dispose of a talloc context on a
...
per-call basis rather than per-connection.
Had a bit more of a reformatting fest.
Still need to run it through insure and handle downed connections.
(This used to be commit 46fe5a8fb96974e1323bc3e5d94fda74edbeb852)
2001-10-19 01:46:43 +00:00
Jeremy Allison
6cc3953196
Restored old Bmpx code - actually used by OS/2.
...
Jeremy.
(This used to be commit 7c1688fd67c1bda1477aaf870371c825280db870)
2001-10-19 00:56:03 +00:00
Jeremy Allison
b49b5b9481
client : Fixed error return.
...
uid.c: Added missing void.
Jeremy.
(This used to be commit c2e06ed2219860479868fd1ac18013ae4f891e10)
2001-10-19 00:02:36 +00:00
Jeremy Allison
c416ff851b
Merge the become_XXX -> change_to_XXX fixes from 2.2.2 to HEAD.
...
Ensure make_conection() can only be called as root.
Jeremy.
(This used to be commit 8d23a7441b4687458ee021bfe8880558506eddba)
2001-10-18 20:15:12 +00:00
Jeremy Allison
9a903a08a7
Merge Gerry's %G change from 2.2.2.
...
Jeremy.
(This used to be commit d8262286ddb6105a9d3b0730912447ea2401a3fb)
2001-10-18 18:52:01 +00:00
Andrew Tridgell
904fca7684
got rid of start_background_queue()
...
THIS WAS A DISASTER!
it created hundreds of processes on the build farm machines, which we
can't kill.
(This used to be commit 04479db879d04fb329022c3282d92bab94a48576)
2001-10-18 10:40:36 +00:00
Andrew Tridgell
5ad7448359
the beginnings of kerberos support in smbd. It doesn't work yet, but
...
it should give something for others to hack on and possibly find what
I'm doing wrong.
(This used to be commit 353c290f059347265b9be2aa1010c2956da06485)
2001-10-18 10:26:06 +00:00
Tim Potter
f0e0dd6507
Renamed vfs_init() to smbd_vfs_init() to allow vfs modules to compile.
...
(This used to be commit 7c3542ba8764be48b88255dd7f73ea6d87be10ac)
2001-10-18 00:27:20 +00:00
Tim Potter
75746fde8d
Now compiles under head branch.
...
Funny, I don't remember using libtool in the original Makefile...
(This used to be commit 5392b3fc1279cac64245e311bbc16175e6fd4a7b)
2001-10-18 00:21:48 +00:00
Andrew Tridgell
adfa547aab
removed some debug code
...
(This used to be commit b9e1f05393aaadf1fbe09338417977e2a3cb4559)
2001-10-17 10:46:46 +00:00
Andrew Tridgell
b728042334
added basic NTLMSSP support in smbd. This is still quite rough, and
...
loses things like username mapping. I wanted to get this in then
discuss it a bit to see how we want to split up the existing
session setup code
(This used to be commit b74fda69bf23207c26d8b2af23910d8f2eb89875)
2001-10-17 08:54:19 +00:00
Jeremy Allison
d731149a41
Fixed inconsistent definitions of InBuf/OutBuf/last_char.
...
Noticed by albert chin (china@thewrittenword.com ) .
Jeremy.
(This used to be commit f5781f11eb924bdf32d20819c58a782493f4b239)
2001-10-17 01:38:23 +00:00
Tim Potter
5e0d7b6966
charset_initialise() doesn't exist anymore.
...
Why don't we build smbwrapper on a build farm machine to spot this sort of
thing earlier?
(This used to be commit 234943c066f7cc549b84980cef51116f30f3f7c4)
2001-10-17 00:11:02 +00:00
Jeremy Allison
ca4c584fb5
Optimisation to send only to correct processid.
...
Jeremy
(This used to be commit 3807c747a4522c719fe67b876e4a3bd92bffcf7f)
2001-10-16 23:52:14 +00:00
Jean-François Micouleau
3f1d100842
very simple asynchronous "lpq" thread patch
...
To speed up operations with the lpq command, it's now run in a separate
asynchronous process.
Opening the Printers folder on NT is now fast ;-) I think even faster than
with a ** server
Jeremy, you should look at that patch to include it in 2.2.3
J.F.
(This used to be commit 8ef9dff3074e7979579ce66a204e8ec7bf62a587)
2001-10-16 23:16:00 +00:00
Jean-François Micouleau
375dcb9a8b
Fix some unicode string error.
...
I'm wondering if I have to audit *all* the rpc code for that kind of
trouble ;-) Oh well I've done it twice already, I can do it a third time
;-)
J.F.
(This used to be commit 6be8ea28f98d71e04de18b317f4d7a99b55209e8)
2001-10-16 22:42:24 +00:00