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

1493 Commits

Author SHA1 Message Date
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
Andrew Bartlett
125a2ff262 lib/util/charset: Remove 'display charset'
As discussed in 'CH_DISPLAY and gettext' on the samba-technical list:
http://lists.samba.org/archive/samba-technical/2011-June/078190.html

Setting this to a value other than 'unix charset' does not make sense,
as any system where the filesytem charset does not equal the terminal
charset will already have problems with programs as simple as 'ls'.
It also means that our output could not be pasted as our input in
interactive programs or onto our command line, as we never did
translate in the DISPLAY -> UNIX direction.

The d_printf() calls are retained in case we need to revisit this, and
to support display_set_stderr().

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
Volker Lendecke
e28df27f2a s3: Fix the build on FreeBSD 8
This is probably not the last word on gss_mech_krb5, but for now it fixes
the build on FreeBSD
2011-06-04 12:44:58 +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
Michael Adam
3f222513cc s3:build: link libtdb as shared lib if using shared libs at all 2011-05-13 16:42:24 +02:00
Michael Adam
23637b5789 s3:build: determine full version of libtdb for the samba build 2011-05-13 16:42:24 +02:00
Michael Adam
6c300ec4b5 s3:build: link libtalloc as shared lib if using shared libs at all 2011-05-13 16:42:24 +02:00
Michael Adam
472cabbdea s3:build: determine full version of libtalloc for the samba build 2011-05-13 16:42:24 +02:00
Michael Adam
b731b6e032 s3:build: fix typo in definition of --enable-external-libtdb 2011-05-13 16:42:24 +02:00
Michael Adam
abef191fb9 s3:build: reformat AC_ARG_ENABLE(external_libtalloc...) 2011-05-13 16:42:24 +02:00
Michael Adam
d5d53ba514 s3:build: add LIBWBCLIENT_FULLVER for consistency with SMB_LIBRARY() 2011-05-13 16:42:23 +02:00
Michael Adam
adb3fc2f1d s3:build: add an optional full version argument to the SMB_LIBRARY() macro. 2011-05-13 16:42:23 +02:00
Michael Adam
f8e32980f4 s3:configure: add --enable-smbtorture4 switch 2011-05-13 16:42:23 +02:00
Andrew Bartlett
7e8f086798 s3-build: Move generated config.h and config.h.in to include/autoconf
This ensures that these are not found by the waf build, which causes
issues when the wrong config.h is used by the recursive smbtorture build

Andrew Bartlett
2011-05-09 11:21:09 +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
Volker Lendecke
3f68b43dd5 vfs_gpfs: Properly notify the offline->online changes
This needs to be a separate module that cooperates with vfs_gpfs. If aio_fork
is used early in the module chain it (correctly) does not propagate the aio ops
down, so vfs_gpfs does not see them. This slim module must come early in the
chain for notifies to work properly.
2011-05-04 16:11:30 +02:00
Björn Jacke
862ff644ee ѕ3/configure: move out generic CPPFLAGS in the solaris case here
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-05-03 12:03:12 +02:00
Björn Jacke
9738f35f2c ѕ3/configure: move out generic LDFLAGS in the solaris case here
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-05-03 12:03:11 +02:00
Andrew Bartlett
e1eae82285 kerberos: Only include gssapi/gssapi_krb5.h when available 2011-04-30 04:58:04 +02: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
Volker Lendecke
4f6b1e8c81 s3: Check for res_ninit
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Apr 25 11:44:58 CEST 2011 on sn-devel-104
2011-04-25 11:44:58 +02:00
Volker Lendecke
39375de835 s3: Add pthreadpooltest to main build 2011-04-25 09:50:33 +02:00
Volker Lendecke
62689d8166 s3: Many pthreadpool fixes
In particular, this makes it fork-safe
2011-04-25 09:50:32 +02: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
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
d09f02909f s3 autobuild: Fix CFLAG check for netgrent tests
In 45ac8ffd I accidently added the wrong flag check. Fix this.
Thanks to gd for noticing.

Signed-off-by: Günther Deschner <gd@samba.org>
2011-04-18 15:26:44 +02:00
Günther Deschner
7ece43b15e s3-build: make sure we pick up system tdb and talloc via #include.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Apr 14 12:56:28 CEST 2011 on sn-devel-104
2011-04-14 12:56:27 +02:00
Michael Adam
1877508856 s3:configure: allow building without SCHEDULE_FOR_DELETION with --enable-old-ctdb
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Thu Mar 31 18:55:38 CEST 2011 on sn-devel-104
2011-03-31 18:55:38 +02:00
Michael Adam
7b9648c086 s3:configure: introduce "--enable-old-ctdb" to enable enforcing build against old ctdb 2011-03-31 18:10:22 +02:00
Michael Adam
69aead60e2 s3:configure: add check for new CTDB_CONTROL_SCHEDULE_FOR_DELETION 2011-03-31 18:10:22 +02:00
Michael Adam
e9e23cc948 s3:configure: rework logic of ctdb/clustering checks 2011-03-31 18:10:22 +02:00
Michael Adam
a9b04e4a79 s3:configure: remove unused variable CTDB_CFLAGS 2011-03-31 18:10:22 +02:00
Michael Adam
0943d39cd6 s3:configure: fix a comment. 2011-03-31 18:10:22 +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
af2538d16f s3-build: remove -I../lib/addns.
Guenther
2011-03-10 23:25:04 +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
Volker Lendecke
0fc1650e09 libreplace: poll based on select 2011-02-28 16:40:19 +01:00
Sumit Bose
4fa210d76a s3-passdb: Add minimal stub for IPA passdb backend
Signed-off-by: Günther Deschner <gd@samba.org>
2011-02-16 11:34:31 +01:00
Michael Adam
6339a17a93 Revert "libwbclient: bump the libwbclient SOVER 0 -> 1 due to ABI changes"
This reverts commit 5dd63c6c14.

Undo the library version bump.
2011-02-10 13:57:32 +01:00
Jeremy Allison
1911d483e5 Add fdopendir(). 2011-02-08 15:05:59 -08:00
Volker Lendecke
007dc95b14 s3: Only build auth_netlogond for the developer build
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Feb  6 19:55:49 CET 2011 on sn-devel-104
2011-02-06 19:55:48 +01:00
Volker Lendecke
80acca1ebf s3: Add support for AF_NETLINK addr notifications
Via an AF_NETLINK socket, the Linux kernel can inform us when IP addresses are
added or dropped.

This will first be used in winbind, it was triggered by clustering with ctdb.
When winbind is connected to a domain controller and ctdb decides to move away
the IP address that winbind used locally for the connection to the DC, the next
request will run into a timeout. winbind sends out its request, but the
response will never arrive: The IP is gone.

It will also be interesting for more reliable online/offline detection, but
this is something for future winbind refactoring.
2011-02-01 15:11:06 +01:00
Volker Lendecke
e6e7c724ad s3: On FreeBSD, compile zfsacl if sunacl.h is around
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Jan 30 12:17:49 CET 2011 on sn-devel-104
2011-01-30 12:17:48 +01:00
Michael Adam
5dd63c6c14 libwbclient: bump the libwbclient SOVER 0 -> 1 due to ABI changes
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Fri Jan 28 00:25:11 CET 2011 on sn-devel-104
2011-01-28 00:25:11 +01:00
Günther Deschner
7ee75c9548 lib/addns: move DNS client library to the main directory.
Guenther
2011-01-06 16:42:56 +01:00
Andreas Schneider
8ece780d1b s3-build: Remove broken RPC modules support.
With the current module support for rpc we're not able to call the init
functions with the rpc callback structure. So init functions and
shutdown functions aren't called. These init functions are needed to
setup pre requirements like migrating the printer databases and register
at the endpoint mapper. The shutdown functions cleanup memory and
deregister from the endpoint mapper.
2011-01-04 11:23:21 +01:00
Jeremy Allison
8998f4b013 Added call out to a Linux-compatible fallocate() when we need to extend a file
allocation extent without changing end-of-file size.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Dec 21 02:41:24 CET 2010 on sn-devel-104
2010-12-21 02:41:23 +01:00
Volker Lendecke
d39fedaa69 s3: FreeBSD has getpeereid(), use it 2010-12-19 23:25:06 +01:00
Björn Jacke
70a7da0e10 s3/configure: fix GNU ld version detection with old gcc releases
needed as old gcc releases output everything to stderr, even stdout output from
ld

Fixes #7825

Autobuild-User: Björn Jacke <bj@sernet.de>
Autobuild-Date: Fri Nov 26 20:15:24 CET 2010 on sn-devel-104
2010-11-26 20:15:24 +01:00
Björn Jacke
dbcf73c457 ѕ3/configue: set Tru64 cc's PIC switch right (none)
-fPIC made shared library builds fail there
2010-11-26 01:52:36 +01:00
Andrew Tridgell
57f9de012e s3-torture: remove the merged_build tests for building smbtorture4
s3 now builds smbtorture4 if the required packages (perl, python, ads)
are available. This should ensure that smbtorture4 is built in the
build farm when possible
2010-11-24 00:19:15 +01:00
Jeremy Allison
5e0130c51e Fix bug #7785 - atime limit.
On a 64-bit time_t system make MAX_TIME_T the max value that
can be represented in a struct tm. This allows applications to
set times in the future beyond the 32-bit time_t limit (2037).

This is only in source3/configure.in, needs adding to the waf
configure/build system (but I'll need help with that).

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Nov 23 21:00:14 CET 2010 on sn-devel-104
2010-11-23 21:00:14 +01:00
Björn Jacke
842a8e4312 s3/configure: fix typo and warning
Autobuild-User: Björn Jacke <bjacke@samba.org>
Autobuild-Date: Mon Nov  8 20:58:20 UTC 2010 on sn-devel-104
2010-11-08 20:58:20 +00:00
Volker Lendecke
d6d2f8a8f2 s3: Build idmap_autorid by default 2010-11-08 13:39:51 +01:00
Christian Ambach
9aab4149af s3:idmap: add a new ID mapping module autorid
This is an initial implementation of the idmap_autorid module.
It works similar to the idmap_rid module but requires less
configuration. It will automatically pick ranges for each domain,
so you do not have to bother any more about adding an idmap
configuration for all of the domains in the forest.

This is very easy to use and to configure and much more
deterministic and faster than idmap_tdb, the typical choice
of Samba users up to now.
2010-11-08 13:39:51 +01:00
Abhidnya P Chirmule
2cfee006e1 s3: Add a vfs_time_audit module
This warns if a file system is slow

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Oct 28 08:56:44 UTC 2010 on sn-devel-104
2010-10-28 08:56:44 +00:00
Volker Lendecke
48dccbf2b5 s3: Move #define VALGRIND to config.h
This fixes the valgrind overrun in the tdb jenkins hash
2010-10-03 12:03:36 +02:00
Jelmer Vernooij
9af570a2ef s3-configure: Require at least version 1.2.6 of external TDB, which has
TDB_INCOMPATIBLE_HASH.
2010-10-01 18:49:40 +02:00
Volker Lendecke
66731461a6 tdb: add restore
Based on an idea by Simon McVittie, largely rewritten
2010-09-23 12:19:09 -07:00
Björn Jacke
81d257e8ae s3: don't build krb5 locator plugin if we don't build winbind
this fixes bug #7329
2010-09-21 10:54:37 -07:00
Günther Deschner
33fdf8dac2 s3-build: use proper RPC_X_OBJ target names.
Guenther
2010-09-10 13:20:13 +02:00
Björn Jacke
4e104f185e libreplace: move detection of clock_gettime to libreplace 2010-08-31 09:07:13 +02:00
Björn Jacke
e8662248c8 libreplace: move gettimeofday TZ arg check here 2010-08-31 09:07:08 +02:00
Michael Adam
3add3aa17d s3:smbd: add a nfs backend for sysquotas.
This module is based on the Solaris/FreeBSD implementation
of NFS quotas in the quotas.c module.

It implements the SMB_USER_QUOTA_TYPE query of the
get_quotas call. The other types and the set_quota call
are not implemented.
2010-08-25 14:05:51 +02:00
Volker Lendecke
a16a56f601 s3: PAM_RHOST and PAM_TTY are enums on FreeBSD 2010-08-23 22:59:56 +02:00
Kai Blin
45ac8ffdb4 s3: Fix netgrent configure checks for compilers not supporting -Werror-implicit-function-declaration
This should fix bug 7620.
2010-08-21 12:05:40 +02:00
Jeremy Allison
da2554117e Fix bug 7626 - Typo in configure samba_cv__CC_NEGATIVE_ENUM_VALUES two underscores.
Noticed by bj@sernet.de.
2010-08-18 16:25:15 -07:00
Günther Deschner
f24c99fba0 s3-build: always check for python.
This should fix make test. Metze, please check.

Guenther
2010-08-16 12:23:08 +02:00
Andrew Bartlett
71d80e6be0 s3-krb5 Only build ADS support if arcfour-hmac-md5 is available
Modern Kerberos implementations have either defines or enums for these
key types, which makes doing #ifdef difficult.  This shows up in files
such as libnet_samsync_keytab.c, the bulk of which is not compiled on
current Fedora 12, for example.

The downside is that this makes Samba unconditionally depend on the
arcfour-hmac-md5 encryption type at build time.  We will no longer
support libraries that only support the DES based encryption types.
However, the single-DES types that are supported in common with AD are
already painfully weak - so much so that they are disabled by default
in modern Kerberos libraries.

If not found, ADS support will not be compiled in.

This means that our 'net ads join' will no longer set the
ACB_USE_DES_KEY_ONLY flag, and we will always try to use
arcfour-hmac-md5.

A future improvement would be to remove the use of the DES encryption
types totally, but this would require that any ACB_USE_DES_KEY_ONLY
flag be removed from existing joins.

Andrew Bartlett

Signed-off-by: Simo Sorce <idra@samba.org>
2010-08-13 09:08:27 -04:00
Björn Jacke
5390baeb6b tdb: add TDB_DEPS variable filled with required libraries
This is required for Solaris, which needs to link in librt to make use of
fdatasync().
2010-08-13 14:57:44 +02:00
Björn Jacke
616e187d68 s3: fall back to cups-config for underlinked libs
some OpenBSD systems have underlinked cups libraries. If linking against cups
alone fails, try to link against all the cups-config --libs cruft, which we
usually don't want. (bugzila #7244)
2010-08-12 16:30:35 +02:00
Björn Jacke
1d443f6bc2 Revert "s3: Use cups-config --libs"
This reverts commit 911db76114. This was introduced in 18f1f5b56b
intentionally.
2010-08-12 16:30:35 +02:00
Volker Lendecke
911db76114 s3: Use cups-config --libs 2010-08-02 11:55:02 +02:00
Simo Sorce
7eaa15af2c s3-dcerpc: Add sign/seal with gssapi 2010-07-28 12:42:15 -04:00
Volker Lendecke
b6c4eb3c52 s3: Log the correct core path on Linux if core_pattern is set
Contributions from Bill Hymas, IBM
2010-07-26 16:06:21 +02:00
Björn Jacke
c75106fd3a s3: not use as-needed by default and auto use if enable-developer is active
as discussed on samba-technical, we don't want people out there to use it
unwittingly by default. However by enabling it when enable-developer is used we
make sure that we don't break the feature.
2010-07-22 15:51:36 +02:00
Björn Jacke
c58aeaaf31 s3: also run the test prog from the explicit external lib bug check
on Linux linking already stops with a broken ld, on FreeBSD8 linking works but
the binary is broken, so we must check both.

this should be the final fix for bug #7561
2010-07-20 18:12:40 +02:00
Björn Jacke
2a8399f7ce s3: check for explicit external lib bug in ld's as-needed code
Second part of fix for bug #7561

Based on test provided by Olaf Flebbe.
2010-07-20 13:46:42 +02:00
Björn Jacke
09944302a1 s3: add configure swtich to manually disable as-needed
first part fix for bug #7561

based on earlier patch from metze
2010-07-20 13:46:42 +02:00
Björn Jacke
fa4dec31cf Revert "s3: Don't use as-needed"
This reverts commit b9835a1f9d.
2010-07-20 13:46:42 +02:00
Volker Lendecke
b9835a1f9d s3: Don't use as-needed
This is just broken. RHEL5 can't deal with it, FreeBSD8 is broken with it, and
who knows what other platforms are broken. I can rather live with a system that
links in a bit too much than a system that does not work at all.
2010-07-18 12:13:52 +02:00
Volker Lendecke
a7e6b2aeb4 s3: Right now we do not have includes in Makefile.in
Skip the expansion step on non-GNU-make systems
2010-07-17 19:58:21 +02:00
Kai Blin
0b6cebd602 s3 build: Fix *netgrent prototype detection on opensolaris 2010-07-07 09:31:20 +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
ff32f691bb s3 configure: Check for (set|get|end)netgrent prototypes 2010-06-20 09:50:19 +02:00
Björn Jacke
14c8d319e3 s3:configure: use cc for linking on IRIX and fix shlib usage 2010-06-17 11:41:58 +02:00
Volker Lendecke
f0afda14ba Fix aio_read detection for -lrt 2010-06-13 15:23:23 +02:00
Olaf Flebbe
7aa8af144e check if LD_AS_NEEDED breaks linking with libreadline fixes #7209
Signed-off-by: Simo Sorce <idra@samba.org>
2010-06-11 16:07:50 -04:00
Olaf Flebbe
a9b06f58f2 configure.in prevent generation of file "shlib.so" 2010-06-11 09:03:42 -04:00
Björn Jacke
79ec886aa4 s3:build: add shared lib flag for HP-UX compiler 2010-06-05 02:15:29 +02:00
Volker Lendecke
95863bfb5e s3: Add vfs_linux_xfs_sgid
http://oss.sgi.com/bugzilla/show_bug.cgi?id=280 shows an old Linux XFS bug that
still exists: Under certain circumstances the SGID bit is not inherited.
2010-06-02 12:30:51 +02:00
Björn Jacke
a950c6c600 s3:configre: work around shell problem on HP-UX in AC macro 2010-05-31 14:33:51 +02:00
Björn Jacke
17ad28c582 s3: use PICFLAG instead of PIE_FLAGS 2010-05-31 02:20:51 +02:00
Björn Jacke
c2327b24a6 s3: final test for working shlib support requires PIE_LDFLAGS 2010-05-31 00:37:01 +02:00
Björn Jacke
390b0521bd s3: use autoconf macro to get some debug output in config.log 2010-05-30 23:59:45 +02:00
Björn Jacke
96ee9568ed s3: fix check for pie compiler flags
some compilers (HP and Sun e.g.) output warning messages on stderr for unknown
options and we ended up partly using some unwanted random compile flags we
did't intend to use.
2010-05-30 16:25:28 +02:00
Björn Jacke
2bca048367 s3:configure: use the right AC_CACHE_CHECK variable 2010-05-26 10:19:59 +02:00
Michael Adam
8eed328cb5 s3:fix configure after change "add Werror_FLAGS for IBM's xlc"
For me, 24b3725407 broke configure.
The fix in f634450b67 is not complete yet.
After staring at the change a bit, tt seems to me that the
code inserted was just misplaced by one line.

Michael
2010-05-25 09:56:05 +02:00
Björn Jacke
f634450b67 s3: fix the configure run 2010-05-25 09:43:57 +02:00
Björn Jacke
ff0872d59d s3:configure: turn "error warnings" into errors
By default "Missing argument(s)" is just an "error warning" for xlc :-)
The change to turn "error warnings" into errors should fix bug #7427.
2010-05-24 23:34:00 +02:00
Björn Jacke
24b3725407 s3:configure: add Werror_FLAGS for IBM's xlc 2010-05-24 23:28:44 +02:00
Björn Jacke
8e069e245b s3: major overhaul of compiler and linker flags for HP-UX builds
this will fix a number of things like shared library builds. That in turn will
probably trigger some other build bugs...
2010-05-24 13:51:35 +02:00
Björn Jacke
2466dc7eaf s3:build: remove CFLAGS from LDSHFLAGS, SHLD has them already 2010-05-24 12:26:10 +02:00
Volker Lendecke
6e7d39f4dd s3: Another non-gnumake fix
AC_OUTPUT_COMMANDS must be called before AC_OUTPUT and
$MAKEFILE is not defined in ./config.status
2010-05-23 12:44:43 +02:00
Volker Lendecke
7eff96cb43 s3: Factor out compiler-independent defines 2010-05-23 00:33:45 +02:00
Stefan Metzmacher
6427484f84 s3:build: build smbtorture4 when the merged build is selected
metze
2010-05-13 19:42:25 +02:00
Michael Adam
04e1954224 s3:configure: fix a message 2010-05-11 16:42:22 +02:00
Volker Lendecke
36e736871e s3: Test for "__attribute__((destructor))" 2010-05-10 14:11:14 +02:00
Jelmer Vernooij
95421552be Reintroduce merged build, using waf to build smbtorture4. 2010-05-07 18:34:00 +02:00
Jelmer Vernooij
674a78d60a Revert "Revert "s3-build: Remove --enable-merged support.""
This reverts commit 8f8e7c788a.
2010-05-07 18:34:00 +02:00
Björn Jacke
5910f4cade s3:configure: search fdatasync also in librt
Sun^W Oracle Solaris has it there ...
2010-05-07 12:53:53 +02:00
Björn Jacke
358a3855c2 s3:configure: use correct SONAMEFLAG on Solaris depending on which linker is being used 2010-05-07 11:58:09 +02:00
Jelmer Vernooij
fc336590dc Remove the copy of ldb from Samba 3.
There were two utility functions that other parts of Samba 3
still relied on; they have been moved to lib/ldb_compat.[ch].
2010-05-06 11:34:30 +02:00
Björn Jacke
1969b4acc3 s3:configure: not simply check for "ld" but for the linker used by $CC
this hopefully fixes Solaris' gcc build which uses the system ld by default.
All in all we should clean up most of the compiler and linker flags depending
on the actual compilers and linkers we use. Only some tweaks are OS-specific.
A cleanup in this area should be done along with the move to a new build
system (whensoever that will be ...).
2010-05-05 21:38:08 +02:00
Günther Deschner
8f8e7c788a Revert "s3-build: Remove --enable-merged support."
This reverts commit f8fc7fcbeb.

Was that pushed by coincidence ? merged build is really, really required over
here.
2010-04-27 18:14:09 +02:00
Jelmer Vernooij
f8fc7fcbeb s3-build: Remove --enable-merged support. 2010-04-26 23:50:16 +02:00
Ira Cooper
e1ca451794 s3: Improved support for GAMIN.
Support the FAMNoExists API for gamin to reduce cpu use and problems when
using GAMIN as FAM for vfs_notify_fam.
2010-04-18 15:12:41 +02:00
Volker Lendecke
6e40fa9b01 s3: Fix the GNU ld version detection on SLES
On SLES 11 "ld -v" gives

GNU ld (GNU Binutils; SUSE Linux Enterprise 11) 2.19

The regexp to intended to detect the "2.19" is confused by the "11" in the
version string. I'm not really into regexps, and awk '{print $NF}' to me is a
simple (and hopefully portable) way to print the last field.
2010-04-04 20:31:19 +02:00
Volker Lendecke
261c3b4f1b tdb: Add a non-blocking version of tdb_transaction_start 2010-03-26 14:27:47 -04:00
Volker Lendecke
fc80ff4002 s3: Fix bug 7202 for multi-threaded applications
Thanks to Sergey Tereschenko <serg.partizan@gmail.com> for providing good
feedback!

Volker
2010-03-21 17:50:36 +01:00
Michael Adam
9113e14b29 s3:build: Fix automatic building of vfs_tsmsm if gpfs and dmapi are present.
Michael
2010-03-09 00:51:18 +01:00
Björn Jacke
0769a1833a s3: add vfs_crossrename
this module adds optional server-side support for limited rename operations
beyond filesystem boundaries, which was the previously the default.
2010-03-08 17:17:58 +01:00
Jeff Layton
f4cb528ac5 samba: remove cifs-utils tools from build systems
Now that cifs-utils are their own project, we need to go ahead and pull
them out of the samba tree. This patch represents the first step toward
that end.

Remove the cifs-utilities from the source3 and source4 builds. Please
pay particular attention to the source4 piece. I'm not at all familiar
with the build system there, and would appreciate someone sanity
checking my changes.

It also adds a small README.cifs-utils file in the topdir. This is
optional, but I think it's a good idea to carry this for a release or
two.

Once this patch looks ok, I'll plan to do another patch to actually
remove the client dir and the relevant docs-xml files from the tree
altogether.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
2010-03-08 09:06:40 -05:00
Karolin Seeger
bc2ff7abc9 Revert "s3:configure: add --enable-as-needed"
This reverts commit 22d316926b.

Please see bug #7209 for details.
2010-03-04 16:19:33 +01:00
Stefan Metzmacher
22d316926b s3:configure: add --enable-as-needed
On some broken systems like RHEL5, we need to be able
to disable --as-needed.

metze
2010-03-04 13:02:16 +01:00
Matthieu Patou
92785f9af6 s3: Fix build file due to file move. Use the new path of iniparser
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-03 09:22:39 +01:00
Björn Jacke
ce7727c1cc s3: add explicit configure option whether or not to enable dmapi support 2010-02-23 15:25:41 +01:00
Michael Adam
9113ce82b5 s3:build: remove checks for deprecated ctdb controls.
Michael
2010-02-12 23:12:10 +01:00
Michael Adam
d4c0afa841 build: Add a configure check for CTDB_CONTROL_TRANS3_COMMIT.
This is the new implementation of ctdb transactions using the
global lock feature. It is needed by the current dbwrap_ctdb code.

Michael
2010-02-12 23:12:10 +01:00
Björn Jacke
2aff1d6bca s3: quiet the unresolved symbol warnings of the Compaq compiler when linking our vfs modules 2010-02-08 02:32:39 +01:00
Simo Sorce
70534adee1 tdb: raise version to 1.2.1
after recent fixes we need to raise the version to 1.2.1 so that
we can require also the right patched version.
2010-02-06 10:48:39 -05:00
Björn Jacke
27920f4f90 s3:configure: check complete set of EA functions only when we found at least one
this saves us some time in configure
2010-02-02 18:35:59 +01:00
Jeremy Allison
687e4eba3c Fix bug #7079 - cliconnect gets realm wrong with trusted domains.
Passing NULL as dest_realm for cli_session_setup_spnego() was
always using our own realm (as for a NetBIOS name). Change this
to look for the mapped realm using krb5_get_host_realm() if
the destination machine name is a DNS name (contains a '.').
Could get fancier with DNS name detection (length, etc.) but
this will do for now.

Jeremy.
2010-01-30 19:24:28 -08:00
Björn Jacke
118725c892 s3: by default don't use pthread pool support 2010-01-29 12:43:13 +01:00
Björn Jacke
1f7e97a8a2 s3: syntax fix 2010-01-27 23:45:14 +01:00
Björn Jacke
6bade10a1e s3: get pthread detection also on HP-UX right 2010-01-27 18:59:16 +01:00
Björn Jacke
5439e1a03f s3: fix detection and flags for using pthread
I hope this fixes the build on Tru64, IRIX and maybe bug #6983
2010-01-26 00:19:10 +01:00
Björn Jacke
e8a99ac980 s3: fix dnsupdate configure check 2010-01-21 01:09:01 +01:00
Lars Müller
30ea9932f5 Add cross option to samba_cv_linux_getgrouplist_ok
"cross" as an option got removed accidentl with commit e5a95132 while
moving in direction of 3.2.

Patch proposed by Richard Sharpe <realrichardsharpe@gmail.com>.
2010-01-20 12:41:43 +01:00
Björn Jacke
3bf9bbb275 s3: build with dnsupdate support when possible 2010-01-20 00:09:38 +01:00
Olivier Sessink
31e142854b s3: Add the "scannedonly" vfs virus scanner interface module 2010-01-12 22:57:18 +01:00
Björn Jacke
e172b219ee ѕ3:configure: use gettimeofday check from lib/util/ 2010-01-06 18:28:16 +01:00
Jonas Gorski
e3ee8ffc1b s3: Fix bug 6992, make test for getgrouplist cacheable 2009-12-17 11:38:03 +01:00
Bo Yang
c7e3a2dc31 s3: check for PAM_RADIO_TYPE.
Signed-off-by: Bo Yang <boyang@samba.org>
2009-12-10 19:29:24 +08:00