1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

523 Commits

Author SHA1 Message Date
Jeremy Allison
6449022d3e Add waf/configure tests for openat.
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Jul  4 02:37:59 CEST 2012 on sn-devel-104
2012-07-04 02:37:59 +02:00
Jeremy Allison
3fe2c54a5b Fix the waf/autoconf builds to detect correctly the 32-bit or 64-bit syscall ABI on Linux.
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Jul  3 05:32:21 CEST 2012 on sn-devel-104
2012-07-03 05:32:21 +02:00
Jeremy Allison
3f30b02b65 Disable selections of USE_LINUX_THREAD_CREDENTIALS until we have specific
32-bit and 64-bit versions.

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Mon Jul  2 03:02:47 CEST 2012 on sn-devel-104
2012-07-02 03:02:47 +02:00
Björn Jacke
84f29b814d s3:waf add sendfile support for Tru64, which is the same as HP-UX's
Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Sat Jun 30 02:22:21 CEST 2012 on sn-devel-104
2012-06-30 02:22:21 +02:00
Jeremy Allison
f81fd1ccc3 Try and fix the autoconf build on Solaris/Nexenta/etc.
Their AC_TRY_RUN doesn't include any current CPPFLAGS. Make
the set[res]uid checks independent of this. Needs a small
change to the waf build in order to code with the change.

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Jun 30 00:32:36 CEST 2012 on sn-devel-104
2012-06-30 00:32:36 +02:00
Jeremy Allison
485787f0df Move back to using per-thread credentials on Linux. Fixes the glibc native AIO lost wakeup problem.
See this post:

https://lists.samba.org/archive/samba-technical/2012-June/085101.html

for details.

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Jun 29 03:57:45 CEST 2012 on sn-devel-104
2012-06-29 03:57:45 +02:00
Michael Adam
f5b40b1bdd s3:waf-build: build the idmap backends tdb2, rid, and hash by default (shared) 2012-06-18 11:44:50 +02:00
Stefan Metzmacher
ad3881b78c s3:configure: check for SPLICE_F_MOVE at configure stage
This should fix the waf build on AIX, which has a splice symbol.

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Jun 18 11:43:01 CEST 2012 on sn-devel-104
2012-06-18 11:43:00 +02:00
Andrew Bartlett
4edd8b891a s3-auth: Remove auth_netlogond
auth_netlogond was an important module in the development of the
combined Samba 4.0, and was the first module to link smbd with the AD
authentication store, showing that it was possible for NTLM
authentication to be offloaded to the AD server components.

We now have auth_samba4, which provides the full GENSEC stack to smbd,
which also matches exactly the group membership and privileges
assignment and which is supported and tested as part of the official
Samba 4.0 release configuration.

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Sat Jun 16 10:13:20 CEST 2012 on sn-devel-104
2012-06-16 10:13:20 +02:00
Andrew Bartlett
9c715da1cb s3-passdb: Remove pdb_ads
pdb_ads was an important module in the development of the combined Samba 4.0, and
was the first module to show that standard samba3 tools such as smbpasswd can be
made to operate on the sam.ldb.

We now have pdb_samba4, which operates directly on the sam.ldb, rather than via
ldapi://, which uses transactions and which is supported and tested as part
of the official Samba 4.0 release configuration.

This module is not as complete (for example, it does not honour the idmap
configuration) and requires that the samba binary be running to operate.

Andrew Bartlett
2012-06-16 08:18:10 +02:00
Andrew Bartlett
7a723c6b38 build: Remove support for non-64bit sendfile()
Some early Linux 2.6 platforms can not handle sendfile and _FILE_OFFSET_BITS == 64

This disables sendfile() on these platforms.

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Sat Jun 16 02:21:28 CEST 2012 on sn-devel-104
2012-06-16 02:21:27 +02:00
Björn Jacke
8778e41182 build: fix typo that breaks the HP-UX build
Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Thu Jun  7 12:49:17 CEST 2012 on sn-devel-104
2012-06-07 12:49:17 +02:00
Andrew Bartlett
0dd4363bb2 build: Tidy up broken posix_fallocate tests
This makes the code and output for in waf and autoconf identical.

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Jun  7 08:35:33 CEST 2012 on sn-devel-104
2012-06-07 08:35:33 +02:00
Andrew Bartlett
d2f6d0ba1e build: Rationalise AIO support in configure, ensure on by default
With this change, the define to check for AIO is HAVE_AIO, consistant
with other subsystems.

It is now also on by default in the autoconf build, as it has been for waf.

Andrew Bartlett
2012-06-06 08:23:10 +02:00
Andrew Bartlett
15c532e78b build: Add newlines for clarity 2012-06-05 09:48:06 +02:00
Andrew Bartlett
659f588c7a build: Add test for HAVE_BROKEN_POSIX_FALLOCATE to waf build
This was previously only in the autoconf build, added in 3264a98f.

Andrew Bartlett
2012-06-05 09:48:05 +02:00
Andrew Bartlett
ad26c2a726 build: Match autoconf build and disable ACLs on MacOS (darwin)
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sun Jun  3 16:03:59 CEST 2012 on sn-devel-104
2012-06-03 16:03:59 +02:00
Andrew Bartlett
a9311ebfe7 build: Check correctly for sendfile (missing .h in header)
This will hopefully fix the build on SLES8, which does not support 64-bit sendfile.

Andrew Bartlett
2012-06-02 05:34:08 +02:00
Andrew Bartlett
2716b0a3f3 build: Always attempt to build posix ACLs
These are on more systems than just linux.  If the configure test passes
then assume it is available.

Andrew Bartlett
2012-06-02 02:13:49 +02:00
Andrew Bartlett
c290cdb934 lib/replace: xattr wrappers in lib/replace rather than source3/lib/system.c
This also moves all the still-used configure tests etc.  The unused OSF API
is also removed at this time.

Andrew Bartlett
2012-06-02 02:13:49 +02:00
Andrew Bartlett
39076c5a3f build: Remove all references to libuuid
We simply do not need this library any more.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sun May 27 11:08:22 CEST 2012 on sn-devel-104
2012-05-27 11:08:22 +02:00
Andriy Syrovenko
c85f33458f Eliminate dependency on an external uuid library. 2012-05-27 13:15:56 +10:00
Alexander Bokovoy
2ddf89a2bc Introduce system MIT krb5 build with --with-system-mitkrb5 option.
System MIT krb5 build also enabled by specifying --without-ad-dc

When --with-system-mitkrb5 (or --withou-ad-dc) option is passed to top level
configure in WAF build we are trying to detect and use system-wide MIT krb5
libraries. As result, Samba 4 DC functionality will be disabled due to the fact
that it is currently impossible to implement embedded KDC server with MIT krb5.

Thus, --with-system-mitkrb5/--without-ad-dc build will only produce
  * Samba 4 client libraries and their Python bindings
  * Samba 3 server (smbd, nmbd, winbindd from source3/)
  * Samba 3 client libraries

In addition, Samba 4 DC server-specific tests will not be compiled into smbtorture.
This in particular affects spoolss_win, spoolss_notify, and remote_pac rpc tests.
2012-05-23 17:51:50 +03:00
Stefan Metzmacher
413e1be773 s3:auth: remove unused auth_server.c
metze
2012-05-15 08:18:29 +02:00
Alexander Bokovoy
4291fdcf39 waf: move krb5 checks to a separate waf file
With PROCESS_SEPARATE_RULE in wafsamba it is now possible to simplify
configuration and checks for MIT/Heimdal Kerberos implementations.

1. Move MIT krb5 checks from source3/wscript to wscript_configure_krb5
2. Make sure they are called same way (--with-mit-krb5-checks)
3. If no configure checks identified MIT krb5 in system (or were disabled),
   make sure Heimdal build is selected, embedded (default) or system-provided.

This makes logic of configuration unchanged for Heimdal builds but adds
less hacky way to use MIT krb5 builds. The latter does not work yet as we
need to untangle more subsystems from HDB/Heimdal-specific details but
lays out a foundation for that.

Signed-off-by: Simo Sorce <idra@samba.org>
2012-04-23 16:38:43 -04:00
Adrian Bunk
55cbf7ba34 rely on sys/inotify.h for inotify
sys/inotify.h was added to glibc 2.4 in 2006.

Signed-off-by: Jeremy Allison <jra@samba.org>

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Apr 13 21:15:00 CEST 2012 on sn-devel-104
2012-04-13 21:15:00 +02:00
Simo Sorce
c13c065a9b krb5_wrap: krb5_string_to_key / krb5_encrypt_block are deprecated.
Remove checks and replace with krb5_c_string_to_key().

Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-12 12:06:43 +02:00
Günther Deschner
60f192ae10 s3-waf: remove requirement of having --enable-developer for running system krb5 checks.
When you know about "with_mit_krb5_checks" you are most likely a developer
already.

Guenther

Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-12 12:06:41 +02:00
Jeremy Allison
fe707f6549 Add a new module, aio_linux which implements Linux kernel aio support. Docs to follow.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Apr 11 02:29:04 CEST 2012 on sn-devel-104
2012-04-11 02:29:04 +02:00
Jeremy Allison
d425a4cd3d On advice from Jelmer and Andrew, move the blksize_t and blkcnt_t tests into libreplace to make it standalone.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Apr 10 04:07:11 CEST 2012 on sn-devel-104
2012-04-10 04:07:11 +02:00
Jeremy Allison
5701a4d861 Move blksize_t and blkcnt_t to replace.h from includes.h. Should help with platforms that don't have these.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Apr  9 21:40:42 CEST 2012 on sn-devel-104
2012-04-09 21:40:40 +02:00
Jeremy Allison
a92c532573 Bug found by Herb. blkcnt_t st_ex_blksize is defined as a signed value. When it is
on a 32-bit system and defined as a long, then inside vfswrap_get_alloc_size()
we cast to a uint64_t. This sign-extends when converting to unsigned,
so if the high bit of st_ex_blksize is set we return insane values to clients.
2012-04-06 14:20:12 -07:00
Andrew Bartlett
48166468fe s3-build: Remove unused configure checks for xattr functions
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Apr  5 07:13:29 CEST 2012 on sn-devel-104
2012-04-05 07:13:28 +02:00
Andrew Bartlett
19eee33d82 s3-vfs: Remove unused lremovexattr call from VFS modules, system.c and configure
If this is ever needed again, it would be more appropriate as an options argument
to removexattr.

Andrew Bartlett
2012-04-05 13:39:01 +10:00
Andrew Bartlett
4af0f5f135 s3-build: Remove unused configure checks for xattr functions 2012-04-05 13:39:00 +10:00
Andrew Bartlett
c70ac29c54 s3-vfs: Remove unused lsetxattr call from VFS modules, system.c and configure
If this is ever needed again, it would be more appropriate as an options argument
to listxattr.

Andrew Bartlett
2012-04-05 13:39:00 +10:00
Andrew Bartlett
c5b17c5555 s3-vfs: Remove unused llistxattr call from VFS modules, system.c and configure
If this is ever needed again, it would be more appropriate as an options argument
to listxattr.

Andrew Bartlett
2012-04-05 13:39:00 +10:00
Andrew Bartlett
b2f7cfa848 s3-vfs: Remove unused lgetxattr call from VFS modules, system.c and configure 2012-04-05 13:39:00 +10:00
Andrew Bartlett
b4e58111b9 build: Remove configure tests for *64 functions and types
We now use the standard types only.

Andrew Bartlett
2012-04-05 02:39:08 +02:00
Andrew Bartlett
d5c7de8650 build: Require 64-bit files support and do not define HAVE_EXPLICIT_LARGEFILE_SUPPORT 2012-04-05 02:39:08 +02:00
Andrew Bartlett
fba028afbd build: Remove checks for krb5_decode_ap_req, free_AP_REQ and KRB5_TICKET_HAS_KEYINFO
Signed-off-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Apr  3 19:19:33 CEST 2012 on sn-devel-104
2012-04-03 19:19:33 +02:00
Andrew Bartlett
bc3e52d9d0 build: Remove unused check for HAVE_KRB5_TKT_ENC_PART2
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-04-03 17:47:32 +02:00
Andrew Bartlett
da50ff7f84 s3-vfs: initial work on posix:eadb module
This is a module that, like vfs_xattr_tdb, stores extended attributes
in a DB on disk.  This uses the format needed to support the
posix:eadb smb.conf option.

Andrew Bartlett
2012-04-03 14:35:02 +10:00
Jelmer Vernooij
71d41a015a libreplace: Add getpeereid implementation. 2012-03-24 16:00:36 +01:00
Amitay Isaacs
cbe27b3719 build: Do not use --export-dynamic flag on OpenBSD 5.x
With --export-dynamic flag on OpenBSD 5.x, extra symbols get added in the
data segment which causes ABI generation script to fail.

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Fri Mar 16 16:04:31 CET 2012 on sn-devel-104
2012-03-16 16:04:31 +01:00
Andrew Bartlett
180b3a3bbe build: Do not build with utmp when we do not have utmp.h
This matches the autoconf build, and should partially address bug #8709.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Mar 15 01:12:15 CET 2012 on sn-devel-104
2012-03-15 01:12:15 +01:00
Andrew Bartlett
6090a155f0 build: look for backtrace_symbols in libexec 2012-03-01 22:04:45 +11:00
Andrew Bartlett
3bf922111a s3-build: expliticly require gssapi for HAVE_KRB5 and remove HAVE_GSSAPI
The requirement for gss functions already make this happen, but
this is clearer.  No code depends on HAVE_GSSAPI any more.

Andrew Bartlett
2012-02-13 04:41:05 +01:00
Andrew Bartlett
5c2a2135c9 s3-libsmb: Remove unused kerberos_set_creds_enctype()
Also remove the unused configure tests for krb5_c_enctype_compare.

Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html

Andrew Bartlett
2012-02-10 16:45:15 +11:00
Andrew Bartlett
292974ed0c s3-libsmb: Remove unused kerberos_compatible_enctypes
Also remove the unused configure tests for krb5_c_enctype_compare.

Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html

Andrew Bartlett
2012-02-10 16:45:14 +11:00
Andrew Bartlett
a7835f4736 s3-libsmb: Remove unused smb_krb5_mk_error()
Also remove now-unused configure checks for krb5_mk_error().

Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html

Andrew Bartlett
2012-02-10 16:45:13 +11:00
Andreas Schneider
2464a7b0dd s3-libsmb: Remove obsolete smb_krb5_locate_kdc.
Signed-off-by: Günther Deschner <gd@samba.org>

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Feb  9 14:58:57 CET 2012 on sn-devel-104
2012-02-09 14:58:57 +01:00
Jelmer Vernooij
51e162df8b source3/wscript: Expand tabs, to prevent confusion (whitespace is significant in python/waf). 2012-02-01 01:07:11 +01:00
Stefan Metzmacher
c74a522db1 s3:build: require gss_krb5_export_lucid_sec_context() for ads support
This is needed to detect krb5 with aes for GENSEC_FEATURE_NEW_SPNEGO
at runtime.

metze
2012-01-25 08:44:33 +01:00
Stefan Metzmacher
ab5cdb31e9 Revert "s3:build: for now do not require gsskrb5_extract_authz_data_from_sec_context"
This reverts commit 74abe369df.

Having gsskrb5_extract_authz_data_from_sec_context as symbol in the
library is in indicator that gss_inquire_sec_context_by_oid() would work.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Jan 25 05:26:14 CET 2012 on sn-devel-104
2012-01-25 05:26:13 +01:00
Stefan Metzmacher
74abe369df s3:build: for now do not require gsskrb5_extract_authz_data_from_sec_context
We do not use it yet.

metze
2012-01-20 18:44:10 +01:00
Günther Deschner
1bbcc65399 s3-waf: check for KRB5_PDU_NONE as in the autoconf build.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Jan 13 11:15:35 CET 2012 on sn-devel-104
2012-01-13 11:15:35 +01:00
Günther Deschner
31d9b24eef s3-waf: also check for gsskrb5_extract_authz_data_from_sec_context() during
configure.

Guenther
2012-01-13 09:29:07 +01:00
Andrew Bartlett
7fb82a5a24 krb5: Require gss_get_name_attribute or Heimdal's PAC parsing to build with krb5
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Jan 10 23:23:07 CET 2012 on sn-devel-104
2012-01-10 23:23:07 +01:00
Andrew Bartlett
19deda26d0 krb5: Require krb5_string_to_key be available to build with krb5 2012-01-10 21:50:07 +01:00
Andrew Bartlett
cfe68f2d5f krb5: Require krb5_set_real_time is available to build with krb5 2012-01-10 21:50:07 +01:00
Andrew Bartlett
0c6af1e2da krb5: Require krb5_principal_compare_any_realm be available to build with krb5 2012-01-10 21:50:07 +01:00
Andrew Bartlett
39d73e2420 krb5: Require krb5_get_renewed_creds be available to build with krb5 2012-01-10 21:50:07 +01:00
Andrew Bartlett
39b476d1c9 krb5: Require krb5_get_init_creds_opt_alloc/free for build with krb5
This also assumes the modern API with a krb5_context argument.

Andrew Bartlett
2012-01-10 21:50:07 +01:00
Andrew Bartlett
fc7b34c83a krb5: Require krb5_fwd_tgt_creds to be available to build with krb5 2012-01-10 21:50:07 +01:00
Andrew Bartlett
016fc0af0c krb5: Require krb5_get_host_realm and krb5_free_host_realm be available to build with krb5 2012-01-10 21:50:07 +01:00
Andrew Bartlett
6b2e742d6c krb5: Require krb5_c_verify_checksum is available to build with krb5 2012-01-10 21:50:07 +01:00
Andrew Bartlett
17e61e4290 krb5: Require krb5_c_enctype_compare is available to build with krb5 2012-01-10 21:50:07 +01:00
Günther Deschner
0f7918425a samba: check for AES encryption type defines.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Jan 10 15:05:38 CET 2012 on sn-devel-104
2012-01-10 15:05:37 +01:00
Jeremy Allison
e8a7d9c822 Add a sys_get_number_of_cores() function that calls sysconf or sysctl
and tunes the aio threads.
2012-01-06 02:42:25 +01:00
Jeremy Allison
3a18a42d13 Add S3 vfs_aio_pthread module to replace broken glibc aio code.
Compiles but not yet tested.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Jan  5 01:43:51 CET 2012 on sn-devel-104
2012-01-05 01:43:51 +01:00
Jelmer Vernooij
05bc4de083 Revert making public of the samba-module library.
This library was tiny - containing just two public functions than were
themselves trivial. The amount of overhead this causes isn't really worth the
benefits of sharing the code with other projects like OpenChange. In addition, this code
isn't really generically useful anyway, as it can only load from the module path
set for Samba at configure time.

Adding a new library was breaking the API/ABI anyway, so OpenChange had to be
updated to cope with the new situation one way or another. I've added a simpler
(compatible) routine for loading modules to OpenChange, which is less than 100 lines of code.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Dec  3 08:36:33 CET 2011 on sn-devel-104
2011-12-03 08:36:30 +01:00
Günther Deschner
9c4d49863a s3-waf: fix the build with CTDB_CONTROL_CHECK_SRVIDS.
Volker, Michael, please check.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Nov 30 18:37:29 CET 2011 on sn-devel-104
2011-11-30 18:37:29 +01:00
Andrew Bartlett
184e8e5218 build: TDB_ERR_NESTING is used unconditionally
Therefore, do not bother doing an autoconf test looking for it.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Nov 30 00:08:18 CET 2011 on sn-devel-104
2011-11-30 00:08:16 +01:00
Björn Baumbach
b9e6c48678 s3-wafbuild: Fix inotify detection (bug 8580)
Enable inotify if sys or kernel inotify is available.

Signed-off-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Nov  7 16:28:38 CET 2011 on sn-devel-104
2011-11-07 16:28:37 +01:00
Andrew Bartlett
b256799eaf lib/util Rename samba_init_module -> samba_module_init
This is to provide a cleaner namespace in the public samba plugin
functions.

Andrew Bartlett
2011-10-28 13:10:28 +02:00
Günther Deschner
b96a9e1c5b s3-waf: make sure we always build example pdb modules with --enable-developer.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Oct 17 17:39:36 CEST 2011 on sn-devel-104
2011-10-17 17:39:36 +02:00
Günther Deschner
235f78aa95 s3-waf: make sure we always build example auth modules with --enable-developer.
Guenther
2011-10-17 15:54:17 +02:00
Brad Smith
d810ada39c Fix sys_fseek wrapper
Signed-off-by: Günther Deschner <gd@samba.org>
2011-10-14 17:52:36 +02:00
Kai Blin
002694c38d s3 waf: Use upper case uselib_store parameter, otherwise the following checks won't find it
Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Wed Oct 12 09:49:50 CEST 2011 on sn-devel-104
2011-10-12 09:49:50 +02:00
Günther Deschner
49eba95b2b s3-waf: make sure we build example vfs modules with --enable-developer.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Oct 11 21:22:55 CEST 2011 on sn-devel-104
2011-10-11 21:22:55 +02:00
Günther Deschner
d6cb58e18d s3-waf: fix configure check for HAVE_LINUX_READAHEAD.
Guenther
2011-10-11 19:50:31 +02:00
Günther Deschner
3522f9dc4b s3-waf: fix configure check for HAVE_LINUX_FALLOCATE64.
Guenther
2011-10-11 19:50:31 +02:00
Günther Deschner
245c8c1c02 s3-waf: fix configure check for HAVE_LINUX_FALLOCATE.
Guenther
2011-10-11 19:50:31 +02:00
Günther Deschner
028cf00293 s3-waf: fix configure check for HAVE_POSIX_FADVISE.
Guenther
2011-10-11 19:50:31 +02:00
Stefan Metzmacher
29dbda56b5 s3:modules: add vfs_dfs_samba4
This module overloads the SMB_VFS_GET_DFS_REFERRAL() hooks,
in order to support the domain, dc and sysvol referrals
for a AD DC.

The config would look like this:

[IPC$]
    vfs objects = dfs_samba4

metze
2011-10-08 01:43:38 +02:00
Andrew Bartlett
64d0230332 build: Remove obsolete --enable/disable-merged-build
All waf builds build everything now.

Andrew Bartlett
2011-10-07 17:45:20 +11:00
Andrew Bartlett
055f017b36 build: Reduce build systems to just top level waf and autoconf
The s3-waf build system is a key component of the top level build, but
with this commit is is no longer available directly.  This reduces the
number of build system combinations in master as we prepare for the
Samba 4.0 release.

Andrew Bartlett
2011-10-07 17:42:03 +11:00
Volker Lendecke
1184e7de59 s3: Use the uid_wrapper
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-10-06 12:15:27 +02:00
Andrew Bartlett
355b5e3a83 modules: standardise on samba_init_module as the hook symbol to resolve 2011-10-06 07:18:07 +02:00
Andrew Bartlett
8316577b75 lib/util/charcnv: Remove broken internal CP850 and CP464 modules
These modules are now known to be faulty, and Samba 3.6.0 didn't
include support for them, so we now require a system iconv if you wish
to support these character sets for the non-ASCII range.

Andrew Bartlett
2011-09-20 04:53:05 +02:00
Günther Deschner
3a07fe5b36 s3-waf: finally make SO_PEERCRED configure check work with stricter CFLAGS.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Sep 16 14:14:48 CEST 2011 on sn-devel-104
2011-09-16 14:14:48 +02:00
Günther Deschner
f98ad9e9ed s3-waf: fix SO_PEERCRED configure check.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Sep 15 20:59:26 CEST 2011 on sn-devel-104
2011-09-15 20:59:26 +02:00
Andrew Bartlett
fc6bb5d47a lib/util/charset: add back loading of charset modules
For autoconf builds these remain as modules, for waf builds they are
built into the charset library.

This is required to provide the CP850 charset when iconv is not available.

The charset modules static for the waf builds because with proper
shared libs, there isn't the same need for these to be in seperate .so
files.  The modules are also not produced if a system iconv is found,
except for developers, to allow testing of both code paths.

Andrew Bartlett
2011-09-10 14:18:06 +02:00
Andrew Bartlett
07840b665f s3-waf: Fix build on FreeBSD when sunacl.h is found
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Aug  8 04:34:35 CEST 2011 on sn-devel-104
2011-08-08 04:34:35 +02:00
Christian Ambach
fb766cd597 s3-waf: fix a libcrypto configure check
the parameters to conf.CHECK_FUNCS_IN were in the wrong order

Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Thu Jul 21 16:49:52 CEST 2011 on sn-devel-104
2011-07-21 16:49:51 +02:00
Günther Deschner
56db9c9f27 s3-waf: remove s3-waf specific dynconfig.
This merge finally makes --with-logfilebase=foo and friends work appropriately.

Andrews, Andreas, please check.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Jun 28 17:54:42 CEST 2011 on sn-devel-104
2011-06-28 17:54:41 +02:00
Andrew Bartlett
4d2c56c4b1 s3-net: Bind our gettext results to 'unix charset'
This ensures that the translations and any embedded strings are in the
same charset.  It won't be the one from the user's locale (we no
longer auto-detect that), but it will be self-consistent.

Thanks to Steve Langasek for pointing this function out!

Andrew Bartlett
2011-06-23 13:47:27 +02:00
Andrew Bartlett
de0e011944 lib/util/charset: Remove autodetection of charset from LOCALE
In the past, our LOCALE would set the display charset of Samba.  The
display charset has now been removed.  This patch removes the support
code that detected the locale from the environment.  We cannot safely
have 'unix charset' follow the locale (at it creates files on disk and
entries in databases that must not vary), so this code is unused.

As an example, imagine a database is manipulated in the
administrator's locale, and then read by smbd starting up in the
system default locale.  Or smbd restarted by the administrator rather
than a startup script.  Both of these situations could corrupt
databases or filenames on disk.

Andrew Bartlett
2011-06-23 13:47:27 +02:00
Rusty Russell
0e4c358e27 tdb_compat.h: divert every tdb build and includes to tdb_compat
We change all the headers and wscript files to use tdb_compat; this
means we have one place to decide whether to use TDB1 or TDB2.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-20 11:18:34 +02:00
Rusty Russell
754c677b0b lib: import ccan modules for tdb2
Imported from git://git.ozlabs.org/~ccan/ccan init-1161-g661d41f

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-20 11:18:34 +02:00
Jeremy Allison
5abab13851 Add check for the getcwd function being able to take NULL,0 arguments. 2011-06-01 02:54:51 +02:00
Andrew Bartlett
a47c7f6b4c s3-passdb: added pdb_samba4
This uses direct LDB operations and calls to the dsdb library to allow
passdb operations (such as pdbedit and smbpasswd) offline, and uses
transactions internally for database consistency.

Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
2011-05-08 19:00:28 +02:00
Andrew Bartlett
d1df1cb714 build: Allow the C code to know if this is a waf build
This allows addition of functionality that can't be handled (for
example, due to dependencies) in the autoconf build.

Andrew Bartlett
2011-05-08 17:36:25 +02:00
Gordon Ross
ac25835ab7 Fix Samba3 on OpenIndiana.
I'd like Samba to use the native OpenLDAP and MIT Kerberos libs.
Attached are some patches to do that. (relative to git master)
It does not build for me without these.

(OpenIndiana is an off-shoot of OpenSolaris  See http://www.openindiana.org)

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat May  7 02:20:14 CEST 2011 on sn-devel-104
2011-05-07 02:20:14 +02:00
Günther Deschner
0d1b2d2033 s3-waf: add vfs_gpfs_hsm_notify to the build.
Volker, can you please check this is correct ?

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed May  4 19:03:45 CEST 2011 on sn-devel-104
2011-05-04 19:03:45 +02:00
Andrew Bartlett
e1eae82285 kerberos: Only include gssapi/gssapi_krb5.h when available 2011-04-30 04:58:04 +02:00
Andrew Bartlett
a427652010 s3-libads: Use ldap_init_fd() to connect to AD server in socket_wrapper
This means that we control the connection setup, don't rely on signals
for timeouts and the connection uses socket_wrapper where that is
required in our test environment.

According to bug reports, this method is also used by curl and other
tools, so we are not the first to (ab)use the OpenLDAP libs in this
way.

It is ONLY enabled for socket_wrapper at this time, as this is the
best way to get 'make test' working for S3 winbind tests in an S4
domain.

Andrew Bartlett
2011-04-28 05:30:21 +02:00
Günther Deschner
66b26195d2 s3-waf: add pthreadpool support.
Volker, please check.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Apr 27 17:57:32 CEST 2011 on sn-devel-104
2011-04-27 17:57:32 +02:00
Günther Deschner
cad8fafa03 s3-waf: check for pthread support.
Guenther
2011-04-27 16:51:02 +02:00
Andrew Bartlett
a60889e006 s3-waf Don't enable profiling by default
This is disabled by default in the s3-autoconf build.

Andrew Bartlett
2011-04-27 21:10:30 +10:00
Andrew Bartlett
47e2870228 auth/kerberos Add check for gss_inquire_sec_context_by_oid
Not all kerberos distributions have this function.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Apr 27 07:39:08 CEST 2011 on sn-devel-104
2011-04-27 07:39:08 +02:00
Andrew Bartlett
cd7112ba84 s3-gse: Don't release the mech OID from gss_accept_security_context
This is constant data according to the man pages I find for this
fucntion, and causes a segfault to free() when linked to Heimdal.  I
am advised that while it is constant for gss_mech_krb5, it may not be
for other mechanisms, so an assert will ensure this is dealt with by
the programmer who extends this code in future.

Andrew Bartlett
2011-04-27 11:56:48 +10:00
Andrew Bartlett
6ec4306f8c auth/kerberos: Create common helper to get the verified PAC from GSSAPI
This only works for Heimdal and MIT Krb5 1.8, other versions will get
an ACCESS_DEINED error.

We no longer manually verify any details of the PAC in Samba for
GSSAPI logins, as we never had the information to do it properly, and
it is better to have the GSSAPI library handle it.

Andrew Bartlett
2011-04-27 11:56:48 +10:00
Stefan Metzmacher
1cf715ed21 Revert "s3-vfs: another attempt to fix the Tru64 build."
This reverts commit 5290927187.

A better fix will follow.

metze
2011-04-23 11:17:47 +02:00
Günther Deschner
5290927187 s3-vfs: another attempt to fix the Tru64 build.
vfsops struct on Tru64 has a vfs_init function pointer.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Apr 22 01:49:59 CEST 2011 on sn-devel-104
2011-04-22 01:49:59 +02:00
Günther Deschner
0e00351570 s3-waf: try to fix the build on sunos5.
Guenther
2011-04-22 00:49:54 +02:00
Günther Deschner
a505806aa0 s3-waf: fix typo in comment.
Guenther
2011-04-22 00:49:28 +02:00
Andrew Bartlett
3a2afe4285 s3-gse: Allow the GSSAPI wrapper to load a keytab using gss_krb5_import_cred()
This Heimdal function does not set the global state, and allows the
GSSAPI server to progress further when compiled against Heimdal (such
as in the top level build).

The ability to specify a keytab has been removed from the API as it is
unused, and and the Heimdal function (avoiding setting global
variables) works with an open keytab.

Andrew Bartlett
2011-04-20 04:31:07 +02:00
Kai Blin
c2a62e8546 s3 waf: Mimic the autoconf check for netgrent
The autoconf check for netgrent headers makes sure that the compiler flag used
(-Werror-implicit-function-declaration) is recognized by the compiler before
using it for the test. Mimic this behaviour in the waf checks.
Thanks to gd for noticing this.

Signed-off-by: Günther Deschner <gd@samba.org>

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Apr 18 16:24:15 CEST 2011 on sn-devel-104
2011-04-18 16:24:15 +02:00
Andrew Bartlett
4ba1375526 libcli/auth Move krb5 wrapper functions from s3 into common
This requires a small rework of the build system to ensure that the
correct #define statements are made in both the s3 and top level
builds.  We now define the various HAVE_ macros in config.h at all
times, using heimdal_build/wscript_configure when that is in use.

Andrew Bartlett
2011-04-14 16:38:26 +10:00
Günther Deschner
1b4d27d45a s3-waf: add --with-profiling-data configure option.
Guenther
2011-04-14 00:47:57 +02:00
Günther Deschner
a7ba4b5baa s3-waf: fix typo in ctdb checks.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Apr  5 17:20:19 CEST 2011 on sn-devel-104
2011-04-05 17:20:19 +02:00
Michael Adam
d143bc444c s3:waf: add cluster support / ctdb checks.
The checks are roughtly taken from the autoconf ctdb checks.

I was not able to implement checks with CHECK_DECL, CHECK_TYPE,
CHECK_HEADER and friends, because the ctdb headers seem to need too
special a setup of includes and defines in order to compile.
So I used CHECK_CODE() in all checks.

In the long run, this should be changed.

I supported a --with-ctdb-dir options to allow for building
against a ctdb that is not installed into /usr (e.g. against
a local git checkout). In order to implement this, I had to
hand includes in to the CHECK_CODE function.
Here I found a problem with CHECK_CODE (or even the core waf
conf.check() function: The CHECK_CODE function does not
expand the includes it gets (i.e. '#' is not expanded to the
base dir, and relative paths are left relative). But the core
check() function seems to ignore all include paths that are
not absolute paths. Hence in particular the usual default '# .'
for the includes is useless. So I preprocessed the list of includes
for the cluster checks. But I assume that it would be useful
to move this expansion into CHECK_CODE or even into the core
waf check function.

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Sat Apr  2 03:26:55 CEST 2011 on sn-devel-104
2011-04-02 03:26:55 +02:00
Christian Ambach
ed46dfc4f1 s3: use getgrset() when it is available
When getgrouplist() is not defined, use getgrset() if it is defined
instead of using the initgroups() + getgroups() combo

Major contributions from Yannick Bergeron <yaberger@ca.ibm.com>

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Mar 19 10:09:38 CET 2011 on sn-devel-104
2011-03-19 10:09:38 +01:00
Günther Deschner
33b8d0a6ff s3-waf: use HAVE_ADS env to decide whether to build libads.so
Guenther
2011-03-19 00:11:18 +01:00
Günther Deschner
1413af95fc s3-waf: add --with-pam_smbpass configure option.
We build pam_smbpass independent from this configure option though.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Mar 17 14:52:33 CET 2011 on sn-devel-104
2011-03-17 14:52:33 +01:00
Günther Deschner
7bc381bdc5 s3-waf: move HAVE_LDAP_SASL_WRAPPING define to the HAVE_LDAP block.
Guenther
2011-03-17 14:05:48 +01:00
Günther Deschner
5e3da3fc50 s3-build: try to silence annoying "Ignoring invalid value 'vlp' for parameter 'printing'"
warning on the buildfarm.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Mar 15 23:38:43 CET 2011 on sn-devel-104
2011-03-15 23:38:43 +01:00
Günther Deschner
88ff230ae9 s3-waf: fix typo.
Guenther
2011-03-10 23:25:04 +01:00
Günther Deschner
e63f0dfba1 s3-waf: add wildcard commands from main wscript.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Mar  4 02:11:11 CET 2011 on sn-devel-104
2011-03-04 02:11:10 +01:00
Günther Deschner
6b3d68fffd s3-waf: add check for SEEKDIR_RETURNS_VOID.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Mar  4 01:13:54 CET 2011 on sn-devel-104
2011-03-04 01:13:54 +01:00
Günther Deschner
0fb246ba73 s3-waf: add check for HAVE_FUNCTION_ATTRIBUTE_DESTRUCTOR.
Guenther
2011-03-04 00:28:28 +01:00
Günther Deschner
9167d70e77 libreplace: move "struct timespec" checks into libreplace (where timespec is already used).
Bjoern, Metze, please check.

Guenther
2011-03-04 00:28:27 +01:00
Günther Deschner
6b587d74d9 s3-waf: start adding checks for quota support.
Guenther
2011-02-23 22:33:52 +01:00
Günther Deschner
8bca9df258 s3-waf: add check for getspnam().
Guenther
2011-02-22 22:57:55 +01:00
Günther Deschner
b1e5dc716e s3-waf: add check for TDB_ERR_NESTING.
Guenther
2011-02-22 22:57:55 +01:00
Günther Deschner
7f0ef4fb4a s3-waf: add check for sendfile on AIX.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Feb 22 22:36:53 CET 2011 on sn-devel-104
2011-02-22 22:36:53 +01:00
Günther Deschner
2b53e7eec7 s3-waf: add check for sendfile on solaris.
Guenther
2011-02-22 21:52:19 +01:00
Günther Deschner
6c32fe5207 s3-waf: add check for sendfile on hpux.
Guenther
2011-02-22 21:52:19 +01:00
Günther Deschner
2babc4fcf4 s3-waf: add check for sendfile on freebsd.
Guenther
2011-02-22 21:52:19 +01:00
Günther Deschner
d71c024131 s3-waf: add check for sendfile on linux.
Guenther
2011-02-22 21:52:19 +01:00
Günther Deschner
ef896e647a s3-waf: make sure ENABLE_BUILD_FARM_HACKS is enabled when run on the buildfarm.
Guenther
2011-02-22 21:52:19 +01:00
Günther Deschner
79b41dcae1 s3-waf: add check for ftruncate extend.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Feb 22 13:35:48 CET 2011 on sn-devel-104
2011-02-22 13:35:48 +01:00
Günther Deschner
4fe3ecefa0 s3-waf: add check for realpath() NULL arg.
Guenther
2011-02-22 12:46:06 +01:00
Günther Deschner
33d676cd7e s3-waf: add check for makedev().
Guenther
2011-02-22 12:46:06 +01:00
Günther Deschner
bd333551bd s3-waf: add check for TIME_T_MAX.
Guenther
2011-02-22 12:46:06 +01:00
Günther Deschner
2984003275 s3-waf: add check for /proc/sys/kernel/core_pattern.
Guenther
2011-02-22 12:46:06 +01:00
Andrew Tridgell
15c0440349 s3-waf: work around broken cups-config --libs output
"cups-config --libs" returns -lgssapi_krb5, which ties it to the
system krb5 library. It should get this via the indirect dependency of
libcups.so instead.

Work around this by using 'cups' as the library and avoid using --libs
in the cups-config command

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-22 02:51:09 +01:00
Andrew Tridgell
de71662908 s3-waf: added support for in-tree heimdal in source3 waf build
this sets up the right defines for a in-tree heimdal build

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-22 02:51:09 +01:00
Andrew Tridgell
0234ac4e3c s3-waf: use Logs.warn() not print for configure warnings
this highlights the warning for the user

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-22 02:51:09 +01:00
Andrew Tridgell
76e3af95c3 s3-waf: make pieces of the source3 waf wscript depends on toplevel_build
this will allow the toplevel build to use source3/wscript for
configure options

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-22 02:51:09 +01:00
Günther Deschner
3c9703f485 s3-waf: we need to globally -Ilib/replace
Guenther
2011-02-18 15:39:28 +01:00
Günther Deschner
a2f4a17b5e s3-waf: fix popt support.
Guenther
2011-02-18 15:34:27 +01:00
Andrew Bartlett
0bad0e3ff2 s3-libads Remove MIT-specific krb5_princ_realm macro calls.
When compiled against heimdal, we need to use a more elegant API.

Andrew Bartlett
2011-02-18 17:00:34 +11:00
Andrew Tridgell
88508291fe s3-waf: fixed the include paths for samba public libraries
this fixes the extra global includes for the s3 waf build to be
conditional on whether talloc, tevent and tdb are system libraries or
not.

This fixes a problem where in-tree includes could be used with system
libraries

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-18 15:09:47 +11:00
Günther Deschner
2045cd7ed7 s3-waf: add check for "struct sigevent" and some of its members.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Feb 17 12:01:58 CET 2011 on sn-devel-104
2011-02-17 12:01:58 +01:00
Günther Deschner
ce718bb521 s3-waf: add check for "struct utimbuf".
Guenther
2011-02-17 11:16:06 +01:00
Andrew Tridgell
e1f2442096 s3-waf: move the KRB5_DEPRECATED configure check out of lib/replace
this needs to be in souce3/, as otherwise it can't handle an in-tree
kerberos library

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-17 00:55:56 +01:00
Günther Deschner
9e822f1032 s3-waf: add check for struct stat st_flags member.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Feb 16 23:04:35 CET 2011 on sn-devel-104
2011-02-16 23:04:35 +01:00
Günther Deschner
afb77d135e s3-waf: add some missing checks for macosx.
Guenther
2011-02-16 21:59:15 +01:00
Günther Deschner
5d3f956925 s3-waf: add check for __NR_inotify_init declaration.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Feb 16 19:28:18 CET 2011 on sn-devel-104
2011-02-16 19:28:18 +01:00
Günther Deschner
a029235b3e s3-waf: add check for various sysconf() variables.
Guenther
2011-02-16 18:39:41 +01:00
Günther Deschner
9d78512b2b s3-waf: add check for posix_fadvise().
Guenther
2011-02-16 18:39:40 +01:00
Günther Deschner
1cc0fb5a9a s3-waf: add check for hires timestamps in struct stat.
Guenther
2011-02-16 18:39:38 +01:00
Günther Deschner
3b3f13a7fb s3-waf: add check for "struct flock64".
Guenther
2011-02-16 18:39:35 +01:00
Günther Deschner
8701b0d645 s3-waf: add check for broken (glibc2.1/x86) 64 bit fcntl locking.
Guenther
2011-02-16 18:39:32 +01:00
Günther Deschner
4e32fd9d5c s3-waf: add check for fcntl locking.
Guenther
2011-02-16 18:39:28 +01:00
Günther Deschner
b3f76482d2 s3-waf: add check for "struct dirent64".
Guenther
2011-02-16 18:01:23 +01:00
Günther Deschner
6531ac6a65 s3-waf: next attempt to fix cups and non-cups builds.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Feb 11 16:57:40 CET 2011 on sn-devel-104
2011-02-11 16:57:40 +01:00
Günther Deschner
414f39872d s3-waf: try to deal with underlinked cups libraries.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Feb 11 15:28:32 CET 2011 on sn-devel-104
2011-02-11 15:28:32 +01:00
Günther Deschner
1bad50f648 s3-waf: rework the way SMBLDAP subsystem is built a little.
Guenther
2011-02-11 12:22:41 +01:00
Günther Deschner
44f2344a92 s3-waf: try to deal with system w/o ldap; also move module processing to the end of wscript.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Feb 11 02:30:40 CET 2011 on sn-devel-104
2011-02-11 02:30:40 +01:00
Günther Deschner
6bc6d5dcfb s3-waf: try to fix the {net|free|open}bsd build.
Guenther
2011-02-10 23:46:45 +01:00
Günther Deschner
80d87e68de s3-waf: dont try to redefine 'pam', we checked above...
Found by solaris waf buildfarm build.

Guenther
2011-02-10 23:39:14 +01:00
Günther Deschner
1fc14a6543 s3-waf: do not make pam support mandatory.
Guenther
2011-02-10 21:24:34 +01:00
Günther Deschner
4de3e733da s3-waf: fix cups checks when lib is there but headers aren't.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Feb 10 21:24:37 CET 2011 on sn-devel-104
2011-02-10 21:24:37 +01:00
Günther Deschner
5ecda05967 s3-waf: better checks for gssapi support.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Feb 10 19:24:12 CET 2011 on sn-devel-104
2011-02-10 19:24:12 +01:00
Günther Deschner
7de21e6294 s3-waf: fix krb5 checks logic.
Guenther
2011-02-10 12:58:06 +01:00
Günther Deschner
d0406ab7f0 s3-waf: make ads support detection a little more robust.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Feb  9 23:38:50 CET 2011 on sn-devel-104
2011-02-09 23:38:50 +01:00
Günther Deschner
9239db35e6 s3-waf: make sure we dont activate dnsupdate support w/o gssapi.
Guenther
2011-02-09 22:51:08 +01:00
Günther Deschner
a0e576178b s3-waf: we check for attr in ../lib/util/script already, so we cannot set to EMPTY here.
Hopefully fixes the irix build.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Feb  9 18:58:15 CET 2011 on sn-devel-104
2011-02-09 18:58:15 +01:00
Günther Deschner
ada4c66ea3 s3-waf: as long as we dont have --with-featureX=yes|no|auto handling, avoid exiting.
Guenther
2011-02-09 18:14:19 +01:00
Günther Deschner
9081cb0fd8 s3-waf: check k5crypto in some more locations.
Guenther
2011-02-09 18:14:19 +01:00
Günther Deschner
62cd1e08b3 s3-waf: support non-default krb5-config and cups-config locations.
Guenther
2011-02-09 18:14:19 +01:00
Jeremy Allison
ad3d1adea3 Add configure checks for fdopendir. 2011-02-08 15:06:00 -08:00
Günther Deschner
4b7d0492bb s3-waf: add --with-automount option.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Feb  7 14:11:03 CET 2011 on sn-devel-104
2011-02-07 14:11:03 +01:00
Günther Deschner
13d8290d0d s3-waf: fix wrong check for vfs_aio_fork dependencies.
Guenther
2011-02-07 13:21:50 +01:00
Günther Deschner
bcdacff168 s3-waf: add support for --with-aio-support.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Feb  7 12:30:57 CET 2011 on sn-devel-104
2011-02-07 12:30:57 +01:00
Günther Deschner
3a60e5496f s3-waf: only build auth_netlogond in developer build.
Volker, please check.

Guenther
2011-02-07 11:44:55 +01:00
Günther Deschner
81a3f7a520 s3-waf: add --with-syslog option.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Feb  7 10:50:39 CET 2011 on sn-devel-104
2011-02-07 10:50:39 +01:00
Günther Deschner
45f86fd681 s3-waf: recurse into ../lib/util/wscript_configure
This gets us all the statvfs checks.

Guenther
2011-02-07 10:01:58 +01:00
Günther Deschner
72910c34df s3-waf: add support for iprint.
Guenther
2011-02-07 10:01:50 +01:00
Günther Deschner
fbbe321d19 s3-waf: fix the build after linux netlink changes.
Volker, please check.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Feb  1 23:21:50 CET 2011 on sn-devel-104
2011-02-01 23:21:50 +01:00
Günther Deschner
35a7bebe2b s3-waf: On FreeBSD, compile zfsacl if sunacl.h is around.
Volker, please check.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Jan 31 10:51:10 CET 2011 on sn-devel-104
2011-01-31 10:51:10 +01:00
Günther Deschner
ef0a3903f0 s3-waf: fix lib/addns include path.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Jan 24 16:15:58 CET 2011 on sn-devel-104
2011-01-24 16:15:58 +01:00
Günther Deschner
c675b1c827 s3-waf: no need anymore to include "source4" globally.
Guenther
2011-01-24 15:28:21 +01:00
Günther Deschner
fa5fdb1a4e s3-waf: finally enable large file support.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Jan 12 11:59:22 CET 2011 on sn-devel-104
2011-01-12 11:59:22 +01:00
Günther Deschner
e2a3ff184e s3-waf: add check for SO_PEERCRED.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Jan 12 02:29:48 CET 2011 on sn-devel-104
2011-01-12 02:29:48 +01:00
Günther Deschner
4c8b9bee14 s3-waf: add checks for Linux readahead.
Guenther
2011-01-12 01:44:22 +01:00
Günther Deschner
4412eb9d00 s3-waf: more fallocate checks stolen from autoconf.
Guenther
2011-01-12 01:44:22 +01:00
Günther Deschner
b0f4f6f464 s3-waf: add checks for fallocate fallocate64.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Jan 12 00:56:57 CET 2011 on sn-devel-104
2011-01-12 00:56:56 +01:00
Andreas Schneider
d2e93cce88 s3-waf: Fixed the static rpc service build.
Autobuild-User: Andreas Schneider <asn@samba.org>
Autobuild-Date: Tue Jan  4 12:09:48 CET 2011 on sn-devel-104
2011-01-04 12:09:48 +01:00
Günther Deschner
a5cfdde558 s3-waf: try to fix the build with snow leopard.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Dec 13 15:03:08 CET 2010 on sn-devel-104
2010-12-13 15:03:08 +01:00
Günther Deschner
b4d398f8e3 s3-waf: add -Wl,--export-dynamic to LDFLAGS.
Our binaries did not export symbols so e.g. smbd could not load vfs modules.
Patch from tridge.

We might remove this later on, once we decide to resolve all symbols and fix all
dependencies in s3 modules.

Guenther
2010-12-13 10:53:42 +01:00
Andrew Tridgell
16c36a8cb5 s3-waf: fixed version number handling 2010-12-08 05:26:06 +01:00
Günther Deschner
94cfb49bb7 s3-waf: add configure/declaration checks for fdatasync, readahead and splice.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Dec  7 16:50:23 CET 2010 on sn-devel-104
2010-12-07 16:50:23 +01:00
Günther Deschner
c5b2fd05af s3-waf: add valgrind configure checks.
Guenther
2010-12-07 16:06:17 +01:00
Günther Deschner
af4a4f58b5 s3-waf: build vfs_fileid module if possible.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Dec  7 14:01:46 CET 2010 on sn-devel-104
2010-12-07 14:01:46 +01:00
Günther Deschner
6b1ba79fbf s3-waf: add support for --with-dnsupdate.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Dec  7 13:07:51 CET 2010 on sn-devel-104
2010-12-07 13:07:51 +01:00
Günther Deschner
b73e4e36f5 s3-waf: add pam configure checks.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Dec  6 17:34:45 CET 2010 on sn-devel-104
2010-12-06 17:34:45 +01:00
Günther Deschner
189b4bc1c2 s3-waf: add krb5 configure check for WRFILE_KEYTAB.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Dec  3 13:54:25 CET 2010 on sn-devel-104
2010-12-03 13:54:24 +01:00
Günther Deschner
704f138b8e s3-waf: add krb5 configure checks for enctype 23.
Guenther
2010-12-03 13:07:53 +01:00
Günther Deschner
5676acbb73 s3-waf: more krb5 configure checks.
Guenther
2010-12-03 13:07:45 +01:00
Günther Deschner
71e2d9e7e8 s3-waf: more krb5 configure checks.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Dec  1 19:35:50 CET 2010 on sn-devel-104
2010-12-01 19:35:50 +01:00
Günther Deschner
4c2ef4ffaa s3-waf: add configure check for dirfd and build vfs_syncops vfs_dirsort if possible.
Guenther
2010-12-01 18:50:53 +01:00
Günther Deschner
a699729447 s3-waf: add idmap_ldap to default static module list.
Guenther
2010-12-01 18:50:53 +01:00
Günther Deschner
651a15d252 s3-waf: align some krb5/gssapi configure checks with classic build.
Guenther
2010-12-01 18:50:53 +01:00
Günther Deschner
133a2ffd00 s3-waf: avoid module name uppercasing.
This finally allows mixed case module names like the classic build
(./configure --shared_modules=charset_CP850)

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Dec  1 18:39:14 CET 2010 on sn-devel-104
2010-12-01 18:39:14 +01:00
Andrew Tridgell
fe5c48cbed waf: added --git-local-changes configure option
if you use --git-local-changes then the version number that waf
extracts from git will have a '+' on the end if you have local
changes, as determined by running 'git diff'.

This used to be the default, but unfortunately it is far too slow on
some systems. On a NFS build system I was using the first line of
configure took about 2 minutes.

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Nov 16 01:51:54 UTC 2010 on sn-devel-104
2010-11-16 01:51:54 +00:00
Jelmer Vernooij
7b964c7269 samba_version: When working from git checkout, display git revision SHA1 rather
than Bazaar revision ids.
2010-11-12 17:42:13 +00:00
Günther Deschner
528edcc789 s3-waf: add idmap_autorid to the build.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Nov  8 14:17:27 UTC 2010 on sn-devel-104
2010-11-08 14:17:27 +00:00
Günther Deschner
8b71438490 s3-waf: add check for httpConnect and httpConnectEncrypt.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Nov  4 14:10:40 UTC 2010 on sn-devel-104
2010-11-04 14:10:40 +00:00
Günther Deschner
090fcb0114 s3-waf: add vfs_time_audit to the build.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Oct 28 15:14:27 UTC 2010 on sn-devel-104
2010-10-28 15:14:27 +00:00
Stefan Metzmacher
2b74cea5f0 s3-waf: use git to calculate the version if available
metze
2010-10-25 08:16:28 +00:00
Andrew Tridgell
ec98bb55c6 s3-waf: fixed waf configure for recent changes 2010-10-25 11:12:03 +11:00
Günther Deschner
0ff7e0c998 samba: share readline wrappers among all buildsystems.
Guenther
2010-10-01 22:30:22 +02:00
Günther Deschner
9dcd5e6c8f s3-waf: add basic make test infrastructure, not able to test yet.
Guenther
2010-09-29 08:54:00 +02:00
Andrew Tridgell
cd3eddbb59 waf: we don't need the preprocessor recursion limit any more
thanks to ita for this
2010-09-28 11:36:40 -07:00
Günther Deschner
2cf5c661c6 s3-waf: add vfs_linux_xfs_sgid to the list of default shared modules.
Guenther
2010-09-28 20:03:54 +02:00
Günther Deschner
5fcd0471e5 s3-waf: add pam_smbpass.
Guenther
2010-09-28 09:41:54 +02:00
Günther Deschner
7afa7b8a84 s3-waf: rework static and shared list handling a little.
Guenther
2010-09-27 00:39:38 +02:00
Günther Deschner
4584a12b6a s3-waf: add missing IDMAP modules.
Guenther
2010-09-27 00:39:38 +02:00
Günther Deschner
2839c8f0b2 s3-waf: support --with-acl-support, at least for posix acls.
Guenther
2010-09-27 00:39:37 +02:00
Günther Deschner
ca2bbe00dc s3-waf: add some module specific functions for s3 waf build.
Thanks to Kai.

Guenther
2010-09-27 00:39:37 +02:00
Günther Deschner
0a1d153b25 s3-waf: add check for seteuid method.
Thanks to Kai and Metze!

Guenther
2010-09-23 18:15:09 -07:00
Sumit Bose
6bcab329e7 s3-waf: build samldap passdb backend
Signed-off-by: Günther Deschner <gd@samba.org>
2010-08-27 12:14:14 +02:00
Günther Deschner
c43e832c51 s3-waf: fix the waf build with more recent MIT krb5 libs.
(such as MIT krb5 1.7.1 on fedora 13).

This whole area needs more work and love later, for now it builds at least.

Kai, please check.

Guenther
2010-08-11 12:47:57 +02:00
Andreas Schneider
5cefbfef26 s3-rpc_server: Added callbacks for init and shutdown of a rpc service.
This adds two callback function for each rpc service. One is for
initialisation and the other for shutdown. rpc_<service>_unregister()
needs to be called to execute the shutdown function.
2010-07-19 12:59:18 +02:00
Kai Blin
cfee179d03 s3: Attempt to fix the build on NetBSD
Unlike Linux and OSX, NetBSD seems to have *netgrent prototypes in netgroup.h.
2010-06-20 16:29:38 +02:00
Kai Blin
a453b87d68 s3-waf: Change the (set|get|end)netgrent checks to match the configure.in checks 2010-06-20 09:50:19 +02:00
Kai Blin
83ad437a9c s3-waf: Add check for iconv 2010-06-17 08:09:49 +02:00
Kai Blin
7a1c24705d s3-waf: Work around missing *netgrent prototypes on OSX 10.4 2010-06-17 08:09:49 +02:00
Kai Blin
a6c921fef7 s3-waf: Add check for dirent.d_off member 2010-06-01 15:11:15 +02:00
Kai Blin
458b2484c7 s3-waf: Check for device major and minor macros 2010-06-01 07:55:06 +02:00
Kai Blin
b497447e17 s3-waf: Add check for asm/types.h 2010-06-01 07:55:06 +02:00
Kai Blin
0fddbe472e s3-waf: Check if compiler supports LL suffix 2010-05-31 22:26:31 +02:00
Kai Blin
3811fdab5c s3-waf: Check for broken nisplus include files 2010-05-31 22:26:30 +02:00
Kai Blin
209555ef09 s3-waf: support avahi builds 2010-05-30 23:29:39 +02:00
Kai Blin
8e2b69ca46 s3-waf: Add more darwin-specific options 2010-05-30 23:29:20 +02:00