1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
Commit Graph

2151 Commits

Author SHA1 Message Date
Jelmer Vernooij
46a6e1f0de Add static
(This used to be commit 674d0ca5d8)
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 0278132047)
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 b3edfa9196)
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 2a86ef7828)
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 aa36f462d9)
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 055a499afb)
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 54e736e6f4)
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 c76ecbae62)
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 6a17c23a54)
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 6ab88f31d6)
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 93c91a2e9d)
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 a9ccae314f)
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 8d45bf644a)
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 2dd00078ee)
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 a51ce67e32)
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 cebe8d8b42)
2003-03-27 12:08:46 +00:00
Jeremy Allison
1556b9b53c Fix DOS del command with widelinks = False.
Jeremy.
(This used to be commit ae754e9355)
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 71b05cd14a)
2003-03-25 14:46:11 +00:00
Jelmer Vernooij
e520d4be5e Print list of builtin modules in 'smbd -b'
(This used to be commit 3a2ed0da40)
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 0f724be384)
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 c458179d21)
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 8df30059ef)
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 d5f9b0275c)
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 2ddfed298d)
2003-03-24 11:25:34 +00:00
Jelmer Vernooij
89cd467415 Add nicer --help headers
(This used to be commit e56ab71f12)
2003-03-22 23:50:11 +00:00
Andrew Bartlett
5050e8ee1a Revert bogus part of previous patch.
(This used to be commit 3cddfe211d)
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 a7eba37aad)
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 191b0ab4d7)
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 d42eb2116d)
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 ca066502a2)
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 af7bfee0c6)
2003-03-19 18:45:19 +00:00
Jeremy Allison
736c753841 Ensure dev in make_connection is const.
Jeremy.
(This used to be commit e8155fade6)
2003-03-18 23:51:18 +00:00
Andrew Bartlett
e0e31ca14a Add copyright.
(This used to be commit a7f9c3657f)
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 32eb2cdca6)
2003-03-17 10:58:05 +00:00
Andrew Bartlett
0273df0bf7 Fix const warnings.
Andrew Bartlett
(This used to be commit fc1408d5d1)
2003-03-17 09:18:06 +00:00
Andrew Bartlett
1331a361bd Add const.
(This used to be commit 02f81719c7)
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 0e8dd52f69)
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 3fd07bd25e)
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 a0208a4f74)
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 9f3d3c3801)
2003-03-16 13:24:36 +00:00
Andrew Bartlett
c6cf087741 Add const.
(This used to be commit 5371720971)
2003-03-16 13:23:12 +00:00
Andrew Bartlett
400bb4bfab - Make ReadDirName return a const char*.
- Consequential changes from that

 - mark our fstring/pstring assumptions in function prototypes

Andrew Bartlett
(This used to be commit fe2bc64bc4)
2003-03-16 13:21:12 +00:00
Andrew Bartlett
644ab8e9b1 Try to avoid dereferencing a null pointer.
Andrew Bartlett
(This used to be commit 4e96585b60)
2003-03-16 13:16:42 +00:00
Andrew Bartlett
6ba75b540f New statcache internals - this time it's actually possible to follow what's
going on.

In particular, add doxygen documentation.

Andrew Bartlett
(This used to be commit 7ff77ab46c)
2003-03-16 13:15:29 +00:00
Andrew Bartlett
02704f9733 Minor fixes.
- signed/unsigned
 - quieten warning about assignment as truth value
 - whitespace

Andrew Bartlett
(This used to be commit a13ce0df4b)
2003-03-15 08:18:29 +00:00
Andrew Bartlett
3b5bc93e9d String handling parinoia fixes.
This patch enables the compile-time checking of strings assable by means of
sizeof().  (Original code had the configure check reversed).

This is extended to all safe_strcpy() users, push_string and pull_string,
as well as the cli and srv derivitives.  There is an attempt to cap strings
at the end of the cli buffer, and clobber_region() of the speified length
(when not -1 :-).

Becouse of the way they are declared, the 'overmalloc a string' users of
safe_strcpy() have been changed to use overmalloc_safe_strcpy() (which skips
some of the checks).

This whole ball of mud worked fine, until I pulled out my 'fix' for our
statcache.  When jeremy fixes that, we should be able to get back to testing
this stuff.

This patch also includes a 'marker' of the last caller to clobber_region (ie,
the function that called pstrcpy() that called clobber_region) to assist in
debugging problems that may have smashed the stack.  This is printed at
smb_panic() time.  (Original idea and patch by metze).

It also removes some unsused functions, and #if 0's some others that are
unused but probably should be used in the near future.

For now, this patch gives us some confidence on one class of trivial parsing
error in our code.

Andrew Bartlett
(This used to be commit 31f4827acc)
2003-03-15 07:14:55 +00:00
Andrew Bartlett
44f9f1042c Clean up the VFS module loading logic by making the parameter an P_LIST,
rather than a runtime-parsed string.

Andrew Bartlett
(This used to be commit 3465cd6cd9)
2003-03-15 06:41:31 +00:00
Andrew Bartlett
c3221b8377 Found by my new checking code (yet to be commited):
Allow a service longer than 4 characters in CORE tcon.

Andrew Bartlett
(This used to be commit b56613c1cc)
2003-03-15 06:34:32 +00:00
Gerald Carter
7ae555c43c fix WinXP & Win2K3 remote_arch and check pointer in ntlmssp code before dereferencing
(This used to be commit 2487480228)
2003-03-14 23:11:19 +00:00
Jeremy Allison
15ae0c4ded Ensure we count the length correctly in mangle_map.
Jeremy.
(This used to be commit 596705198c)
2003-03-12 19:08:01 +00:00