1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-17 02:05:21 +03:00

457 Commits

Author SHA1 Message Date
Tim Potter
e725e6a0b7 Autoconfiscate the name of the winbind shared library file. Under
IRIX this is libns_winbind - everyone else is libnss_winbind.

This simplifies the Makefile a bit and also fixes the 'nsswitch' target
under IRIX.
(This used to be commit 69c392bc127bf69876f4dedae8c3a6976219d448)
2003-04-09 04:05:42 +00:00
Jelmer Vernooij
35833e5aaf Fix building on platforms without ldap
(This used to be commit 3f78ea7d06ae911f97c0a1a451e67fe00547e873)
2003-04-06 01:08:39 +00:00
Jelmer Vernooij
8f19f82256 Replace 'so' by $SHLIBEXT
(This used to be commit d0a767a7653f3fef846c62e9a0a20bcc68d87559)
2003-04-04 23:31:09 +00:00
Jelmer Vernooij
509e6221a2 Use $SHLIBEXT, not .so
(This used to be commit 319d41201dcf07fc18a39df4f362aa2a0eb16200)
2003-04-04 23:11:38 +00:00
Tim Potter
c98b4b9958 Abort configure if --with-ads and --without-ldap.
(This used to be commit 3ac60d2ceb1495a5ee691810678d29dea2667a7a)
2003-04-04 00:00:47 +00:00
Jelmer Vernooij
48dff2870c There's no need to use LDAP_CFLAGS, just use CFLAGS
(This used to be commit 5d2fd222a9e4cccd232e492d1aea1dc7a64a1400)
2003-04-02 18:49:36 +00:00
Jelmer Vernooij
0ae1b49b21 Only use cflags and libs from krb5 when they appear to be working - fixes
build on BSD machines that have a krb5-config that returns @INCLUDE_des@ for
--cflags
(This used to be commit e05d78699c6cf6a8340f85e4f55c871fbc100ebf)
2003-04-02 18:45:47 +00:00
Jelmer Vernooij
388af65857 Only link in popt when we need it
(This used to be commit a5a980eb3efb37a6becacf043692361bdb4174b0)
2003-04-02 15:08:31 +00:00
Jelmer Vernooij
8d9962f1d3 Only link in libs when they are actually used. Works great here and on
one of my other boxes. I'll watch the buildfarm.
(This used to be commit 266c3970df9f5f9f617c49eee666c1db8e10c855)
2003-04-02 14:59:21 +00:00
Simo Sorce
a557af96e9 THE Idmap patch :-)
includes a --with-idmap=no switch to disable idmap usage if you find
problems.

cosmetic fixes and param aliases to separate winbind from idamp roles.

A temporarily remote idmap winbind compatibility backend.
As I have time I will further change code to not call directly winbind
(partly done but not tested) and a specilized module will be built in place
for the current glue hack.

The patch has been tested locally in my limited time, the patch is simple and
clear and should not reserve problems, if any just disable it.

As usual, comments and fisex are welcome :-)

Simo.
(This used to be commit 02781320476ed1b7ee5d943fa36f9a66ab67f208)
2003-04-02 10:36:02 +00:00
Jelmer Vernooij
916ef755d3 Fix build of shared xml/mysql modules
(This used to be commit 860e4c45619bcd99c6e4a1eb980c5b8dac79b6c0)
2003-04-01 11:25:34 +00:00
Jelmer Vernooij
96b5d5bdfd - Support absolute paths in vfs and charset modules
- Fix typo in Makefile.in
- Fix compatibility with older vfs modules (from patch by metze)
- Build some modules shared by default and some static (and fall
  back to static when dlopen() is not available)
(This used to be commit aa36f462d95f8a3a3a81a89c210b98a6f9fd295f)
2003-03-31 15:06:34 +00:00
Tim Potter
836454ed58 Tidyup of winbindd client OS specific autoconf code.
(This used to be commit b20b8d050b45846798a6dc535cfcd4a47ba21694)
2003-03-31 05:51:41 +00:00
Tim Potter
364519a843 autoconf change to compile winbindd for AIX. The client side code
is still under development.
(This used to be commit d110a56e433fd2ed5267c6d445b7a652d52940dc)
2003-03-31 05:46:32 +00:00
Tim Potter
6c33130c0f Cleanup of winbind client side code.
Mostly this consists of untangling the existing code and moving it in
to operating system specific files.  The winbind client code for all
supported operating systems is now in nsswitch/winbind_nss_OSNAME.[ch]
to make things a bit clearer.
(This used to be commit 93ea047a16a292b23a1d8736ce9bc4098ba142ba)
2003-03-31 04:36:01 +00:00
Gerald Carter
d9eef2fbc2 don't include proto.h during autoconf tests since it doesn't exist yet; fixed getsmbpass replacement test
(This used to be commit ff43a292b9f8e0a39d19cb099913efd899de84fa)
2003-03-28 02:02:32 +00:00
Andrew Tridgell
0e1ad952fb its VFS_NETATALK_OBJ not VFS_NETATALK
(This used to be commit 662e1bea1b5e8ca8fb842f7ef76f848541116760)
2003-03-28 00:28:55 +00:00
Andrew Tridgell
d4b4e02fb8 removed a duplicate lump of module stuff in configure.in
(This used to be commit 0502c8a06e3bcefd9ea0f16f611bafc66086fbe9)
2003-03-28 00:21:01 +00:00
Jelmer Vernooij
11db21cc1c Use the new modules system in VFS. If a module can't be loaded with the
new modules system, we still fall back to the old system.
(This used to be commit cebe8d8b424f10006f2f791a8f086c6c8a7f5d57)
2003-03-27 12:08:46 +00:00
Jelmer Vernooij
4c74bfcbda Remove LDAP_LIBS and just use LIBS again as before. I'll
fix this better later.
(This used to be commit c6807d20457325012c4c9edd137b2f1f67e98ec4)
2003-03-26 20:16:48 +00:00
Jeremy Allison
43c5f197ef Add defines for platforms that need them.
Jeremy.
(This used to be commit f81128bc0187765f6f9e6d7e05eaebf778cbfec8)
2003-03-26 19:42:51 +00:00
Jelmer Vernooij
70cf597a79 Use execinfo.h to get prototypes for backtrace_symbols (fixes
some warnings)
(This used to be commit d453b656e56a9b836b76f1cdce8de65d7bc4eb6c)
2003-03-26 13:43:29 +00:00
Jelmer Vernooij
5edbbc1808 Fix $LDAP_LIBS
(This used to be commit af98285f4e4fc4a0e890fed2c71b09280252b3f4)
2003-03-26 13:30:26 +00:00
Jelmer Vernooij
0eff00c692 Output backtrace to logfile in smb_panic(), as suggested by mbp
(only on systems that support it, of course)
(This used to be commit bf439d733df6a11a25ff561a853c3382a3b34b96)
2003-03-26 12:53:28 +00:00
Jelmer Vernooij
dc16a6848b Always rebuild modules after running ./configure (to prevent
undefined symbol errors)
(This used to be commit e193b47259d11b0eaef4071acb406d6433426733)
2003-03-25 22:37:43 +00:00
Jelmer Vernooij
50311f4bac Remove old check for TDB SAM (we now have --with-{static,shared}-modules=pdb_tdbsam)
(This used to be commit 760fd4e5c48276696182febcae3b0a997999b1e2)
2003-03-25 18:10:55 +00:00
Jelmer Vernooij
4905ba282f - Support building all auth modules as .so's
- Change 2 variable names to avoid conflicts (patch by Stephan Kulow <coolo@kde.org>)
(This used to be commit 71b05cd14ae6df8340730e7bad1c783dc278c5d3)
2003-03-25 14:46:11 +00:00
Jelmer Vernooij
e520d4be5e Print list of builtin modules in 'smbd -b'
(This used to be commit 3a2ed0da40c9709cdae061927f44a38f58e44df0)
2003-03-25 12:27:09 +00:00
Jelmer Vernooij
6d6f1c0522 - Add support to auth/ for the new modules system
- Quite some small fixes (also fixes the build)
(This used to be commit 3defbd5e0633acfa4631531b49601c7706072d86)
2003-03-24 23:03:46 +00:00
Jelmer Vernooij
cdfe4b9b85 Fix two typos
(This used to be commit 898a246c1650326cbd9b8ca49fb93963e589ea1f)
2003-03-24 19:53:02 +00:00
Jelmer Vernooij
9ba1ed5271 When using --with-static-modules=subsystem, don't build modules that
can't be build
(This used to be commit bb943a68af20f87a4b2d6b257585615d1792dd33)
2003-03-24 19:18:24 +00:00
Jelmer Vernooij
acffe03f93 Simplify modules interface and make it easier to build
complete subsystems as modules (--with-shared-modules=rpc,pdb_xml,pdb_ldap
works now, for example)
(This used to be commit f622bdc691fabed218598fb0546b9e933aed63ed)
2003-03-24 18:25:31 +00:00
Jelmer Vernooij
9ae249c6f1 Add modules support to charset
(This used to be commit cf3d31b9801d7ccb30334a92d4dc8a0ced2ecd31)
2003-03-24 12:47:21 +00:00
Jelmer Vernooij
c8864235ba Detect missing -lroken properly on systems without krb5-config
(This used to be commit 9c3b8533fc6d2a68e013668d0927d479f4ab58dd)
2003-03-22 22:00:19 +00:00
Andrew Bartlett
bde949c721 It seems that this causes some problems on some linux platforms - it's a
pity becouse otherwise you need to link a program with it to get the
fstring/pstring bugs.

Andrew Bartlett
(This used to be commit b1b4370955d50fd4997c7171a99fe03f97190aca)
2003-03-22 10:44:07 +00:00
Andrew Bartlett
ab25a258c0 Patch from colo (on IRC) to get libsmbclient building due to pstring/fstring
issues.

Also pick up these link failures at compile time (rather than runtime).

Andrew Bartlett
(This used to be commit 23c7342bc40daffbcd70ef04727cae2c2b2c366b)
2003-03-21 22:31:25 +00:00
Jelmer Vernooij
5c913362dc Only build pdb_ldap if both ldap libs and headers are found
(This used to be commit 228110e83fce91c811c82f6f836d313b6b79ff87)
2003-03-20 17:45:23 +00:00
Jelmer Vernooij
6798444ba5 Build samr as well
(This used to be commit 1d33afdef9ea11e17c633109170d35ed66c4e2b8)
2003-03-20 13:59:58 +00:00
Martin Pool
c9167c943d If CFLAGS is set when running configure, then just use that.
Otherwise add -O.

(We used to always set -O, which is sometimes annoying when debugging
and anyhow clashes with normal autoconf behaviour.)
(This used to be commit aee2ad9c3444d59dd6f53dda5379a6c391e00002)
2003-03-20 05:54:03 +00:00
Jelmer Vernooij
e14e43f3d3 Fix pdb_unix usage - noticed by jmcd
(This used to be commit dd03aec26dc39a4e56f18d547132768204a500db)
2003-03-19 20:18:00 +00:00
Jelmer Vernooij
2ffd83f3f0 Fix build errors and move pdb_guest.so -> guest.so
(This used to be commit 25412880251839de3dd17882fab30c873c886454)
2003-03-19 20:12:34 +00:00
Jelmer Vernooij
a4c72cfa9b Fix module names
(This used to be commit fa1c8eee1fdd2452f9e3595b2b3957ea8c0ea46a)
2003-03-19 19:28:05 +00:00
Jelmer Vernooij
47ea3a2bf2 Put in the new modules system. It's now used by passdb and rpc. I will
put a doc about it in dev-doc later today.
(This used to be commit af7bfee0c6902c07fdb8d3abccf4c8d6bab00b5a)
2003-03-19 18:45:19 +00:00
Andrew Bartlett
3b5bc93e9d String handling parinoia fixes.
This patch enables the compile-time checking of strings assable by means of
sizeof().  (Original code had the configure check reversed).

This is extended to all safe_strcpy() users, push_string and pull_string,
as well as the cli and srv derivitives.  There is an attempt to cap strings
at the end of the cli buffer, and clobber_region() of the speified length
(when not -1 :-).

Becouse of the way they are declared, the 'overmalloc a string' users of
safe_strcpy() have been changed to use overmalloc_safe_strcpy() (which skips
some of the checks).

This whole ball of mud worked fine, until I pulled out my 'fix' for our
statcache.  When jeremy fixes that, we should be able to get back to testing
this stuff.

This patch also includes a 'marker' of the last caller to clobber_region (ie,
the function that called pstrcpy() that called clobber_region) to assist in
debugging problems that may have smashed the stack.  This is printed at
smb_panic() time.  (Original idea and patch by metze).

It also removes some unsused functions, and #if 0's some others that are
unused but probably should be used in the near future.

For now, this patch gives us some confidence on one class of trivial parsing
error in our code.

Andrew Bartlett
(This used to be commit 31f4827acc2a2f00399a5528fc83a0dae5cebaf4)
2003-03-15 07:14:55 +00:00
Martin Pool
9951cca72f In Valgrind 1.9.4, the headers have moved to <valgrind/valgrind.h>,
etc.  So check for that as well as the old names.
(This used to be commit 1ffa4d75b75979b8abb409634212ce43a0826467)
2003-03-13 06:16:51 +00:00
Martin Pool
cb1de38cfd Check for valgrind.h
(This used to be commit 0ece70d631bf095bf9c8819180b6c59990159cd0)
2003-03-10 00:37:25 +00:00
Andrew Bartlett
ce7f54e953 Add a test for a useful property of the compiler - we can get link-time
failures for some compile-time properties this way.

Andrew Bartlett
(This used to be commit ce618624b7df797e228f8ef0f19820b318c62ae9)
2003-03-05 09:33:43 +00:00
Andrew Bartlett
20d0bb2310 Add -Wwrite-strings to our --enable-developer settings.
We have compiled relitivly 'clean' with this setting since I did a massive
cleanup last month.  This should help us stay that way.

Andrew Bartlett
(This used to be commit 284479bf388f5e39d9be78eeb1ac6cdd001fb8df)
2003-02-26 12:31:17 +00:00
Andrew Bartlett
eb64538dba Patch from Luke Howard to add mutual kerberos authentication, and SMB session
keys for kerberos authentication.

Andrew Bartlett
(This used to be commit 8b798f03dbbdd670ff9af4eb46f7b0845c611e0f)
2003-02-24 11:09:21 +00:00
Andrew Bartlett
0dde23a7b2 Fixes from Paul Green and vorlon@debian.org for building shared libraries
(make it possible to build both shared and static) and -lcrypt handling.
(This used to be commit 30510f50077fd157664c127ac0182ce26843d43f)
2003-02-22 12:19:18 +00:00