1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00
Commit Graph

1207 Commits

Author SHA1 Message Date
Volker Lendecke
1bff89c4ad Only build the dirsort module if we have the dirfd function
Fix the build on HP/UX
2009-03-22 13:17:42 +01:00
Andy Kelk
2835d0d463 Add dirsort module 2009-03-22 11:44:13 +01:00
Günther Deschner
36d0785806 s3-spoolss: remove rpc_server/srv_spoolss.c alltogether.
Guenther
2009-03-18 17:09:33 +01:00
Steve Langasek
c6b570ce30 s3: Fix bugs in the detection of the GNU ld version (Bug #6147)
This bug results in a failure to use linker scripts to limit the set of symbols
exported by our shared libraries.

Signed-off-by: Michael Adam <obnox@samba.org>
2009-03-17 22:10:23 +01:00
Björn Jacke
c7dba467f2 remove needless rpath stuff for default paths as early as possible
Signed-off-by: Michael Adam <obnox@samba.org>
2009-03-17 16:50:38 +01:00
Björn Jacke
586a4da5dd fix configure check for external talloc libs 2009-03-16 07:51:46 +01:00
Jelmer Vernooij
251bf8aab5 Merge branch 'checktalloc' of /home/jelmer/samba4 2009-03-15 13:52:01 +01:00
Jelmer Vernooij
0c72c503fa Fix fallback if system doesn't provide talloc. 2009-03-14 21:06:41 +01:00
Jelmer Vernooij
61447dfbbf Allow using external libtalloc. 2009-03-14 20:56:26 +01:00
Björn Jacke
e6777e5266 fix configure check by avoiding main(main(...))
AC_TRY_LINK automatically wraps a main(). Double main() causes this test to fail
on some compilers.
2009-03-11 12:08:51 -07:00
Volker Lendecke
3d280639c4 Add a vfs_preopen module to hide fs latencies 2009-03-10 18:11:56 +01:00
Steven Danneman
5a9f668dab s3: Remove madvise support
This reverts 193be432.  The MADVISE_PROTECT is inherited by all child
processes and cannot be unset.  The intention of the original patch was
to protect the parent process, but allow children to be killed in low
memory.  Since this isn't possible with the current API, reverting the
whole feature.
2009-03-04 11:07:27 -08:00
Dan Sledz
aeab22b55c s3: Rename auth_onefs_wb and pdb_onefs_sam
auth_onefs_wb.c -> auth_wbc.c
pdb_onefs_sam.c -> pdb_wbc_sam.c

No changes to functionality
2009-02-24 16:08:06 -08:00
Steven Danneman
c207fe42a7 s3: Fix build break in d9a842b2
* actually check for existance of sysctlbyname()
2009-02-20 23:25:49 -08:00
Dan Sledz
fc02c3b089 Introduce a new passdb backend: pdb_onefs_sam
Implements a custom backend for onefs that exclusively uses the wbclient
interface for all passdb calls.
It lacks some features of a standard passdb.
In particular it's a read only interface and doesn't implement privileges.
2009-02-20 19:39:07 -08:00
Dan Sledz
c383022f89 Introduce a new authentication backend auth_onefs_wb
This new backend is custom tailored to onefs' unique requirements:
1) No fallback logic
2) Does not validate the domain of the user
3) Handles unencrypted passwords
2009-02-20 19:39:07 -08:00
Dan Sledz
e311dcff22 Allow building with an external libwbclient library
Introduce a new configure option --with-wbclient which specifies a
location to find a compatible libwbclient library to link against.  This
options is overwritten by --with-winbind
2009-02-20 19:39:06 -08:00
todd stecher
d9a842b26f S3: Detect max_open_files from system
- Attempt to use syscalls to determine max-open-files value.
- Add in periodic logging when max file limit reached
2009-02-20 16:35:48 -08:00
Tim Prouty
73d5f14c04 s3 OneFS: Add shadow copy module 2009-02-19 21:09:31 -08:00
todd stecher
c441f58ded S3: Allow SMBD processes to survive in low memory condidtions
This commit adds a configure argument which allows for setting MADV_PROTECT
in the madvise() API.  With this enabled the kernel won't kill SMBD when
it's running low on memory.
2009-02-18 18:08:32 -08:00
Michael Adam
08bef5bba0 s3:build: improve the check for a working krb5-config.
Not only check if it exists and is executable, but also
check whether it accepts the command line "krb5-config --libs gssapi".

Chris Hoogendyk <hoogendyk@bio.umass.edu> has reported configure
failing on a Solaris machine due to krb5-config raising errors on
these options.

Michael
2009-02-17 18:21:52 +01:00
Derrell Lipman
2b097cbb4e It seems some systems use f_flags instead of f_flag. Use the appropriate one. 2009-02-14 16:01:05 -05:00
todd stecher
dbe2588e46 s3: Test module for perfcount system
Add 'perfcount module = pc_test' to exercise this module. Results are
logged into smb.log every 50 operations (configurable via smb.conf).
2009-02-13 12:59:30 -08:00
Zack Kirsch
a3531314dd OneFS implementation of BRL VFS ops:
* Much of the beginning should look familiar, as I re-used the OneFS oplock
  callback record concept. This was necessary to keep our own state around - it
  really only consists of a lock state, per asynchronous lock that is currently
  unsatisfied.  The onefs_cbrl_callback_records map to BLRs by the id.
* There are 4 states an async lock can be in. NONE means there is no async
  currently out for the lock, as opposed to ASYNC. DONE means we've locked
  *every* lock (keep in mind a request can ask for multiple locks at a time.)
  ERROR is an error.
* onefs_cbrl_async_success: The lock_num is incremented, and the state changed,
  so that when process_blocking_lock_queue is run, we will try the *next* lock,
  rather than the same one again.
* onefs_brl_lock_windows() has some complicated logic:
    * We do a no-op if we're passed a BLR and the matching state is ASYNC --
      this means Samba is trying to get the same lock twice, and we just need
      to wait longer, so we return an error.
    * PENDING lock calls happen when the lock is being queued on the BLQ -- we
      do async in this case.
    * We also do async in the case that we're passed a BLR, but the lock is not
      pending. This is an async lock being probed by process_blocking_lock_queue.
    * We do a sync lock for any normal first request of a lock.
    * Failure is returned, but it doesn't go to the client unless the lock has
      actually timed out.
2009-02-13 10:08:55 -08:00
Björn Jacke
4f6d172825 There are systems where nanosleep is in libc *and* in librt.
Let's just do the test in librt when the first one failed.
2009-02-12 13:00:45 +01:00
Björn Jacke
263b798db9 tidy up timestamp checks
AC_CHECK_MEMBERS should be a sufficient check, there's no need to do manual
compile tests. We can also assume that we have ctime and atime members when we
have the mtime member.
2009-02-12 13:00:44 +01:00
Björn Jacke
aff48fba18 today valgrind is available on 64bit Linux, too 2009-02-12 13:00:44 +01:00
Tim Prouty
16d2c2fa58 s3 OneFS: Add kernel oplocks implementation
A few functions in oplocks_onefs.c need to be accessed from the onefs
vfs module.  It would be ideal if oplocks were implemented at the vfs
layer, but since they aren't yet, a new header is added to
source3/include to make these functions available to the onefs vfs
module.  oplocks_onefs.o doesn't need to be linked into the onefs vfs
module explicitly, since it is already linked into smbd by default.
2009-02-09 23:47:45 -08:00
todd stecher
f8c0d2fe01 S3 OneFS: Add in Isilon specific performance counter module 2009-02-09 13:23:44 -08:00
todd stecher
54c51a66e3 S3: New module interface for SMB message statistics gathering
This changelist allows for the addition of custom performance
monitoring modules through smb.conf. Entrypoints in the main message
processing code have been added to capture the command, subop, ioctl,
identity and message size statistics.
2009-02-09 13:23:44 -08:00
Björn Jacke
c7377b2c4d look for nanosleep in librt, some Unix flavours have it there 2009-02-09 09:15:52 +01:00
Günther Deschner
e11fa4cc33 s3-spoolss: prepare to use generated spoolss.
Guenther
2009-02-06 18:54:51 +01:00
Günther Deschner
a63d4c5ed1 s3-eventlog: remove old eventlog server.
Guenther
2009-02-04 22:51:39 +01:00
Stefan Metzmacher
c3ab292655 merged-build: force non-shared build for samba4
This should fix 'make test4'.

metze
2009-02-03 16:31:01 +01:00
Tim Prouty
2c2545d45a s3 build: Remove unused fstat check to fix a bunch of HAVE_FSTAT warnings 2009-01-30 14:41:07 -08:00
Björn Jacke
ede1732195 add configure check for Tru64 sub-second timestamp resolution 2009-01-29 15:26:13 -08:00
Michael Adam
a44649cf98 s3:build: fix build on AIX - only test for splice on linux
Michael
2009-01-30 00:17:56 +01:00
Björn Jacke
11f32204f8 add configure check for AIX style sub-second resolution support 2009-01-29 09:51:36 -08:00
Björn Jacke
f9926a4944 rather cosmetic fix for failed birthtime configure checks 2009-01-29 09:51:35 -08:00
Björn Jacke
bc84bd7b71 give configure check "sub-second timestamps without struct timespec" a chance to succeed 2009-01-29 09:51:35 -08:00
Stefan Metzmacher
11163720e6 s3:configure: autodetect ctdb/cluster support
We need to make sure ctdb has transaction support
and we autodetect ipv6 support.

metze
2009-01-29 17:40:13 +01:00
Jeremy Allison
ca3a801a82 Fix detection of dns_sd libraries.
Jeremy.
2009-01-27 16:19:09 -08:00
Kai Blin
a7e620522e async_req: Fix the S4 build 2009-01-27 12:38:11 +01:00
todd stecher
7bb3860f49 This change allows for the autoconfigre detection of sub-second time resolution in the FreeBSD stat structure 2009-01-23 21:05:38 -08:00
Kai Blin
85b36d95fb async_req: Move to top level dir 2009-01-23 17:57:33 +01:00
Jelmer Vernooij
e490c1b8c8 Move configure test files to the top-level and share them between s3 and
s4.
2009-01-22 11:35:28 +01:00
Jelmer Vernooij
f607ad2e90 Move check_python.m4 to common m4 directory. 2009-01-21 18:07:41 +01:00
Jelmer Vernooij
2c1d70ab79 Automagically expand includes in Makefile.in during configure time
when make is not GNU Make.
2009-01-21 17:21:45 +01:00
Jelmer Vernooij
3a4e61ecd8 Only check for Perl once in Samba 3. 2009-01-21 16:49:36 +01:00
Jelmer Vernooij
4967f6948f Move check_make.m4 to the top-level. 2009-01-21 16:46:52 +01:00
Günther Deschner
22a96cbe31 s3-svcctl: remove last traces of hand-marshalled svcctl code.
Guenther
2009-01-09 17:08:19 +01:00
Stefan Metzmacher
321d875af9 s3: build lib/tevent staticly into samba3
metze
2009-01-05 15:07:36 +01:00
Günther Deschner
43d0a4813b s3-ntsvcs: remove last traces of hand-marshalled NTSVCS.
Guenther
2008-12-17 23:52:42 +01:00
Volker Lendecke
5659f18b86 Compile liblua 2008-12-17 12:57:18 +01:00
Kai Blin
6821d898d7 nsswitch: Move source3 files to top level dir.
Don't move source4 files yet to not confuse git's rename tracking too much.
2008-12-16 13:02:45 +01:00
Volker Lendecke
57a9380f7b Also search for -lgpfs which is available as GPL in GPFS PTF8
(cherry picked from commit 3c93c96fd0)

Signed-off-by: Michael Adam <obnox@samba.org>
2008-12-10 23:58:25 +01:00
Volker Lendecke
0114cb52ca Revert "Also search for -lgpfs which is available as GPL in GPFS PTF8"
This reverts commit 3c93c96fd0.
2008-12-10 23:13:48 +01:00
Volker Lendecke
3c93c96fd0 Also search for -lgpfs which is available as GPL in GPFS PTF8 2008-12-10 18:30:28 +01:00
Steven Danneman
85b8cccab0 Add support for OneFS ACLs
Add to the OneFS VFS module, support for NTFS ACLs through the calls:

SMB_VFS_FGET_NT_ACL()
SMB_VFS_GET_NT_ACL()
SMB_VFS_FSET_NT_ACL()

Also create several new onefs specific smb.conf parameters in onefs.h
2008-12-02 20:35:45 -08:00
Tim Prouty
239f815e30 Add OneFS VFS module skeleton.
Also set configure to autodetect OneFS OS and build this VFS module.
2008-12-02 20:35:45 -08:00
Kai Blin
ac6c003078 configure.in: Fix smbtorture_s3 tests.
Seems like Jeremy forgot to fix configure.in when importing d448132 to master
in 8d674e35. Generate the vfs_streams_depot module so make test works again.
2008-12-02 10:26:42 +01:00
Dan Sledz
417f187645 Allow SYSLOG_FACILITY to be modified with a new configure option called --with-syslog-facility 2008-11-24 15:34:33 -08:00
Michael Adam
09bc3a2f9c s3 build: when detecting to use internal zlib, put "-I../lib/zlib" first in CFLAGS
This should fix a build error on our Tru64 build farm box where a zlib.h is
found in an include path handed in via external CFLAGS, but that zlib.h belongs
to an old zlib. So in ndr_compression.c, "#include <zlib.h>" includes the wrong
header for the internal zlib.

Michael
2008-11-23 02:02:26 +01:00
Dan Sledz
c23a6dc3ec FreeBSD configure check for backtrace_symbols
On FreeBSD backtrace_symbols is defined in libexecinfo.so.1.  Look for it
there as well.
2008-11-21 16:37:43 -08:00
Bo Yang
a8722a190b i18n/l10n pam_winbind
Signed-off-by: Günther Deschner <gd@samba.org>
2008-11-13 12:43:58 +01:00
Tim Prouty
d38bffd412 s3: Add support for storing dos attributes as st_flags in the stat struct.
Some filesystems have support for storing dos attributes directly in
the inode's st_flags and accessing them through the stat struct.  This
patch:

- Adds a configure check to see if the special flags are available.
- Implements getting and setting dos attributes in the stat struct and
  inode, respectively.

This will not change the existing functionality of any system that
doesn't have the special flags available.
2008-11-12 09:48:50 -08:00
Jeremy Allison
8076e50fad Added vfs_acl_tdb.c module to do ACLs completely in userspace. Passes all of RAW-ACLS except for the last test which uses a non-POSIX chown. More testing/documentation to follow.
Jeremy.
2008-11-10 17:57:22 -08:00
Jelmer Vernooij
b327c0a2da Samba3: Remove more configure tests already done by libreplace. 2008-11-02 17:39:41 +01:00
Jelmer Vernooij
6a2caa34b2 Remove sys_chroot() - libreplace already provides an alternative. 2008-11-01 03:46:09 +01:00
Jelmer Vernooij
c2a4db0c63 Remove tests for functions provided by libreplace from configure. 2008-11-01 03:43:30 +01:00
Andrew Tridgell
a9fed0955c use glibc sys/inotify.h header
when we first added the inotify code glibc didn't have the inotify
functions yet. Now that it does we can use the official header and
avoid the asm/unistd.h syscall workaround
2008-10-30 12:30:04 -07:00
Jelmer Vernooij
aafe9ca1aa Fix definition of environ on Mac OS X (bugzilla: #5412). 2008-10-27 23:39:53 +01:00
Jelmer Vernooij
9de5172a20 Remove duplicate check for volatile, move all utime-checks to
libreplace.
2008-10-27 23:23:15 +01:00
Jelmer Vernooij
8fe59b9b00 Automatically enable merged build (for more complete 'make test') when possible during developer builds. 2008-10-21 16:04:54 +02:00
Jelmer Vernooij
6ba693b5de Make sure crypt libs get included. 2008-10-19 14:54:16 +02:00
Jelmer Vernooij
33032d591f Move ufc to libreplace. 2008-10-18 17:49:41 +02:00
Jelmer Vernooij
9d9f5b44ed Use common detection function for zlib. 2008-10-18 14:14:44 +02:00
Jelmer Vernooij
daeceff217 Fix typo. 2008-10-15 01:30:11 +02:00
Jelmer Vernooij
65fdcd92fa Build zlib (required for ndr_compression) if it's not pulled in through
other means.
2008-10-15 01:04:13 +02:00
Jelmer Vernooij
ecca199486 Fix merged build . 2008-10-14 23:25:12 +02:00
Jelmer Vernooij
009dcbf477 Give the user a hint about whether a merged build would be possible. 2008-10-14 22:39:19 +02:00
Jelmer Vernooij
5c16a06185 Allow auto-detect if --enable-merged-build was not specified. 2008-10-14 21:46:58 +02:00
Volker Lendecke
439086099a Add netlogond auth method
This authenticates against a local running samba4 using SamLogonEx. We retrieve
the machine password using samba4's mymachinepwd script and store the schannel
key for re-use in secrets.tdb.
2008-10-06 09:54:17 +02:00
Volker Lendecke
9097a67def Fix bug 5798: "CFLAGS info lost in configure"
Michael, please check and merge to the other branches if it's right.

Thanks,

Volker
2008-10-02 02:27:30 +02:00
Günther Deschner
c12c69c6ee libgpo: add gpext_security module build to configure.
Guenther
2008-09-27 00:58:10 +02:00
Holger Hetterich
964fb9f249 SMB traffic analyzer vfs module from Holger Hetterich <hhetter@novell.com>
Used to gather data to feed to a database for live and historical
analysis of usage per user, per share, etc.

Helper apps to read the data still to come.  This one still needs to be
made ipv6 enabled (connection is made to the helper app).
2008-09-24 19:16:57 -04:00
Stefan Metzmacher
ec0eab7f0b s3:configure: add -L./bin also for the merged build
metze
2008-09-24 23:11:13 +02:00
Volker Lendecke
6660ac5d0a Fix make pch in the merged build 2008-09-23 01:44:41 +02:00
Gerald (Jerry) Carter
7d5fb989ac idmap_adex: Add new idmap plugin for support RFC2307 enabled AD forests.
The adex idmap/nss_info plugin is an adapation of the Likewise
Enterprise plugin with support for OU based cells removed
(since the Windows pieces to manage the cells are not available).

This plugin supports

  * The RFC2307 schema for users and groups.
  * Connections to trusted domains
  * Global catalog searches
  * Cross forest trusts
  * User and group aliases

Prerequiste: Add the following attributes to the Partial Attribute
Set in global catalog:

  * uidNumber
  * uid
  * gidNumber

A basic config using the current trunk code would look like

 [global]
      idmap backend = adex
      idmap uid = 10000 - 19999
      idmap gid = 20000 - 29999
      idmap config US:backend = adex
      idmap config US:range = 20000 - 29999
      winbind nss info = adex

       winbind normalize names = yes
       winbind refresh tickets = yes
       template homedir = /home/%D/%U
       template shell = /bin/bash
2008-09-22 15:46:19 -07:00
Jeremy Allison
507050ab55 Ensure vfs_acl_xattr is built.
Jeremy.
2008-09-17 12:21:19 -07:00
Jelmer Vernooij
06999ae473 Merge branch 'master' of ssh://git.samba.org/data/git/samba into singlelib 2008-09-17 14:34:54 +02:00
Jelmer Vernooij
94855cd692 Move common libraries from root to lib/. 2008-09-17 14:11:12 +02:00
Gerald (Jerry) Carter
63554b4078 idmap_hash: Add the idmap/nss-info provider from Likewise Open.
* Port the Likewise Open idmap/nss_info provider (renamed to
  idmap_hash).

* uids & gids are generated based on a hashing algorithm that collapse
  the Domain SID to a 31 bit number.  The reverse mapping from the
  high order 11 bits to the originat8ing sdomain SID is stored in
  a has table initialized at start up.

* Includes support for "idmap_hash:name_map = <filename>" for the
  name aliasing layer.  The name map file consist of entries in
  the form "alias = DOMAIN\name"
2008-09-16 10:28:11 -07:00
Jelmer Vernooij
9ef623beda Merge branch 'singlepopt' into single
Conflicts:
	source4/Makefile
2008-09-16 17:20:54 +02:00
Jelmer Vernooij
c8bff39df6 Use a single copy of popt in samba3 and samba4. 2008-09-16 17:20:16 +02:00
Jelmer Vernooij
a347ab83f4 Merge branch 'singlensswrap' into single
Conflicts:
	source3/configure.in
	source4/Makefile
	source4/configure.ac
	source4/lib/nss_wrapper/nss_wrapper.c
	source4/lib/replace/system/passwd.h
	source4/main.mk
2008-09-16 17:07:11 +02:00
Jelmer Vernooij
ca2da61540 Use single cope of nss_wrapper in Samba 3 and Samba 4. 2008-09-16 17:05:00 +02:00
Jelmer Vernooij
7fdca97040 Merge branch 'singlesw' into single
Conflicts:
	source3/lib/socket_wrapper/socket_wrapper.c
	source4/lib/replace/system/network.h
2008-09-16 16:46:22 +02:00
Jelmer Vernooij
bf21371c09 Merge branch 'singlereplace' into single
Conflicts:
	source4/configure.ac
	source4/torture/local/config.mk
2008-09-16 16:45:10 +02:00
Jelmer Vernooij
f957aeaee6 Merge branch 'singletdb' into single 2008-09-16 16:44:16 +02:00