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

2416 Commits

Author SHA1 Message Date
Jeremy Allison
76bcb93c66 Fix rename of struct gap. ab - LOOK AT THIS. You changed one module
but not the other. This now compiles but I need verification.
Jeremy.
(This used to be commit 787c9764b3)
2003-08-28 18:11:11 +00:00
Alexander Bokovoy
e83031c84d Refactor charset plugins a bit and add CP437 module.
Now all 8-bit charsets with gaps (not all symbols defined) could be produced through
one macro -- SMB_GENERATE_CHARSET_MODULE_8_BIT_GAP(CHARSETNAME) within source file
with three charset tables. Full source code for such modules can be generated by
source/script/gen-8bit-gap.sh script which was taken from GNU libc and changed slightly
to follow our data types and structure.
(This used to be commit 37042c7bc0)
2003-08-28 17:16:27 +00:00
Alexander Bokovoy
811bd3b3ba skel_ -> cap_
(This used to be commit 8bb033273a)
2003-08-28 12:30:35 +00:00
Jeremy Allison
ce236ad65d Remove what looks like gcc-isms.
Jeremy.
(This used to be commit ed72e0a1d5)
2003-08-27 23:23:17 +00:00
Alexander Bokovoy
da0397bd2f Add CAP VFS module from Monyo. Primary purpose of this module is to provide CAP-compatible encoded file names for CJKV
(This used to be commit e8a5a962ed)
2003-08-27 20:04:23 +00:00
Paul Green
cd8c082b79 Be consistent about using capital letters in the function names. (The only
one that really matters is the init entrypoint, but I changed the others
to remain consistent).
(This used to be commit ce0469ad1c)
2003-08-27 15:05:05 +00:00
Alexander Bokovoy
7e27147422 Fix for #150.
We now fallback to Samba-provided CP850 charset module if CP850 or IBM850 does not exist on target system at runtime.
1. Introduce CP850 charset module based on charmaps table from GNU libc 2.2.5
2. Make CP850 charset module shared and build it by default

Should fix Solaris run-time
(This used to be commit e855dc8c91)
2003-08-26 19:48:16 +00:00
Jelmer Vernooij
1579089d91 Make compiling vfs_readonly static possible
(This used to be commit b8ef536b9e)
2003-08-20 08:20:14 +00:00
Herb Lewis
062f89bc28 get rid of some sompiler warnings on IRIX
(This used to be commit a6a39c61e8)
2003-08-15 01:42:30 +00:00
Jelmer Vernooij
38f09f326f Fix overflow in vfs_recycle module (and hopefully also bug #291)
(This used to be commit 8625f0e015)
2003-08-14 19:57:23 +00:00
Alexander Bokovoy
efeb63d641 VFS layer should be TRANSPARENT, not OPAQUE
(This used to be commit 30f207375a)
2003-08-12 22:10:49 +00:00
Alexander Bokovoy
bc42210e63 Use path relative to source/ for modules/getdate.h
(This used to be commit 555d1ba01c)
2003-08-12 18:57:33 +00:00
Alexander Bokovoy
7bc6f49fe4 Add vfs_readonly module which allows to enforce periodic read-only limit on a share based on a specified start and end dates according to date(1) format
(This used to be commit 8b263c2fda)
2003-08-12 04:35:47 +00:00
Alexander Bokovoy
428653ef72 Add NT quotas support. Users allowed now to manage quotas on systems with sysquotas interface detected (Linux at least) using native Windows tools. Also move default quota support for NT quotas to VFS module default_quota. Code by Metze
(This used to be commit e856a96c2c)
2003-07-29 18:07:13 +00:00
Gerald Carter
1caa6b23e4 ading new files from 3.0
(This used to be commit 99feae7b5b)
2003-07-16 05:42:34 +00:00
Gerald Carter
4a090ba06a trying to get HEAD building again. If you want the code
prior to this merge, checkout HEAD_PRE_3_0_0_BETA_3_MERGE
(This used to be commit adb98e7b7c)
2003-07-16 05:34:56 +00:00
Simo Sorce
f5974dfaae Found out a good number of NT_STATUS_IS_ERR used the wrong way.
As abartlet rememberd me NT_STATUS_IS_ERR != !NT_STATUS_IS_OK

This patch will cure the problem.
Working on this one I found 16 functions where I think NT_STATUS_IS_ERR() is
used correctly, but I'm not 100% sure, coders should check the use of
NT_STATUS_IS_ERR() in samba is ok now.

Simo.
(This used to be commit c501e84d41)
2003-06-22 10:09:52 +00:00
Volker Lendecke
ea1cec68bb Const fixes by metze
Volker
(This used to be commit c0e35f3be8)
2003-06-17 09:40:35 +00:00
Tim Potter
a0f1567ae4 Added file from SAMBA_3_0 branch.
(This used to be commit c2e5b37452)
2003-05-26 23:57:20 +00:00
Tim Potter
2cf5051500 Ignore *.po files.
(This used to be commit e90c5796d2)
2003-05-23 02:01:07 +00:00
Alexander Bokovoy
bc2a3748e9 Prefix VFS API macros with SMB_ for consistency and to avoid problems with VFS_ macros at system side. We currently have one clash with AIX and its VFS_LOCK. Compiled and tested -- no new functionality or code, just plain rename of macros for yet-unreleased VFS API version. Needs to be done before a24 is out
(This used to be commit c2689ed118)
2003-05-14 10:59:01 +00:00
Alexander Bokovoy
e7c8c15888 Fix VFS layer:
1. Finally work with cascaded modules with private data storage per module
2. Convert VFS API to macro calls to simplify cascading
3. Add quota support to VFS layer (prepare to NT quota support)

Patch by Stefan (metze) Metzemacher, with review of Jelmer and me
Tested in past few weeks. Documentation to new VFS API for third-party developers to follow
(This used to be commit 91984ef5ca)
2003-05-11 23:34:18 +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
Jelmer Vernooij
17a3acafa8 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 bc4b51bcb2)
2003-04-28 17:48:48 +00:00
Jelmer Vernooij
56d2bb2b95 Add the weird charset in 3_0 and build it by default for ./configure --enable-developer
(This used to be commit bc5603454a)
2003-04-26 11:49:05 +00:00
Jelmer Vernooij
172fe551bc Move pdb_mysql and pdb_xml from modules/ to passdb/, just like they are
in 3_0
(This used to be commit 9b969f877f)
2003-04-24 20:51:16 +00:00
Jelmer Vernooij
d13f5f85fe Patch from Stefan Metzmacher to add default parameters to the lp_parm()
smb.conf parameters along with some other small fixes. Binary
compatible with older modules.
(This used to be commit aa07b12fda)
2003-04-24 03:54:54 +00:00
Jelmer Vernooij
1f008c1203 Patch from Stephan Metzmacher to add default arguments to lp_parm() smb.conf
parameters. Does not break binary compatibility with older modules.
(This used to be commit 147c4d56d8)
2003-04-24 03:46:17 +00:00
Jelmer Vernooij
dcee9b58b9 Default to "passdb.xml" as default output filename instead of "-"
(This used to be commit aa4c11370b)
2003-04-21 01:56:13 +00:00
Jelmer Vernooij
3dcc6e28c2 Do not use lp_parm_bool() and lp_parm_ulong() yet. They're only in HEAD
(This used to be commit 58aa32ea6a)
2003-04-17 20:13:08 +00:00
Jelmer Vernooij
ddf662d118 More merges from HEAD:
- Stephan Kulow's changes (fixing warnings in libsmbclient)
 - VFS modules
 - Seperating libs
(This used to be commit 6e9b780233)
2003-04-16 14:45:11 +00:00
Simo Sorce
ce51825c4b port HEAD mods
(This used to be commit 646eb2dda6)
2003-04-09 17:36:52 +00:00
Simo Sorce
525d18a2b0 collaps same repeted task into 2 code paths
(This used to be commit bc5d1873da)
2003-04-09 17:36:33 +00:00
Simo Sorce
90290b166b reworked to not malloc PATH_MAX long strings
corrected path_name creation
(This used to be commit f4be4e70a1)
2003-04-08 17:34:16 +00:00
Simo Sorce
98a57e6032 ooops new_dir is already len +1 bytes
(This used to be commit ffd0d643c2)
2003-04-07 18:13:03 +00:00
Simo Sorce
a648f57bfe check braindead safe_* function length interpretation is correct
(This used to be commit b4a5362f04)
2003-04-07 18:11:24 +00:00
Simo Sorce
eac27adfb3 remove unnened and wrong instructions
(This used to be commit 671579874e)
2003-04-07 18:05:35 +00:00
Simo Sorce
898b37202e remove unneded instruction
(This used to be commit a6bc706625)
2003-04-07 18:04:44 +00:00
Simo Sorce
3b89c0656c fix wrong string handling
thanks to Stefan (metzte) Metzmacher
(This used to be commit 99c2e11ccf)
2003-04-07 18:03:02 +00:00
Jelmer Vernooij
7ea0ef92cb - Point users at the HOWTO Collection instead of 'README' in modules/mysql.c
- Make passdb work with absolute paths (passdb backend = /path/to/smbpasswd.so works now). vfs, rpc and charset will follow
(This used to be commit 794d3ed036)
2003-03-30 12:42:18 +00:00
cvs2svn Import User
00934b5d00 This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit 6cd4d3f39a) 2003-03-27 23:02:44 +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
Andrew Bartlett
fc64b4c000 Make these functions static, keep them out of proto.
(This used to be commit 34934d2edf)
2003-03-25 07:55:10 +00:00
Jelmer Vernooij
f9e66df9c7 Fix init function name and return value
(This used to be commit 27f3fbac72)
2003-03-24 11:31:01 +00:00
Jelmer Vernooij
477e1a8cee Don't duplicate the default group mapping functions - use the ones
from passdb
(This used to be commit 78e135cdb1)
2003-03-23 12:29:19 +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
Andrew Bartlett
1cf9038512 Fixes to the vfs_fake_perms modules - we only need to specify the VFS
functions that we actually modify.

Also a better implementation of the stat() and fstat() functions.

Andrew Bartlett
(This used to be commit 03e74be11c)
2003-03-03 09:12:40 +00:00
Andrew Bartlett
2295c0cf29 Fix off-by-one bugs, and move to strdup() rather than malloc()/strcpy().
Andrew Bartlett
(This used to be commit aa486355e2)
2003-02-24 09:10:41 +00:00
Gerald Carter
b0415dfd7b patch from Hal Roberts check for a valid [f]chmod_acl function pointer before calling it. Fixes seg fault in audit VFS module
(This used to be commit e5acebbe79)
2003-02-21 16:15:44 +00:00
Gerald Carter
193f9200aa patch from Hal Roberts check for a valid [f]chmod_acl function pointer before calling it. Fixes seg fault in audit VFS module
(This used to be commit 5e115d4381)
2003-02-21 16:15:30 +00:00
Jelmer Vernooij
8d8a8c9633 Make init_module() and thus smb_load_module() return an int.
modules/developer.c: init_module() should return an int
(This used to be commit 7f59703550)
2003-02-20 22:26:28 +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 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
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
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 Bartlett
72caa1fc8d Add a new VFS module, that just fiddles the file permissions. Still need to
make it fiddle with NT ACLs (or report no ACL, so Samba fakes it up).

The idea here is that Samba reports an NT ACL to Windows clients, which use
that ACL in downloaded profiles.

If the user doesn't have write permissions on the directories being downloaded,
then it cant put the subfolders in (yes, NT will set perms so that it can't
access the dir as the user the created it) and the profile download fails.

The current solution it to give the user unix write perms to the folders, but
this is rather dangerous - sombody could trojen the profile.  This should
avoid that mess.

I'll test this out properly next week, but it works in vfstest (thanks idra!).

Andrew Bartlett
(This used to be commit 1ad782282a)
2002-12-30 04:19:57 +00:00
Jeremy Allison
0fdf60f051 Finish adding strings to all talloc_init() calls.
Jeremy.
(This used to be commit 784d15761c)
2002-12-23 23:53:56 +00:00
Jeremy Allison
fa997c54eb talloc_init_named -> talloc_init.
Jeremy.
(This used to be commit 35d00bacdc)
2002-12-22 16:03:28 +00:00
Jeremy Allison
b95b82b798 talloc_init_named -> talloc_init.
Jeremy.
(This used to be commit 20a44d4cf1)
2002-12-22 16:02:36 +00:00
Simo Sorce
6265861252 finnally put in Alexander parametric pacth
(This used to be commit e6ae8b4eac)
2002-12-09 13:02:27 +00:00
Simo Sorce
e6e3b79f74 make vfs recycle use vfs facilities correctly!
WARNING: every vfs module maintainer should look at these changes to understand how to properly write a vfs module in head!!

also make installmodules work correctly when the directory structure is not yet in place.

Simo.
(This used to be commit 6dfa460986)
2002-12-09 12:06:15 +00:00
Jelmer Vernooij
9da3d41f3c Use smb_register_passdb() - plus some small fixes
(This used to be commit 2addbaff35)
2002-11-15 17:01:24 +00:00
cvs2svn Import User
ed3d7fd7b5 This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit 2662e351f2) 2002-11-15 13:53:03 +00:00
Jelmer Vernooij
3dc6b9e5f0 Move 'weird' character set into new 'developer' module
(This used to be commit afbff33eba)
2002-11-13 19:07:34 +00:00
Jelmer Vernooij
861bbd3c28 Move working VFS modules to source/modules/
(This used to be commit 14b129e301)
2002-11-13 13:11:04 +00:00