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

476 Commits

Author SHA1 Message Date
Andrew Bartlett
f238a3e58b Patch from Paul Green to detect exe extensions, needed for Stratus VOS.
Andrew Bartlett
(This used to be commit 3f5608c7e0)
2002-12-01 01:35:40 +00:00
Tim Potter
7916923943 Fix up smbwrapper target.
(This used to be commit f5fa4801ce)
2002-11-29 01:19:27 +00:00
Gerald Carter
4060d198bf merging changes from SAMBA_3_0 relating to RPM packaging
(This used to be commit 1cf0cfa1b7)
2002-11-27 16:59:31 +00:00
Tim Potter
4c3f069028 Here's a bit of a cleanup of the {configure,Makefile}.in files. I've
now combined all the ad-hoc AC_SUBST variables into three generalised
ones:

  EXTRA_BIN_PROGS 	Additional programs to install in ${prefix}/sbin
  EXTRA_SBIN_PROGS 	Additional programs to install in ${prefix}/bin
  EXTRA_ALL_TARGETS     Additional targets to build by default
  SHLIB_PROGS           Shared library objects (pam, winbind) to build

We also build some extra stuff by default: the python extensions (if
--with-python specified), smbmount related binaries (if
--with-smbmount specified), and the samba torture suite.

The idea behind this is to have everything that is configured built by
default to detect breakage as soon as possible when people make low
level changes.
(This used to be commit d6dfe3ea69)
2002-11-22 06:54:12 +00:00
Martin Pool
d18bcbb174 If you don't specify --with-python, we assume "python" anyhow, because
the extensions are not built until you specifically "make python_ext".
(This used to be commit 47c5c2209e)
2002-11-21 01:33:42 +00:00
Andrew Bartlett
f85da55c37 Remove the assumption that all Solaris has -lsendfile.
Andrew Bartlett
(This used to be commit efa639c5ce)
2002-11-15 21:56:14 +00:00
Andrew Bartlett
973645cf2d patch from aedil@alchar.org to correctly detect solaris workshop CC's ability
to build shared libs (but not with .po suffix).

Andrew Bartlett
(This used to be commit 2fd47d0c25)
2002-11-15 21:15:51 +00:00
Jelmer Vernooij
52412699c1 Rename pdb_mysql and pdb_xml to 'mysql' and 'xml'
(This used to be commit 7b860414b1)
2002-11-15 17:03:58 +00:00
Andrew Bartlett
8a2a3d0e6b When testing for /usr/include/heimdal, don't include /usr/heimdal/include
instead :-)
(This used to be commit 9d8aa4bd51)
2002-11-15 13:59:33 +00:00
Jelmer Vernooij
2aaf85730a small patch to makesure we fallback to <xfs/xqm.h> if <linux/xqm.h> doesn't exist (e.g. in SuSE 8.1) (by metze)
(This used to be commit 5f16343e0d)
2002-11-13 21:51:08 +00:00
Jelmer Vernooij
1a03a47249 Only add modules/pdb_xml.so and modules/pdb_mysql.so to the 'modules' target if
the libs they depend on are available
(This used to be commit 018a44055d)
2002-11-13 13:33:02 +00:00
Jelmer Vernooij
34cd7f1840 Don't build Makefile.in in examples/VFS/
(This used to be commit 98cb778cb7)
2002-11-13 13:23:02 +00:00
Andrew Bartlett
6de53c6756 Undo the new --enable-developer flags that caused breakage on gcc != 3.2, and
rerun autoconf
(This used to be commit 6da20cd763)
2002-11-13 04:14:21 +00:00
Andrew Bartlett
db7377977c - Add some more warning flags for --enable-developer.
- patch from SUSE for hiemdal headers in /usr/include/heimdal
(This used to be commit 1dbc9eff14)
2002-11-13 01:22:25 +00:00
Jelmer Vernooij
8e410d6b09 Don't generate ../examples/pdb/mysql/Makefile and ../examples/pdb/xml/Makefile
(This used to be commit e8a7755647)
2002-11-05 17:15:24 +00:00
Jelmer Vernooij
55888c4462 Add support to build plugins in source/
(This used to be commit eb8965eeff)
2002-11-05 16:33:26 +00:00
Tim Potter
b0c440824d Fix mysterious error message when running 'make python_{ext,install}'
without configuring with python.
(This used to be commit 01a89690a2)
2002-11-05 02:00:36 +00:00
Martin Pool
98d8bf1ac6 Add FIXME about --with-python
(This used to be commit 96741a251c)
2002-11-04 19:36:34 +00:00
John Terpstra
c5ac569180 Applied Buchan Milne's patches.
(This used to be commit ce5a708454)
2002-10-31 04:16:26 +00:00
Andrew Tridgell
809f740166 added a timegm() function for systems that don't have it
(This used to be commit 732bc4519f)
2002-10-30 12:03:40 +00:00
Jelmer Vernooij
0013983d48 Remove obsolete acconfig.h - we now use comments in AC_DEFINE()
(This used to be commit dc4fcb71ed)
2002-10-21 19:21:41 +00:00
Jelmer Vernooij
307d89b60b Recognize FreeBSD5 correctly (not as being sysv...)
(This used to be commit 66ef6b942e)
2002-10-21 16:28:27 +00:00
Jeremy Allison
f86f4a4b66 Turn on sendfile detection by default in HEAD and 3.0.
Jeremy.
(This used to be commit 6a9d0c9bdd)
2002-10-05 00:41:16 +00:00
Andrew Bartlett
1a9703338c Patch from Steve Langasek <vorlon@netexpress.net>:
(quoting his mail)

Ok, here's round two of splitting up the library dependencies.  I think
the first one's been steeping in CVS for long enough now.

This splits off the "authentication" libs (libpam, libcrypt) into their
own group.  A modest gain, but you've gotta start somewhere.

Steve Langasek
postmodern programmer
(This used to be commit a1c63d04b8)
2002-10-03 04:19:52 +00:00
Jeremy Allison
a9ccc38c08 Fix Solaris sendfile detection. Add small fixes to sendfile code.
Jeremy.
(This used to be commit ef7bcaf1b7)
2002-10-01 05:55:25 +00:00
Jeremy Allison
7dc8aa0854 Added Solaris sendfile patch + configure tests from Pierre Belanger <belanger@yahoo.com>.
Jeremy.
(This used to be commit 8db4d46dc9)
2002-09-30 21:14:46 +00:00
Andrew Bartlett
9e7a6d6b8b Readd the 2.2 --with-ldapsam paramaters so as to allow a smooth upgrade path to
a 3.0 based PDC.

Change defaults to use SSL, so that this also matches.

Andrew Bartlett
(This used to be commit 36c2a3820f)
2002-09-27 01:02:37 +00:00
Andrew Bartlett
3c39539ddf Actually pick up the kerberos libs in RedHat - the previous shell construct
didn't seem to work properly.

Andrew Bartlett
(This used to be commit c0925b6352)
2002-09-25 09:37:18 +00:00
Gerald Carter
1c1355c5a3 * fix getpass check
* merge in AIX fixes from SAMBA_2_2
(This used to be commit 50752f84f2)
2002-09-23 04:01:28 +00:00
Jeremy Allison
515c1d42ee Merge back Richard's FreeBSD sendfile fixes.
Jeremy.
(This used to be commit f4845b0213)
2002-09-21 08:53:05 +00:00
Andrew Tridgell
737b0a54bf allow --with-krb5 to override the location of the kerberos libs on
redhat
(This used to be commit 56b194e835)
2002-09-20 09:34:35 +00:00
Jeremy Allison
994638f577 HPUX sendfile is now detected correctly.
Jeremy.
(This used to be commit 91e41ebe97)
2002-09-18 20:07:56 +00:00
Tim Potter
bd875704bf Added --with-ldap (default=yes) option. We should now be able to
compile a non-ADS, non-LDAP version of Samba on a machine with
Kerberos and LDAP libraries installed.

This shouldn't break anything - let's keep an eye on the build
farm just in case.
(This used to be commit b9460e79a1)
2002-09-17 06:11:51 +00:00
Tim Potter
ccfe2b8485 Added --with-ads option, defaults to yes. If you run ./configure
--with-ads=no or ./configure --without-ads Samba will build without
linking to the various kerberos libraries.
(This used to be commit edb6172abf)
2002-09-17 05:38:12 +00:00
Tim Potter
91ba6aa8a8 Default to "python" for --with-python option. This saves having to run
--with-python=python which looks a bit silly.
(This used to be commit 130e05de07)
2002-09-17 01:14:54 +00:00
Jeremy Allison
e8ea0aadbb Added FreeBSD sendfile configure tests. Richard please test...
Jeremy.
(This used to be commit 6425f16977)
2002-09-17 01:10:47 +00:00
Jeremy Allison
f74086ccf0 Attempt to make broken Linux sendfile work.... Still in progress.
Jeremy.
(This used to be commit f956a4d29d)
2002-09-17 01:00:03 +00:00
Jeremy Allison
ad5ab5f583 Added autoconf detection for sendfile for Linux. lib/sendfile.c code
still needs more work. Don't add --with-sendfile-support yet...
Jeremy.
(This used to be commit c6ece53ac2)
2002-09-17 00:45:39 +00:00
Martin Pool
b2536ccfdd Python's setup.py does not need to be munged by configure.in -- it is
sufficient to just pass the relevant variables to Python from the
Makefile.  Therefore, remove setup.py.in.
(This used to be commit 8bebe9ee2b)
2002-09-09 07:49:25 +00:00
Martin Pool
01e7afadd6 Add --with-python=PYTHONNAME configure option, so that the libraries
get linked for the appropriate version.
(This used to be commit 2ea647bbfa)
2002-09-09 06:05:39 +00:00
Martin Pool
b15ffb766a Merge tpot's Python patch. ./configure now writes to the Python
makefile-equivalent (setup.py).  Remember to do "cvs update -d" to get
the new directory.
(This used to be commit 87396c559b)
2002-09-09 05:54:11 +00:00
Simo Sorce
ec4f2af04a configure.in:
reflect the new example/VFS/ directory organization

lib/substitue.c:
added helper functions needed by recycle bin
(This used to be commit 29b4b9a2b5)
2002-09-07 04:08:03 +00:00
Andrew Bartlett
337668fd88 Make it possible to actually build these modules - process the Makefile.in at
the end of configure.
(This used to be commit 6953db6a98)
2002-09-06 13:05:04 +00:00
Andrew Bartlett
69b9cbf327 Detect and use syslog.h or sys/syslog.h corretly. Fixes lack of prototype for
syslog() since Paul Green's POSIX patch.
(This used to be commit d3b29b0b2d)
2002-09-06 10:00:24 +00:00
Jelmer Vernooij
2b2b0f7119 Put in intermediate version of new SAM system. It's not stable yet, code
might be ugly, etc - please don't blame me for anything but instead try to fix
the code :-). Compiling of the new sam system can be enabled with the
configure option --with-sam

Removing passdb/passgrp.c as it's unused
fix typo in utils/testparm.c
(This used to be commit 4b7de5ee23)
2002-08-28 04:54:43 +00:00
Simo Sorce
7251f6b9ec avoid using libtool for VFS modules
change a name in block.c it was hiding a function name
add a comment in configure
(This used to be commit 05038f4471)
2002-08-27 09:14:21 +00:00
Andrew Bartlett
066c5ae97f Steve Langasek <vorlon@netexpress.net> has again attempted to simplify Samba's
external lib dependencies - let's hope this patch stays around for longer than
the previous attempt.

Andrew Bartlett
(This used to be commit d0c0e9f427)
2002-08-25 22:43:20 +00:00
Jeremy Allison
d5dd9dcc3f Test for non-POSIX st_blksize field.
Jeremy.
(This used to be commit d406d08e3e)
2002-08-23 15:29:44 +00:00
Simo Sorce
789e6e6b4e A new utility to test VFS system and modules
Just now it is acommandline tool like smbclient and rpcclient that is able to
perform operations on the file system passing through the vfs layer

It is not complete yet, some functions have simply faked up data, but module
loading works yet and basic operations too.

Thanks to Eric Lorimer for helping out with the initial setup.

Simo.
(This used to be commit 42ae5eb826)
2002-08-18 18:04:00 +00:00
Andrew Bartlett
4267fcccda Samba dependency hell claim's another victim...
Back out last night's patch to to reduce -l dependencies until we can ensure
that *all* configurations/platforms work...

Andrew Bartlett
(This used to be commit 35eefe7a19)
2002-08-08 06:44:03 +00:00
Andrew Bartlett
ab0ca0f0b2 Patch from Steve Langasek <vorlon@netexpress.net> to split up our -l
dependencies.  This benifits packagers (like debian) becouse then our client
code won't have references to 'server only' libraries.

(In particular, it removes the client dependency on CUPS, which was raised in
a debian bug report).

Andrew Bartlett
(This used to be commit d5f2e33b34)
2002-08-07 09:51:59 +00:00
Simo Sorce
edb9158f09 OK!
Finally the cascaded VFS patch is in.
Testing is very welcome, specially with layered multiple vfs modules.
A big thank to Alexander Bokovoy for his work and patience :)

Simo.
(This used to be commit 56283601af)
2002-07-30 09:59:53 +00:00
Tim Potter
c0cd7e0ce3 Do AC_MSG_RESULT(yes) when using included popt.
(This used to be commit edd91fa854)
2002-07-30 01:25:59 +00:00
Simo Sorce
2ff0939301 as per user request added windbind start/stop/restart in swat
almost working, seem it does not yet properly detect if windbind is running or not in all situations testing is welcome.
(This used to be commit e0988e9186)
2002-07-27 01:37:33 +00:00
Andrew Tridgell
fef9d6187e implemented getgrouplist() for systems that don't have it and use it
in get_alias_user_groups(). The old method used getgrent() which is
extremely slow when the number of groups is large
(This used to be commit 44e92b6523)
2002-07-23 09:22:29 +00:00
Andrew Tridgell
ca07fb330f removed the freebsd getgroups check now that we don't use it
(This used to be commit d25dc76137)
2002-07-23 03:38:35 +00:00
Andrew Bartlett
0df1e25542 Kill off codepage related stuff, now we don't use codepages any more.
Andrew Bartlett
(This used to be commit d1ca2b9f23)
2002-07-03 00:44:39 +00:00
Jim McDonough
1aff36d923 Re-enable kernel change notification on s390 as it has been fixed in the
kernel.
(This used to be commit ce7aa715ba)
2002-06-26 23:45:59 +00:00
Gerald Carter
dd1bd197a3 more merges from SAMBA_2_2
(This used to be commit fea895c5c4)
2002-06-26 23:26:10 +00:00
Gerald Carter
5116568601 merge of SONAMEFLAG stuff from SAMBA_2_2. If I stepped on something
here because HEAD does it differently, someone let me know.  This looks ok
and compiles fine from what I can tell.
(This used to be commit 68841ae762)
2002-06-25 00:10:06 +00:00
Gerald Carter
66de8367c6 merging some autoconf changes from SAMBA_2_2
(This used to be commit 708c6b8297)
2002-06-24 23:18:39 +00:00
Andrew Bartlett
a54afa45be Two things: Check how many paramaters that the LDAP libs take for the
rebind proc (some give an extra paramter to pass a void* paramater) and
some small changes for the SMB signing code to reset things when the
signing starts, and to 'turn off' signing if the session setup failed.

Andrew Bartlett
(This used to be commit a8805a34e5)
2002-06-16 05:03:11 +00:00
Jim McDonough
cef9484580 merge 390 kernel workaround from SAMBA_2_2.
(This used to be commit df78e76e0b)
2002-06-05 14:30:20 +00:00
Gerald Carter
43a81faf30 merge from 2.2
(This used to be commit 65417ed341)
2002-05-29 04:39:23 +00:00
Andrew Bartlett
0d26e9f69c Make --with-ldapsam 'go away'. This is now a standard, stable, feature
and there is no real reason for it to depend on more than the abilty
to compile the code.
(This used to be commit 64aaec137e)
2002-05-17 14:51:55 +00:00
Andrew Bartlett
eed5094264 This removes --with-ssl from Samba.
This option was badly maintained, useless and confused our users and
distirbutors.  (its SSL, therfore it must be good...)

No windows client uses this protocol without help from an SSL tunnel.

I can't see any reason why setting up a unix-side SSL wrapper would
be any more difficult than the > 10 config options this mess added
to samba in any case.

On the Samba client end, I think the LIBSMB_PROG hack should be
sufficient to start stunnel on the unix side.  We might extend this
to take %i and %p (IP and port) if there is demand.

Andrew Bartlett
(This used to be commit b04561d3fd)
2002-05-17 12:42:39 +00:00
Jim McDonough
67656e58f6 Fix for non-__va_copy systems. I had used AC_TRY_COMPILE, but even though
__va_copy wasn't defined, it compiled as though it were a function, but
fails on a link.  Oops.
(This used to be commit d3222ecd1a)
2002-05-16 20:28:52 +00:00
Jim McDonough
a3c7cbfed3 Add configure support for __va_copy, which is required on Linux/390 systems
when assigning on va_list to another, or when passing a va_list as an
argument to a function.  Not using it causes segv's and other unpredictable
results.

We need to check all over the place for this...
(This used to be commit 331132678c)
2002-05-16 19:59:25 +00:00
Gerald Carter
9798be6355 merge from SAMBA_2_2
(This used to be commit d8e8f13f72)
2002-05-16 17:19:41 +00:00
Gerald Carter
92245e1ffc more solaris compile fixes (for smbwrapper)
(This used to be commit fbefb479fb)
2002-05-15 12:34:33 +00:00
Jeremy Allison
58c3f9d6d5 Fix for *BSD linking of VFS modules from "Scot W. Hetzel" <hetzels@westbend.net>
Jeremy.
(This used to be commit f137a2cc14)
2002-05-11 00:36:33 +00:00
Jeremy Allison
9fb0a7cbfc Fix to include -Ipopt in getpass test.
Jeremy.
(This used to be commit 41cec26ee3)
2002-05-11 00:25:49 +00:00
Tim Potter
fc26f277ca Fix for Solaris nscd issue pointed out by Mike Gerdts
<Michael.Gerdts@alcatel.com>.  The struct passwd in Solaris contains some
extra fields which must be initialised otherwise nscd crashes.
(This used to be commit a67323d071)
2002-05-10 03:02:22 +00:00
Gerald Carter
3de73897e7 merge from SAMBA_2_2
(This used to be commit 7382c3013d)
2002-05-09 13:52:06 +00:00
Gerald Carter
4db4e95ab2 pidfile merge from SAMBA_2_2 (including --with-fhs) and a few other minor things; compiles and shouldnt break, but needs testing
(This used to be commit 19b9b50d90)
2002-05-09 04:08:00 +00:00
Andrew Tridgell
193225dd42 patch from Alexander Bokovoy needed for dlopen on bsd systems
(This used to be commit 38fd99e841)
2002-04-24 11:43:02 +00:00
Andrew Tridgell
b66932e1a5 fixed the handling of STR_TERMINATE
(This used to be commit dbc6b137a8)
2002-04-16 12:07:12 +00:00
Andrew Tridgell
5928c293ff added strndup() for systems that don't have it
(This used to be commit 7e92fb7453)
2002-04-11 15:27:22 +00:00
Jeremy Allison
8c1f1034fa Ensure VFS modules will build correctly by adding defines for CPPFLAGS
defines into acconfig.h - only defined if seen.
Jeremy.
(This used to be commit 9f2753a149)
2002-04-11 00:37:31 +00:00
Tim Potter
fbbc63f93c Use m4-mode when editinging configure.in under emacs.
Use $CC instead of $SHLD for the "test whether building a shared library
actually works".  At the moment this is failing as $SHLD (and $LDSHFLAGS -
look at the value this is set to for Solaris) are designed to be used from
a Makefile and not within configure so this test will always fail!

Tridge has suggested moving to libtool^H^H^H^H^H a shell script that
invokes the right linker with the right args and solves this problem
nicely.
(This used to be commit 4caf71d5b2)
2002-04-04 05:47:41 +00:00
Tim Potter
5614a72b78 Add -D__INSURE__ to the CPPFLAGS if CC=insure.
(This used to be commit fb80ff968c)
2002-04-04 02:30:54 +00:00
Andrew Tridgell
9dc5b31936 not all versions of gcc support -rdynamic
for example, gcc 2.95.2 on sco1 doesn't
(This used to be commit aa7eab7245)
2002-04-01 09:52:36 +00:00
Andrew Tridgell
b0f405d825 try to get the summary test working on OpenBSD
(This used to be commit 63702ca3a4)
2002-04-01 07:29:43 +00:00
Jeremy Allison
7d7c594644 Removed HAVE_LIBDL from most places (except system.c). Added checks for
dlopen & friends into configure.in. This should help building on *BSD
where dl*** calls are in libc.
Jeremy
(This used to be commit ac1baba35d)
2002-03-27 03:00:39 +00:00
Andrew Bartlett
657a24f476 Various winbind updates:
- pam_winbind updates from vance, fixing a typo and making some the options
  work properly.

- Extra parinoia in the winbind connection loop

- Allow pam_winbind to compile on HP-UX (Don Mcall, more work to do).

- Fix up configure.in to use the same method for building the test .so
  as the Makefile uses.

Andrew Bartlett
(This used to be commit 8e705dd921)
2002-03-23 08:28:19 +00:00
Jeremy Allison
ffadd471b9 Sync up vfs changes from 2.2.x.
Jeremy.
(This used to be commit ad1e858d8e)
2002-03-19 02:32:39 +00:00
Tim Potter
52b3390ca6 Fixed typo for winbind on solaris and hpux.
I have to say that having to link in winbind_nss_solaris.o for hpux is
slightly dodgy...
(This used to be commit fd172ec603)
2002-03-03 22:49:08 +00:00
Jeremy Allison
3afe4729a2 Fixed EXTRA vs EXTGRA typo. Thanks Mike :-).
Jeremy.
(This used to be commit 56b1252ebc)
2002-03-01 19:30:34 +00:00
Jeremy Allison
2853554cdb Attempt to fix Solaris winbind nss build.
Jeremy.
(This used to be commit 10e3e6855b)
2002-03-01 01:03:06 +00:00
Andrew Bartlett
06a31c9b3b We can't build shared libs on sco, so no point attempting to export dynamic
symbols.  In any case, it broke the build :-(

Andrew Bartlett
(This used to be commit 8c22ff75d7)
2002-02-22 04:38:28 +00:00
Andrew Bartlett
1d3560bd4c Get rid of the unused WL variable from the previous patch. I think these were
meant to be DYNEXP, but I'll confirm that with the original contributor.

Thanks to vance for spotting this!

Andrew Bartlett
(This used to be commit cf9cae48e6)
2002-02-22 03:29:13 +00:00
Andrew Bartlett
527aaf6def Add the pdb_plugin module from Jelmer Vernooij <jelmer@nl.linux.org>.
This allow the user to select
'passdb backend = plugin : /path/to/plugin.so : pluging args'

And load any arbitary plugin.  Apparently Jelmer has a mysql plugin in the
works - hence this patch.

We probably need to rework the interface a bit before 3.0 (add versioning of
some kind) but this is a good start.

Andrew Bartlett
(This used to be commit d6d18b70f0)
2002-02-22 02:47:53 +00:00
Andrew Bartlett
5f65fc0318 Try to catch the compilers that don't handle immidiate structures as well as we
would like.  We use them to initialise other struct (lookup) tables, so test
that as well.

Also try not to segfault during our snprintf tests - test both with a 0 len
buffer and without any buffer at all.

Andrew Bartlett
(This used to be commit 2d80ab7122)
2002-02-22 01:54:17 +00:00
Andrew Tridgell
287d8da0a0 fixed the gssapi lib configure test to not do the test twice
(This used to be commit 1ce762e96b)
2002-02-20 05:33:47 +00:00
Herb Lewis
57cfadcbbd fix for IRIX toolroot builds
(This used to be commit dc3fb2e6dc)
2002-02-06 00:53:00 +00:00
Andrew Bartlett
1a74d8d1f0 This is another *BIG* change...
Samba now features a pluggable passdb interface, along the same lines as the
one in use in the auth subsystem.  In this case, only one backend may be active
at a time by the 'normal' interface, and only one backend per passdb_context is
permitted outside that.

This pluggable interface is designed to allow any number of passdb backends to
be compiled in, with the selection at runtime.  The 'passdb backend' paramater
has been created (and documented!) to support this.

As such, configure has been modfied to allow (for example) --with-ldap and the
old smbpasswd to be selected at the same time.

This patch also introduces two new backends:  smbpasswd_nua and tdbsam_nua.
These two backends accept 'non unix accounts', where the user does *not* exist
in /etc/passwd.  These accounts' don't have UIDs in the unix sense, but to
avoid conflicts in the algroitmic mapping of RIDs, they use the values
specified in the 'non unix account range' paramter - in the same way as the
winbind ranges are specifed.

While I was at it, I cleaned up some of the code in pdb_tdb (code copied
directly from smbpasswd and not really considered properly).  Most of this was
to do with % macro expansion on stored data.  It isn't easy to get the macros
into the tdb, and the first password change will 'expand' them.  tdbsam needs
to use a similar system to pdb_ldap in this regard.

This patch only makes minor adjustments to pdb_nisplus and pdb_ldap, becouse I
don't have the test facilities for these.  I plan to incoroprate at least
pdb_ldap into this scheme after consultation with Jerry.

Each (converted) passdb module now no longer has any 'static' variables, and
only exports 1 init function outside its .c file.

The non-unix-account support in this patch has been proven!  It is now possible
to join a win2k machine to a Samba PDC without an account in /etc/passwd!

Other changes:

Minor interface adjustments:
pdb_delete_sam_account() now takes a SAM_ACCOUNT, not a char*.

pdb_update_sam_account() no longer takes the 'override' argument that was being
ignored so often (every other passdb backend).  Extra checks have been added in
some places.

Minor code changes:
smbpasswd no longer attempts to initialise the passdb at startup, this is
now done on first use.

pdbedit has lost some of its 'machine account' logic, as this behaviour is now
controlled by the passdb subsystem directly.

The samr subsystem no longer calls 'local password change', but does the pdb
interactions directly.  This allow the ACB_ flags specifed to be transferred
direct to the backend, without interference.

Doco:

I've updated the doco to reflect some of the changes, and removed some paramters
no longer applicable to HEAD.
(This used to be commit ff354c99c5)
2002-01-20 14:30:58 +00:00
Andrew Bartlett
6894c42b91 I like --enable-developer, but I find it rather usless when all it gets me is a
screen-full of kerberos warnings.

This is almost as good, and I can actually see the Samba warnings.

Andrew Bartlett
(This used to be commit 35a6275e18)
2002-01-14 22:11:01 +00:00
Jeremy Allison
09571aa76d We need to test for major/minor macros.
Jeremy.
(This used to be commit ee8c8add7f)
2002-01-10 01:49:09 +00:00
Jeremy Allison
3454945146 Getting ready to add UNIX extensions in HEAD also.
Jeremy
(This used to be commit 6210d4aa19)
2002-01-10 00:28:09 +00:00
Jeremy Allison
3375267106 Added tests for st_blocks in struct stat, and added a (hateful) constant
the specifies the units that st_blocks is in. The reason for this is
that HPUX uses 8k, AIX uses a #defined constant and everyone else (tm)
uses 512 byte units.
Needed for the CIFS UNIX extensions - coming to a Samba server near
you soon.... :-).
Jeremy.
(This used to be commit 38cfffea5f)
2002-01-09 21:30:37 +00:00
Martin Pool
f5bc0e92a6 Better explanation message for dmalloc.
Also more insertion of parenthesis to handle struct members called
'free'.

You can now get useful dmalloc output, as long as it is compatible
with your C library.  On RH7.1 it looks like you have to rebuild
dmalloc to allow free(0) by default, because something in libcrypt
does that. (sigh)
(This used to be commit 391cbb6901)
2002-01-09 07:52:51 +00:00
Martin Pool
a8389eaeb5 With --enable-dmalloc, also use dmalloc's wrappers around routines
like strcat
(This used to be commit fb8ab69b6f)
2002-01-09 06:38:22 +00:00
Andrew Tridgell
1803e9cc0f - fixed my breakage of CPPFLAGS
- allow winbindd and wbinfo to build without shared libraries
(This used to be commit d5db2518be)
2002-01-08 04:44:15 +00:00
Andrew Tridgell
6c14b8c387 - use CFLAGS when linking shared libs (for things like -64 on irix)
- don't attempt to build winbindd if we can't do shared libs
(This used to be commit c98158f3f8)
2002-01-07 11:42:12 +00:00
Tim Potter
0094af05ed Spelling fix.
(This used to be commit dfcc97a158)
2002-01-07 02:58:31 +00:00
Martin Pool
c3a5645121 Add instructions on using dmalloc.
(This used to be commit ee6d33a8db)
2002-01-03 03:04:35 +00:00
Andrew Tridgell
1425c6ec32 try to handle broken const in headers on cray unicos
(This used to be commit 8143052e69)
2002-01-01 06:55:33 +00:00
Andrew Tridgell
927e860477 added a simple test to see whether building shared libraries actually
works
(This used to be commit 3aeefbca4f)
2001-12-31 22:10:24 +00:00
Andrew Tridgell
162a6606bd cope with systems that don't have full gssapi libs
(This used to be commit c4d928e55f)
2001-12-31 14:31:13 +00:00
Andrew Bartlett
34037e2479 Make Samba compile on RH 6.2 again.
We now include the libber.h file if required, but currently we just don't use
ldap.  (I'll chase this up).

In the meantime, I've moved the ads_status code about, its now in its own file,
and has a couple of #ifdefs to allow smbd to link - becouse the lack of LDAP
caused HAVE_ADS to be undefined. (I hope its not too ugly).

Andrew Bartlett
(This used to be commit 14407c87e2)
2001-12-30 05:59:43 +00:00
Jeremy Allison
bb81e23e17 When running interactive we want to set our own process group for
signal management.
Jeremy.
(This used to be commit fffae94dd5)
2001-12-30 01:46:38 +00:00
Herb Lewis
e674581416 merge IRIX winbind support from Samba 2.2 branch
(This used to be commit 20c5f042e3)
2001-12-22 00:51:32 +00:00
Andrew Tridgell
65ad38f6f7 updated ldap test to test for less common function
(This used to be commit 831f25a9a7)
2001-12-21 11:20:59 +00:00
Martin Pool
cc0846f967 Add --enable-dmalloc to link against the dmalloc malloc debugger.
It's not as strong as Insure, but it's free, reasonably efficient and
works on every platform.
(This used to be commit e76d27fcdb)
2001-12-20 04:01:44 +00:00
Jeremy Allison
2fe6d5d5a1 Added AC_CHECK_FUNCS(syslog vsyslog).
nsswitch code uses vsyslog without checking for it.
Provide replacement for vsyslog in lib/snprintf if not found by configure.
Jeremy.
(This used to be commit ab2e55cdb3)
2001-12-19 19:18:37 +00:00
Jeremy Allison
ce1b141ec0 Added HPUX ACL code.
Jeremy.
(This used to be commit 6d03184f8c)
2001-12-15 02:40:16 +00:00
Jeremy Allison
968e2a2976 Updated Solaris link options from DaveCB.
Jeremy.
(This used to be commit 064a3e0fc4)
2001-12-14 16:31:41 +00:00
Herb Lewis
ed7caa2ecf allow IRIX to build nsswitch/libnss_wins.so
(This used to be commit 564bfd7728)
2001-12-12 16:08:32 +00:00
Jim McDonough
3bc9ef34b1 Delay gssapi header checking until after kerberos has been located. Wasn't working on RedHat systems because of /usr/kerberos install location.
(This used to be commit 55d55e311e)
2001-12-10 18:07:17 +00:00
Martin Pool
5e22f65d00 (merge 1.130.4.93) Display results of checks for shared libraries.
(This used to be commit d7853d9937)
2001-12-10 04:29:14 +00:00
Andrew Tridgell
09b01cdcbd check for gssapi_generic.h
(This used to be commit 838fbac7a0)
2001-12-08 12:06:08 +00:00
Andrew Tridgell
5d378a280f added internal sasl/gssapi code. This means we are no longer dependent on cyrus-sasl which makes the code much less fragile. Also added code to auto-determine the server name or realm
(This used to be commit 435fdf276a)
2001-12-08 11:18:56 +00:00
Herb Lewis
549e904d3f merge from 2.2
don't set WINBIND variables unless configure was run --with-winbind
(This used to be commit 83ec4c0f4d)
2001-12-05 21:08:17 +00:00
Herb Lewis
f3e6f2d953 dont add -I./popt to CFLAGS it really belongs in FLAGS1 with other include
paths. This make it hard to use a script that overrides CFLAGS options.
(This used to be commit 646b5ae752)
2001-12-05 19:45:30 +00:00
Andrew Tridgell
3756055ea1 we need to look for liblber before libldap
(This used to be commit 93a652b705)
2001-11-30 22:45:52 +00:00
Jeremy Allison
a9750b2006 XFS quota patch for Linux.
Jeremy.
(This used to be commit ce099faf6c)
2001-11-30 21:50:02 +00:00
Andrew Bartlett
210711c6a0 Fix up the ./configure tests for kerberos. This ensures a more consistant
behaviour no matter if kerberos was found automatically, found in the
/usr/kerberos path or was specified.
(This used to be commit 4e212f728c)
2001-11-29 06:23:43 +00:00
Andrew Bartlett
299edaa854 Allow kerberos to work on RedHat and other non /usr systems again
the configure test uses the CPPFLAGS when checking that krb5.h exists
(This used to be commit 1e4fc749ad)
2001-11-28 06:52:33 +00:00
Andrew Tridgell
a7ac992b12 added test for krb5.h
this was causing the kerberos stuff to fail compilation on several
platforms
(This used to be commit 17e2f38973)
2001-11-27 22:37:25 +00:00
Andrew Tridgell
3dc6fe1fe4 automatically look for /usr/kerberos to make redhat happy
(This used to be commit 0120dea7f0)
2001-11-27 01:45:08 +00:00
Andrew Tridgell
e9595e5517 check for liblber separately
(This used to be commit d7216424d9)
2001-11-25 12:26:40 +00:00
Andrew Tridgell
6464bb0ae5 added the beginnings of ADS support in smbd
(This used to be commit c7f6116919)
2001-11-20 08:54:15 +00:00
Martin Pool
b99209cce4 Detect libreadline>=4.0, and set HAVE_NEW_LIBREADLINE. At the moment
this is only to get the cast right, but it might help with other parts
of the API that changed later.
(This used to be commit b792c9317a)
2001-11-19 04:18:45 +00:00
Jeremy Allison
355124adaf Fixed detection of RedHat headers. Removed another file !
Jeremy.
(This used to be commit d70674312d)
2001-11-16 23:22:49 +00:00
Jeremy Allison
5302dc1218 Fix detection of RedHat 7.2.
Remove unused old file.
Test 42 byte reply to SMBntcreate (W2K does this).
Jeremy.
(This used to be commit a55a63a4ca)
2001-11-15 01:18:10 +00:00
Jeremy Allison
50005ee3ad Fix compile on RedHat 7.2 systems with broken system headers.
Jeremy.
(This used to be commit b14ac75666)
2001-11-14 23:00:37 +00:00
Martin Pool
6654c29138 Cosmetic fix for libpopt-checking test.
(This used to be commit 87d27265a5)
2001-11-14 01:18:41 +00:00
Andrew Bartlett
7de42a4faf Remove built-in support for clear-text kerberos authentication.
This should remove some confusion from the ./configure, but does not affect the
'real' kerberos support currently residing in smbd/sesssetup.c.

This code is vunerable to a spoofed KDC, and is best replaced by --with-pam and
the pam_krb5 module.  This module includes measures to prevent such spoofing.

Andrew Bartlett
(This used to be commit 3235880b41)
2001-11-11 10:42:07 +00:00
Jim McDonough
053f21feda Fix popt library checking
(This used to be commit 2cd33e88eb)
2001-10-23 17:12:30 +00:00
Jim McDonough
be6edf50c4 Add popt for parsing commandline options
(This used to be commit df34e11d84)
2001-10-23 14:16:22 +00:00
Andrew Tridgell
fba157123e - fixed link order of krb5 libs
- accept a wide range of principal names in session setup
(This used to be commit 672df66296)
2001-10-22 05:04:33 +00:00
Andrew Tridgell
f26677441a don't need KRB5_DIR define
(This used to be commit a899086a51)
2001-10-20 06:27:48 +00:00
Andrew Tridgell
9a2ce008e9 fix linking of k5crypto library on openbsd
(This used to be commit 2667dea146)
2001-10-16 11:40:09 +00:00
Andrew Tridgell
06a6db53fa fixed finding the resolv library
(This used to be commit 7bb99a9e89)
2001-10-16 01:05:49 +00:00
Andrew Tridgell
179cf90db7 include more libs needed for kerberos5 on some systems (eg. solaris)
removed some no longer needed i18n stuff from configure.in
(This used to be commit dd3ad91724)
2001-10-15 01:54:39 +00:00
Andrew Tridgell
8732ff135a fixed the --with-krb5=dir option.
thanks to monyo for pointing out the problem
(This used to be commit 5a6774c438)
2001-10-14 14:04:55 +00:00
Andrew Tridgell
8cec5cf35f first step in converting the head branch to use lang_tdb.c instead
of gettext for internationalisation support. There is more to do
(This used to be commit ab7f67677a)
2001-10-11 08:40:42 +00:00
Andrew Tridgell
81f56139b6 initial kerberos/ADS/SPNEGO support in libsmb and smbclient. To
activate you need to:

- install krb5 libraries
- run configure
- build smbclient
- run kinit to get a TGT
- run smbclient with the -k option to choose kerberos auth
(This used to be commit d330575856)
2001-10-11 07:42:52 +00:00
Jeremy Allison
bf1697bc88 Fixed CUPS detection - patch from Michael Sweet.
Jeremy.
(This used to be commit 4c5158d1e5)
2001-09-28 18:07:11 +00:00
Gerald Carter
2c4d1d39b1 OpenSSL merge from 2.2
(This used to be commit efc6df5a39)
2001-09-26 17:29:53 +00:00