1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-07 17:18:11 +03:00
Commit Graph

241 Commits

Author SHA1 Message Date
Jeremy Allison
da4117841d r3662: Fix dirent return.
Jeremy.
2007-10-10 10:53:12 -05:00
Gerald Carter
7474c6a446 r2133: Several fixes:
* BUG 1627: fix for NIS compiles on HPUX 11.00, AIX 4.3 and 5.1
  patch from Olaf Flebbe <o.flebbe@science-computing.de>.
  Will need to watch this one in the build farm.

* Fix bug found by rwf@loonybin.net where the PRINT_ATTRIBUTE_PUBLISHED
  was getting reset by attempts to sanitize the defined attributes
  (PRINTER_ATTRIBUTE_SAMBA)

* Resolve name conflict on DEC OSF-5.1 (inspired by patch from
  Adharsh Praveen <rprav@india.hp.com>)

* Work around parsing error in the print change notify code
  (not that the alignment bug is still there but reording the
   entries in the array works around it).

* remove duplicate declaration of getprintprocdir from rpcclient.
2007-10-10 10:52:32 -05:00
Jeremy Allison
5d04cd6804 r2114: Shameless theft of iconv commit from Samba4 to keep the two libs more in sync :-).
try to cope with a wider range of UTF-16 characters when we are using
an external libiconv library.
Jeremy.
2007-10-10 10:52:32 -05:00
Volker Lendecke
e7d7dc94eb r1853: Improved NT->AFS ACL mapping.
Jerry, this is a really localized patch that I've been using at a customer
site for quite a while, I'd like to get that into 3.0.6.

Thanks,

Volker
2007-10-10 10:52:21 -05:00
Stefan Metzmacher
fd94bdaef5 r840: use quota debug class
metze
2007-10-10 10:51:47 -05:00
Volker Lendecke
43870a3fc1 r449: Two AFS-related things:
Split off the non-crypto related parts of lib/afs.c into
lib/afs_settoken.c. This makes wbinfo link without -lcrypto.

Commit vfs_afsacl.c, display & set AFS acls via the NT security editor.

Volker
2007-10-10 10:51:23 -05:00
Volker Lendecke
567f792377 r405: Some docs of vfs_full_audit.c as comment :-) 2007-10-10 10:51:22 -05:00
Volker Lendecke
9cb9c5f7c9 r404: Revert the change 378 to vfs_extd_audit.c, the parseable auditing
Implement vfs_full_audit.c that can log every vfs.h operation. So if you
change vfs.h, from now on you also have to change full_audit :-)

Volker
2007-10-10 10:51:21 -05:00
Volker Lendecke
9a1a8e2663 r378: Add an option extd_audit:parseable=True. This gives messages of the form
Apr 27 16:05:59 delphin smbd_audit[14946]: 1011|192.168.234.100|unlink|New Folder/TESTDIR.TMP

where 1011 is the user's uid, 192.168.234.100 is the client IP etc.

Volker
2007-10-10 10:51:20 -05:00
Stefan Metzmacher
2bef5d2741 r329: add the shadow_copy vfs module
I'll add documentation to the Samba-Howto-Collection

metze
2007-10-10 10:51:20 -05:00
Gerald Carter
a7e2730ec4 r39: * importing .cvsignore files
* updateing WHATSNEW with vl's change
2007-10-10 10:51:05 -05:00
Volker Lendecke
9cb6b10efa Without words... 0001-01-01 00:00:00 +00:00
Volker Lendecke
558b5bc1d8 Some fixes to expand_msdfs module.
Volker
0001-01-01 00:00:00 +00:00
Volker Lendecke
9cb6a4d76f Move the Client-IP based msdfs target expansion to a VFS module.
Volker
0001-01-01 00:00:00 +00:00
Alexander Bokovoy
e1d0b8fc7b Fix string overflow due to wrong size calculation 0001-01-01 00:00:00 +00:00
cvs2svn Import User
9ccf8c530d This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'. 0001-01-01 00:00:00 +00:00
Jeremy Allison
a571194342 Patch from Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de> to add
MacOSX (Darwin) specific charset module code. Also had to add AC_CHECK_CPP
to configure.in (this took a *long* time to track down) to make autoconf
work correctly on Fedora Core 1.
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
eb9f5c0ec1 Merge from 3.0:
>Portability fix from Joachim Schmitz.  Closes bug #546.
0001-01-01 00:00:00 +00:00
Tim Potter
803ae45172 Portability fix from Joachim Schmitz. Closes bug #546. 0001-01-01 00:00:00 +00:00
Tim Potter
a9f34d9fde Merge from 3.0:
>Fix warnings on Sun cc Workshop Compilers 5.0. Reported by "Richard
>Bollinger" <rabollinger@comcast.net>. Also fixed script/gaptab.awk to
>produce compatible tables.

>Fix CP437 and CP850 syntax for old compilers removing ANSI C99-specifics
0001-01-01 00:00:00 +00:00
Alexander Bokovoy
6134d41ff1 Fix warnings on Sun cc Workshop Compilers 5.0. Reported by "Richard Bollinger" <rabollinger@comcast.net>. Also fixed script/gaptab.awk to produce compatible tables. 0001-01-01 00:00:00 +00:00
Gerald Carter
c17a7dc9a1 sync 3.0 into HEAD for the last time 0001-01-01 00:00:00 +00:00
Jeremy Allison
f35e9a8b90 More tuning from cachegrind. Change most trim_string() calls to trim_char(0,
as that's what they do. Fix string_replace() to fast-path ascii.
Jeremy.
0001-01-01 00:00:00 +00:00
Alexander Bokovoy
61c671bd69 Fix CP437 and CP850 syntax for old compilers removing ANSI C99-specifics 0001-01-01 00:00:00 +00:00
Alexander Bokovoy
e123f1a8c8 Remove cap_set_quota as it is the same as default one 0001-01-01 00:00:00 +00:00
Jeremy Allison
787c9764b3 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.
0001-01-01 00:00:00 +00:00
Alexander Bokovoy
37042c7bc0 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.
0001-01-01 00:00:00 +00:00
Alexander Bokovoy
8bb033273a skel_ -> cap_ 0001-01-01 00:00:00 +00:00
Jeremy Allison
ed72e0a1d5 Remove what looks like gcc-isms.
Jeremy.
0001-01-01 00:00:00 +00:00
Alexander Bokovoy
e8a5a962ed Add CAP VFS module from Monyo. Primary purpose of this module is to provide CAP-compatible encoded file names for CJKV 0001-01-01 00:00:00 +00:00
Paul Green
ce0469ad1c 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).
0001-01-01 00:00:00 +00:00
Alexander Bokovoy
e855dc8c91 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
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
b8ef536b9e Make compiling vfs_readonly static possible 0001-01-01 00:00:00 +00:00
Herb Lewis
a6a39c61e8 get rid of some sompiler warnings on IRIX 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
8625f0e015 Fix overflow in vfs_recycle module (and hopefully also bug #291) 0001-01-01 00:00:00 +00:00
Alexander Bokovoy
30f207375a VFS layer should be TRANSPARENT, not OPAQUE 0001-01-01 00:00:00 +00:00
Alexander Bokovoy
555d1ba01c Use path relative to source/ for modules/getdate.h 0001-01-01 00:00:00 +00:00
Alexander Bokovoy
8b263c2fda 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 0001-01-01 00:00:00 +00:00
Alexander Bokovoy
e856a96c2c 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 0001-01-01 00:00:00 +00:00
Gerald Carter
99feae7b5b ading new files from 3.0 0001-01-01 00:00:00 +00:00
Gerald Carter
adb98e7b7c trying to get HEAD building again. If you want the code
prior to this merge, checkout HEAD_PRE_3_0_0_BETA_3_MERGE
0001-01-01 00:00:00 +00:00
Simo Sorce
c501e84d41 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.
0001-01-01 00:00:00 +00:00
Volker Lendecke
c0e35f3be8 Const fixes by metze
Volker
0001-01-01 00:00:00 +00:00
Tim Potter
c2e5b37452 Added file from SAMBA_3_0 branch. 0001-01-01 00:00:00 +00:00
Tim Potter
e90c5796d2 Ignore *.po files. 0001-01-01 00:00:00 +00:00
Alexander Bokovoy
c2689ed118 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 0001-01-01 00:00:00 +00:00
Alexander Bokovoy
91984ef5ca 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
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
f4576757d1 Use NTSTATUS as return value for smb_register_*() functions and init_module()
function. Patch by metze with some minor modifications.
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
bc4b51bcb2 Use NTSTATUS as return value for smb_register_*() functions and init_module()
function. Patch by metze with some minor modifications.
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
bc5603454a Add the weird charset in 3_0 and build it by default for ./configure --enable-developer 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
9b969f877f Move pdb_mysql and pdb_xml from modules/ to passdb/, just like they are
in 3_0
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
aa07b12fda 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.
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
147c4d56d8 Patch from Stephan Metzmacher to add default arguments to lp_parm() smb.conf
parameters. Does not break binary compatibility with older modules.
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
aa4c11370b Default to "passdb.xml" as default output filename instead of "-" 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
58aa32ea6a Do not use lp_parm_bool() and lp_parm_ulong() yet. They're only in HEAD 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
6e9b780233 More merges from HEAD:
- Stephan Kulow's changes (fixing warnings in libsmbclient)
 - VFS modules
 - Seperating libs
0001-01-01 00:00:00 +00:00
Simo Sorce
646eb2dda6 port HEAD mods 0001-01-01 00:00:00 +00:00
Simo Sorce
bc5d1873da collaps same repeted task into 2 code paths 0001-01-01 00:00:00 +00:00
Simo Sorce
f4be4e70a1 reworked to not malloc PATH_MAX long strings
corrected path_name creation
0001-01-01 00:00:00 +00:00
Simo Sorce
ffd0d643c2 ooops new_dir is already len +1 bytes 0001-01-01 00:00:00 +00:00
Simo Sorce
b4a5362f04 check braindead safe_* function length interpretation is correct 0001-01-01 00:00:00 +00:00
Simo Sorce
671579874e remove unnened and wrong instructions 0001-01-01 00:00:00 +00:00
Simo Sorce
a6bc706625 remove unneded instruction 0001-01-01 00:00:00 +00:00
Simo Sorce
99c2e11ccf fix wrong string handling
thanks to Stefan (metzte) Metzmacher
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
794d3ed036 - 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
0001-01-01 00:00:00 +00:00
cvs2svn Import User
6cd4d3f39a This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'. 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
cebe8d8b42 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.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
34934d2edf Make these functions static, keep them out of proto. 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
27f3fbac72 Fix init function name and return value 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
78e135cdb1 Don't duplicate the default group mapping functions - use the ones
from passdb
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
af7bfee0c6 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.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
03e74be11c 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
0001-01-01 00:00:00 +00:00
Andrew Bartlett
aa486355e2 Fix off-by-one bugs, and move to strdup() rather than malloc()/strcpy().
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Gerald Carter
e5acebbe79 patch from Hal Roberts check for a valid [f]chmod_acl function pointer before calling it. Fixes seg fault in audit VFS module 0001-01-01 00:00:00 +00:00
Gerald Carter
5e115d4381 patch from Hal Roberts check for a valid [f]chmod_acl function pointer before calling it. Fixes seg fault in audit VFS module 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
7f59703550 Make init_module() and thus smb_load_module() return an int.
modules/developer.c: init_module() should return an int
0001-01-01 00:00:00 +00:00
Andrew Bartlett
b9ca0b9ef3 Merge from HEAD: Patch by Anthony Liguori <aliguor@us.ibm.com> to replace scandir() with portable readdir() calls.
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
7836b9a58d Patch from Anthony Liguori <aliguor@us.ibm.com> to remove scandir() portability
madness.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
John Terpstra
143df82aeb Added my name to copyright. 0001-01-01 00:00:00 +00:00
John Terpstra
d2fe7e38b2 Added extended audit module that logs to smbd log as well as syslog. 0001-01-01 00:00:00 +00:00
John Terpstra
0ce5f23bdb Added audit module that logs info to smbd log file as well as syslog. 0001-01-01 00:00:00 +00:00
Andrew Bartlett
1ad782282a 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
0001-01-01 00:00:00 +00:00
Jeremy Allison
784d15761c Finish adding strings to all talloc_init() calls.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
35d00bacdc talloc_init_named -> talloc_init.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
20a44d4cf1 talloc_init_named -> talloc_init.
Jeremy.
0001-01-01 00:00:00 +00:00
Simo Sorce
e6ae8b4eac finnally put in Alexander parametric pacth 0001-01-01 00:00:00 +00:00
Simo Sorce
6dfa460986 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.
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
2addbaff35 Use smb_register_passdb() - plus some small fixes 0001-01-01 00:00:00 +00:00
cvs2svn Import User
2662e351f2 This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'. 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
afbff33eba Move 'weird' character set into new 'developer' module 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
14b129e301 Move working VFS modules to source/modules/ 0001-01-01 00:00:00 +00:00