1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00
Commit Graph

2182 Commits

Author SHA1 Message Date
Jeremy Allison
a5e8ba3c76 Fix uninitialized blobs reported by Luke Howard.
Jeremy.
(This used to be commit e954ca2ce8)
2003-05-01 18:11:59 +00:00
Jeremy Allison
731eba7ded Fix for bugid 51 from Dragan Krnic.
Jeremy.
(This used to be commit aeba1fcab2)
2003-05-01 17:48:07 +00:00
Simo Sorce
7264b9df8f proper wellknown sids initialization at startup
(This used to be commit 568feee897)
2003-05-01 14:08:00 +00:00
Simo Sorce
75cace04fd *id_to_*id call reshape to return NTSTATUS errors
plus internal fixes
1st stage
(This used to be commit 6d036761e5)
2003-05-01 11:47:48 +00:00
Jelmer Vernooij
ed454fe3d6 Fix disk quotas support on HP/UX (patch by David Nixon)
(This used to be commit 908d839b77)
2003-05-01 11:02:26 +00:00
Jelmer Vernooij
7226d4698e Use ints for the version numbers in the smb_register_*() functions (patch by metze)
(This used to be commit 3895571eee)
2003-05-01 00:51:54 +00:00
Simo Sorce
a1eaa7d5e0 This is a nice rewrite:
SAM_ACCOUNT does not have anymore uid and gid fields
all the code that used them has been fixed to use the proper idmap calls

fix to idmap_tdb for first time idmap.tdb initialization.

auth_serversupplied_info structure has now an uid and gid field

few other fixes to make the system behave correctly with idmap

tested only with tdbsam, but smbpasswd and nisplus should be ok

have not tested ldap !
(This used to be commit 6a6f603246)
2003-04-29 22:06:16 +00:00
Gerald Carter
94102aea67 add version back to lanman string in sessetup reply
(This used to be commit 4ab1909378)
2003-04-29 13:29:14 +00:00
Simo Sorce
fd102eb947 consolidate idmap code in one place
(This used to be commit f7041ec5d7)
2003-04-29 10:54:13 +00:00
Simo Sorce
67a5f62e43 ok next_rid out as well local_*id_to*id functions
reverted user making function, did not pass the abartlet test :-)
idmap is now fully integrated, we only miss user creation and removal of uid
and gid from SAM_ACCOUNT
(This used to be commit 67af8c2658)
2003-04-29 03:31:00 +00:00
Jelmer Vernooij
81256ecbb9 Use NTSTATUS as return value for smb_register_*() functions and init_module()
function. Patch by metze with some minor modifications.
(This used to be commit f4576757d1)
2003-04-28 18:33:25 +00:00
Simo Sorce
c737b1f758 make winbind use idmap as well.
change idmap_init call

removed ldap backend for winbind idmap, seem it had problems anyway and it
have to be reworked to work with idmap without calling winbind code.

simo
(This used to be commit 9d7d007443)
2003-04-27 12:07:20 +00:00
Jim McDonough
8bfad47114 Fix length in findfirst2 responses, fix os/2 clients
(This used to be commit ce56ccf932)
2003-04-24 18:59:13 +00:00
Jeremy Allison
c95840b76f Add runtime tests for "impossible" case with -DDEVELOPER. Trying to catch logic
error on Linux.
Jeremy.
(This used to be commit 5d2b2b5607)
2003-04-22 17:31:22 +00:00
Gerald Carter
86ece43f7a another lost merge from 3.0; my fault
(This used to be commit 2e5e686173)
2003-04-22 04:54:21 +00:00
Jeremy Allison
6fc28bceb7 Tidyups of some dubious logic discovered whilst trying to track down a
strange oplock related issue on the PSA.
Jeremy.
(This used to be commit f8021af2a7)
2003-04-22 01:12:54 +00:00
Andrew Bartlett
76a0be1dba Remove unused (#ifdef'ed) code.
(This used to be commit c11465b285)
2003-04-21 11:47:27 +00:00
Andrew Bartlett
61922ee436 Use fstrcpy/pstrcpy when that's what we really mean...
Andrew Bartlett
(This used to be commit e8aa615591)
2003-04-21 11:45:46 +00:00
Simo Sorce
d97d6240e4 use gid_t for gids not uid_t
(This used to be commit dd8009bf59)
2003-04-19 15:32:16 +00:00
Simo Sorce
84728c3400 fixes
fix debug, add "idmap" string to the list of classes
fix idmap, check init failures, and enhance debugging
fix idmap_tdb, _do_ init uid and gid low,high states (too bad I missed that
before)
fix smbd/uid.c, use gid_t for gids and uid_t for uids
(This used to be commit bc95de4ebb)
2003-04-19 15:29:39 +00:00
Andrew Bartlett
4c6d325781 Expand this magic number into the #defines it is made up of.
(This used to be commit 3d2d19b910)
2003-04-16 11:56:58 +00:00
Andrew Bartlett
520ddfc0ac Put this comment in a better place...
(This used to be commit 3fdddade0f)
2003-04-16 10:25:42 +00:00
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 6e6b7b79ed)
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 c37467651b)
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 ad2765bb5e)
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 beedde03fc)
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 4ccd34ef83)
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 186d53cbc1)
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 af6ecafcbb)
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 55d0ab0e30)
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 eb861e9d0f)
2003-04-04 20:38:25 +00:00
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