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

321 Commits

Author SHA1 Message Date
Tim Potter
c0a542fcad Merge from HEAD:
- Target selection cleanup
 - Some formatting merges
 - Merged some Pythong bits&pieces that were missed previously

Original commit message for target selection cleanup:

>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 6000caf5da)
2002-11-29 01:17:00 +00:00
Gerald Carter
72948b91a0 * fixing RedHat spec file for 3.0
* updating Makefile & configure script to use CONFIGDIR & VFSLIBDIR
* set LIBDIR to ${prefix}/lib/samba when --with-fhs is enabled
* make installdirs take an arbitrary number of arguements
(This used to be commit f0d09cf676)
2002-11-26 23:18:35 +00:00
Gerald Carter
486b07e76e lining up some spaces in configure.in and reran autoconf
updating WHATSNEW
(This used to be commit ff05947aac)
2002-11-26 19:11:22 +00:00
Jelmer Vernooij
ac2ac71168 Merge in modules system from HEAD:
- Detect MySQL and XML libraries
 - Add modules rules to Makefile
 - Move working VFS modules to source/
(This used to be commit fadada3555)
2002-11-18 16:22:04 +00:00
Andrew Bartlett
f7730e146f Merge from HEAD: Remove assumption that all solaris has -lsendfile
(This used to be commit 6520592453)
2002-11-16 01:08:46 +00:00
Andrew Bartlett
c64d762997 Updates from HEAD:
- const for PACKS() in lanman.c
 - change auth to 'account before password'
 - add help to net rpc {vampire,samsync}
 - configure updates for sun workshop cc
 - become_root() around pdb_ calls in auth_util for guest login.

Andrew Bartlett
(This used to be commit 43e90eb6e3)
2002-11-15 21:43:57 +00:00
Andrew Bartlett
4b117b8917 Merge from HEAD:
- heimdal updates to configure
 - make DEBUG() const
 - add testsuite for:
   - preexec
   - preexec close
   - valid users
 - fix testsuite for 'invalid users'

Andrew Bartlett
(This used to be commit aa41fb8703)
2002-11-15 14:06:35 +00:00
Jelmer Vernooij
7cfe3919f3 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 da8794afe8)
2002-11-13 21:54:31 +00:00
Andrew Bartlett
098c08ccab Merge from HEAD
- make configure check for the location of Heimdal KRB5 on suse systems
	- fix libsmbclient for new global_myname()
(This used to be commit 111b0405cf)
2002-11-13 07:04:00 +00:00
Jelmer Vernooij
e1a9236092 Back out some of my sync changes
(This used to be commit b1ad91101d)
2002-11-09 23:28:40 +00:00
Jelmer Vernooij
dc5297f413 Sync with HEAD
(This used to be commit 1a25dc776d)
2002-11-09 16:57:45 +00:00
Jelmer Vernooij
eed4e92c52 Don't build Makefile for examples/sam
(This used to be commit 0dd0f68b0f)
2002-10-30 06:46:23 +00:00
Jelmer Vernooij
aa09f94e69 Back out SAM - it belongs in HEAD
(This used to be commit da0d48eedc)
2002-10-29 21:33:02 +00:00
Jelmer Vernooij
766b7b5dc0 Sync with HEAD
(This used to be commit 906f25d1fb)
2002-10-28 19:28:32 +00:00
Jeremy Allison
d6486dff61 Turn on sendfile detection by default in HEAD and 3.0.
Jeremy.
(This used to be commit a09ba463b4)
2002-10-05 00:40:49 +00:00
Andrew Bartlett
ad8a22e570 Updates from Samba HEAD:
- Fix segfaults in the 'net ads' commands when no password is provided
 - Readd --with-ldapsam for 2.2 compatability.  This conditionally compiles the
   old options, but the actual code is available on all ldap systems.
 - Fix shadow passwords (as per work with vl)
 - Fix sending plaintext passwords to unicode servers (again vl)
 - Add a bit of const to secrets.c functions
 - Fix some spelling and grammer by vance.
 - Document the -r option in smbgroupedit.

There are more changes in HEAD, I'm only merging the changes I've been involved
with.

Andrew Bartlett
(This used to be commit 83973c3893)
2002-10-01 13:10:57 +00:00
Jeremy Allison
88e481ec13 Fix Solaris sendfile detection. Add small fixes to sendfile code.
Jeremy.
(This used to be commit 7ba5636897)
2002-10-01 05:54:40 +00:00
Jeremy Allison
4d2d5c4ace Added Solaris sendfile patch + configure tests from Pierre Belanger <belanger@yahoo.com>.
Jeremy.
(This used to be commit 9c17faefa5)
2002-09-30 21:17:18 +00:00
Gerald Carter
a834a73e34 sync'ing up for 3.0alpha20 release
(This used to be commit 65e7b5273b)
2002-09-25 15:19:00 +00:00
Jelmer Vernooij
b2edf254ed sync 3.0 branch with head
(This used to be commit 3928578b52)
2002-08-17 17:00:51 +00:00
Andrew Tridgell
e90b652848 updated the 3.0 branch from the head branch - ready for alpha18
(This used to be commit 03ac082dcb)
2002-07-15 10:35:28 +00:00
Tim Potter
7f807117d7 Merge of Solaris winbindd fixes.
(This used to be commit 4bbc584e6c)
2002-05-13 00:06:35 +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