1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-24 02:04:21 +03:00

2160 Commits

Author SHA1 Message Date
Andrew Bartlett
2cb0b91ed1 Store the type of 'sec channel' that we establish to the DC. If we are a
workstation, we have to use the workstation type, if we have a BDC account,
we must use the BDC type - even if we are pretending to be a workstation
at the moment.

Also actually store and retreive the last change time, so we can do
periodic password changes again (for RPC at least).

And finally, a couple of minor fixes to 'net'.

Andrew Bartlett
(This used to be commit 6e6b7b79edae3efd0197651e9a8ce6775c001cf2)
2003-04-16 10:20:14 +00:00
Simo Sorce
d5135e9886 strncat get sometimes optimized to strcat by glibc and that triggers our
"don't use strcat" define

reworked to snprintf
(This used to be commit c37467651becedf3e6b142b53d6675e973970249)
2003-04-12 17:40:17 +00:00
Gerald Carter
a056cd8845 * We must return 0x2 as the majorversion for nt4 to upload drivers
* fix bug found by clobber_region()
(This used to be commit ad2765bb5e0c1c4d8f12583e49df5b1bc7ffc389)
2003-04-11 23:50:21 +00:00
Gerald Carter
04bb7e808a cleanup lanman printing= for win98; device type is LPT1:; patch by Steve L.
(This used to be commit beedde03fcdd37b567661d96d97efaac640601bd)
2003-04-11 23:29:23 +00:00
Tim Potter
065561932c A new RPC pipe! The \pipe\echo named pipe is for testing large RPC
requests and responses and is only compiled in when --enable-developer
is passed to configure.  It includes server and client side code for
generating and responding to functions on this pipe.  The functions are:

 - AddOne: add one to the uint32 argument and return ig
 - EchoData: echo back a variable sized char array to the caller
 - SourceData: request a variable sized char array
 - SinkData: send a variable sized char array and throw it away

There's a win32 implementation of the client and server in the
junkcode CVS repository in the rpcecho-win32 subdirectory.
(This used to be commit 4ccd34ef836eba05f81dc2da73fd7cfaac201798)
2003-04-11 04:09:14 +00:00
Jeremy Allison
0294da3caa Fix from Steve Langasek <vorlon@netexpress.net> for non-RPC printing.
Jeremy.
(This used to be commit 186d53cbc1642ee5dd1daf0277dc08de621eede2)
2003-04-09 22:34:58 +00:00
Tim Potter
25b1c37f6f Remove duplicate "tallocdump" message from tdb messaging system. The
same functionality exists as "pool-usage".

Move initialisation of this and dmalloc messages inside message_init().
(This used to be commit af6ecafcbbf65dbedc49b3a86da39ce608bdadac)
2003-04-07 06:13:36 +00:00
Jeremy Allison
c3715824c7 Re-fix regression noticed by Tom Schaefer <tom@umsl.edu> due to
correct delete on close semantics change.
Jeremy.
(This used to be commit 55d0ab0e307e16389cc470fa04a9d7b44043a4da)
2003-04-04 21:58:42 +00:00
Jeremy Allison
db5f60098a Fix for very subtle POSIX lock interaction race condition found by
Herb. We need to unlock POSIX locks before notifying pending lock
processes.
Jeremy.
(This used to be commit eb861e9d0fd79bbd9401ced8e55fe603c2aa7c1e)
2003-04-04 20:38:25 +00:00
Jelmer Vernooij
46a6e1f0de Add static
(This used to be commit 674d0ca5d84b64be395fbeff773c8dd8aeb1518c)
2003-04-02 17:10:05 +00:00
Simo Sorce
a557af96e9 THE Idmap patch :-)
includes a --with-idmap=no switch to disable idmap usage if you find
problems.

cosmetic fixes and param aliases to separate winbind from idamp roles.

A temporarily remote idmap winbind compatibility backend.
As I have time I will further change code to not call directly winbind
(partly done but not tested) and a specilized module will be built in place
for the current glue hack.

The patch has been tested locally in my limited time, the patch is simple and
clear and should not reserve problems, if any just disable it.

As usual, comments and fisex are welcome :-)

Simo.
(This used to be commit 02781320476ed1b7ee5d943fa36f9a66ab67f208)
2003-04-02 10:36:02 +00:00
Andrew Tridgell
d84acbc8aa changed the order of checking whether a SID is a UID or a GID in posix
acls. This is needed because sid_to_uid always claims that the sid is
a user, due ot a change I made some months back.

This change was suggested by Chere Zhou, but is really an interim
measure. Chere is looking at a longer term solution.
(This used to be commit b3edfa91964d2edfd1692fa58f98de00405e14c4)
2003-04-01 11:12:42 +00:00
Alexander Bokovoy
9d3b00b4bf Fix vfs to work with P_LIST-ed lp_vfsobj() -- the traversal is reversed. Based on patch from Metze
(This used to be commit 2a86ef78282d33e16007d50095614713189ce4b5)
2003-03-31 16:27:11 +00:00
Jelmer Vernooij
96b5d5bdfd - Support absolute paths in vfs and charset modules
- Fix typo in Makefile.in
- Fix compatibility with older vfs modules (from patch by metze)
- Build some modules shared by default and some static (and fall
  back to static when dlopen() is not available)
(This used to be commit aa36f462d95f8a3a3a81a89c210b98a6f9fd295f)
2003-03-31 15:06:34 +00:00
Andrew Bartlett
8b48212245 NT4 is particularly fussy about getting this right.
Andrew Bartlett
(This used to be commit 055a499afb0cab87529f3f991765af95f11cc364)
2003-03-31 02:30:49 +00:00
Andrew Bartlett
663e5a380c Success is not a level-0 issue...
Andrew Bartlett
(This used to be commit 54e736e6f46a8db6db64a1025daa33fffcbde799)
2003-03-31 01:30:19 +00:00
Andrew Bartlett
ea279249c9 Don't try and dlsym or dlclose a NULL pointer.
The new modules system does not always dlopen() it's modules, and when it
does, it keeps them open for the life of the server, not the life of the
connection.

This caused a segfault on every tree disconnect!

Andrew Bartlett
(This used to be commit c76ecbae6295022d031d2e286f2d67e5d08946a2)
2003-03-31 01:08:59 +00:00
Gerald Carter
750468d427 update copyright notice since it we are now almost 4 months into 2003
(This used to be commit 6a17c23a549e1e2ce2b428421fbf0b81b37ad0c1)
2003-03-30 23:03:27 +00:00
Volker Lendecke
17d188d999 This changes our handling of invalid service types that the
client requested on tconx. We now return the same error
code like NT4SP6 and W2kSP3 return.

TCONDEV is a little test for this.

Volker
(This used to be commit 6ab88f31d6773f16baff8421ec9e530461cc8f93)
2003-03-30 16:36:21 +00:00
Andrew Bartlett
87e2a1b9db Allow the new modules system to function with builtin vfs modules.
If we don't have a vfs path set, just pass the original file name.

In future, we need to seperate the default path as a seperate paramater.

Andrew Bartlett
(This used to be commit 93c91a2e9d325a4b2d092e144e63f743e6e049bc)
2003-03-28 05:24:21 +00:00
Gerald Carter
0995fb1eef fix up IPC/LPT:/A: devicetype in tcon_and_X
(This used to be commit a9ccae314fdb4b96115d31083f1a4b26209d597c)
2003-03-28 02:00:19 +00:00
Andrew Tridgell
893cbb7592 it is possible for some of the real time signals to be used by glibc,
which then changes SIGRTMIN. It is also possible for bash to leave
some real time signals blocked at startup. This fixes both problems.
(This used to be commit 8d45bf644aecb6993c2a82b86a4527b33029ed8f)
2003-03-28 01:05:32 +00:00
Jelmer Vernooij
85a1207a47 Put backwards compatibility support for old modules in a seperate function
(This used to be commit 2dd00078eec736797e65f69ad00297068e57cd9a)
2003-03-27 16:33:59 +00:00
Andrew Bartlett
75d4193e63 local_gid_to_sid() could use pdb_ldap, which for now requires ROOT.
(This used to be commit a51ce67e322f91a56acb9e358ee8b2254b2e7792)
2003-03-27 12:54:50 +00:00
Jelmer Vernooij
11db21cc1c Use the new modules system in VFS. If a module can't be loaded with the
new modules system, we still fall back to the old system.
(This used to be commit cebe8d8b424f10006f2f791a8f086c6c8a7f5d57)
2003-03-27 12:08:46 +00:00
Jeremy Allison
1556b9b53c Fix DOS del command with widelinks = False.
Jeremy.
(This used to be commit ae754e9355c78c22ff5ca5a7f3276e61b4a8fcb7)
2003-03-26 22:15:37 +00:00
Jelmer Vernooij
4905ba282f - Support building all auth modules as .so's
- Change 2 variable names to avoid conflicts (patch by Stephan Kulow <coolo@kde.org>)
(This used to be commit 71b05cd14ae6df8340730e7bad1c783dc278c5d3)
2003-03-25 14:46:11 +00:00
Jelmer Vernooij
e520d4be5e Print list of builtin modules in 'smbd -b'
(This used to be commit 3a2ed0da40c9709cdae061927f44a38f58e44df0)
2003-03-25 12:27:09 +00:00
Jelmer Vernooij
4987119020 Remove obsolete defines (because of new modules system). We need
a way to track which modules have been builtin
(This used to be commit 0f724be38439af9284e51b7b9b8605e8956e51ba)
2003-03-25 12:05:23 +00:00
Gerald Carter
b7c4fa4cc6 win9x was suffered a case of the blues during a domain logon.
For some reason, explicitly setting the service type during the
tcon&X fixes this.
(This used to be commit c458179d21465165705e6c035776698cb824baf5)
2003-03-25 04:19:04 +00:00
Jelmer Vernooij
66c321232a Don't use old usage() function, but the one from popt.
Remove some useless arguments
(This used to be commit 8df30059ef100a4d5e21501d7746427b4d312589)
2003-03-24 14:32:11 +00:00
Jelmer Vernooij
41a09c3c53 Revoke some of the popt patch from metze I applied earlier today. It added
some double options and broke some parameters.
(This used to be commit d5f9b0275c91512e1926504f22aaeec2d104430d)
2003-03-24 14:15:14 +00:00
Jelmer Vernooij
11e9de855c Patch from metze to generalise POPT_COMMON_SAMBA, with some minor changes
(This used to be commit 2ddfed298d7f0b6e690275725a39c3ef107077ae)
2003-03-24 11:25:34 +00:00
Jelmer Vernooij
89cd467415 Add nicer --help headers
(This used to be commit e56ab71f1237a71c6ad4f321ce1db4e9397efd73)
2003-03-22 23:50:11 +00:00
Andrew Bartlett
5050e8ee1a Revert bogus part of previous patch.
(This used to be commit 3cddfe211da812a533611eecba5d5da55fd3cf2d)
2003-03-22 13:41:16 +00:00
Andrew Bartlett
a38e5e6850 Small clenaup patches:
- safe_string.h - don't assume that __FUNCTION__ is available
 - process.c - use new workaround from safe_string.h for the same
 - util.c - Show how many bytes we smb_panic()ed trying to smb_xmalloc()
 - gencache.c - Keep valgrind quiet by always null terminating.
 - clistr.c - Add copyright
 - srvstr.h - move srvstr_push into a .c file again, as a real function.
 - srvstr.c - revive, with 'safe' checked srvstr_push
 - loadparm.c - set a default for the display charset.

Andrew Bartlett
(This used to be commit a7eba37aadeb0b04cb1bd89deddb58be8aba825c)
2003-03-22 13:06:52 +00:00
Andrew Bartlett
d2d29ea953 Clobber our SMB buffers between packets. I hope this will help find bugs
where we assume the buffer is zero, when it might not be (ie due to, previous
packets).

Andrew Bartlett
(This used to be commit 191b0ab4d7c35c83d2bb2052b2e37d01fbf37b45)
2003-03-21 22:37:14 +00:00
Volker Lendecke
afcb58ac9e NT4 as well as W2k respond with IPC regardless of what service
type the client requested in the TCONX when connecting to IPC$.

It is very well possible that this also applies to the DISK and PRINTER
share types, not only IPC.

Found this while trying to join a HEAD domain from NT4SP6.

Volker
(This used to be commit d42eb2116df4bb82c4199a688a057cd0a9f435ed)
2003-03-20 16:53:07 +00:00
Jelmer Vernooij
c7e720c87b Patch from Samuel Thibault to convert messages from unix to dos charset. Works
on 2000.
sending messages to 9x needs to be fixed, but that didn't work anyway
(This used to be commit ca066502a2a3dbdd8943d515c9c6d21e62d757b6)
2003-03-20 16:42:39 +00:00
Jelmer Vernooij
47ea3a2bf2 Put in the new modules system. It's now used by passdb and rpc. I will
put a doc about it in dev-doc later today.
(This used to be commit af7bfee0c6902c07fdb8d3abccf4c8d6bab00b5a)
2003-03-19 18:45:19 +00:00
Jeremy Allison
736c753841 Ensure dev in make_connection is const.
Jeremy.
(This used to be commit e8155fade61e9dc308a82f442453803160c36806)
2003-03-18 23:51:18 +00:00
Andrew Bartlett
e0e31ca14a Add copyright.
(This used to be commit a7f9c3657ff052e382e290059f50f1d9812b8221)
2003-03-17 22:22:46 +00:00
Andrew Bartlett
99e5d02f74 Brain fart - make sure we truncate the right string...
Andrew Bartlett
(This used to be commit 32eb2cdca62a784d96207507e273bbbf77b0c6c3)
2003-03-17 10:58:05 +00:00
Andrew Bartlett
0273df0bf7 Fix const warnings.
Andrew Bartlett
(This used to be commit fc1408d5d1a8b64dfd20268ab6f4a5f2a007614b)
2003-03-17 09:18:06 +00:00
Andrew Bartlett
1331a361bd Add const.
(This used to be commit 02f81719c7c179b61663bdf789c01ab62286fea2)
2003-03-17 09:08:34 +00:00
Andrew Bartlett
a564fed756 More statcache fixes - and add a bit more doco.
Andrew Bartlett
(This used to be commit 0e8dd52f6973ac5219e2c2dd53824de71f512083)
2003-03-17 08:03:08 +00:00
Andrew Bartlett
1171b0c9ac Fix memory leaks and add parinoioa code to our stat() cache.
Andrew Bartlett
(This used to be commit 3fd07bd25eefdb2a7a6891fa1169ab2425607249)
2003-03-17 03:47:15 +00:00
Andrew Bartlett
3ecf5d6638 Missed one when I move 'share_sanity_checks' to use an fstring for 'dev'.
Andrew Bartlett
(This used to be commit a0208a4f74f9c61eb1e346d9cb62dbe00ef4c24a)
2003-03-16 22:07:36 +00:00
Andrew Bartlett
7b18c5d164 Make sure we mark the assumption of a fstring parameter for 'devicetype'
in the function prototype, and change callers to respect this.

Andrew Bartlett
(This used to be commit 9f3d3c380120f16d76d68f346799282d61eec892)
2003-03-16 13:24:36 +00:00
Andrew Bartlett
c6cf087741 Add const.
(This used to be commit 5371720971bc60a4cfba0460614306f322aa10b8)
2003-03-16 13:23:12 +00:00