1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

582 Commits

Author SHA1 Message Date
Jelmer Vernooij
3d0735e6b0 Add PDBLIBDIR, just like VFSLIBDIR -
Gerald Carter
1cf0cfa1b7 merging changes from SAMBA_3_0 relating to RPM packaging -
Andrew Bartlett
47f3bfe956 Having waited for *way* too long, this is mimir's namecache and trusted domain
cache code.

This uses gencache, mimir's new caching code that stores at text-based cache
of various data.

Mimir has done a *lot* of work on this patch, and it is finally time to
get it in CVS.

Andrew Bartlett
-
Gerald Carter
256d8c27cd [print notify fixes from APP_HEAD]
* fixing change notify on print server handle
 * adding change notify support into smbcontrol for sending comment
   changes, etc...

All part of CR 1159/1160
-
Andrew Bartlett
9bac0b7277 Try to twiddle with the makefile to avoid having a trailing \ when we
don't build any extra programs.
-
Andrew Bartlett
82dbf83887 Add ntlm_auth, a new program to provide a stable interface to winbind's
authentication code.

In particular, ntlm_auth is designed to replace the winbind authentication
'helpers' currently supplied by Squid.  I have added support for the current
plaintext password protocol used by Squid, and will add the real guts (NTLMSSP
support) shortly.

I'll merge this into 3.0 when I've got the interface more stable (error message
format etc) and got the important NTLMSSP support added.

Also move SWAT's URL decoding code into util_str.c, for use in both utilities.

Andrew Bartlett
-
Tim Potter
d6dfe3ea69 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.
-
Jelmer Vernooij
2addbaff35 Use smb_register_passdb() - plus some small fixes -
Tim Potter
a59f731256 A cool idea from mbp: create a big shared library of all Samba objects
which we can use to link against Samba unit test programs.  Now we can
compile and link unit tests without having to create 4MB executables
for each program

It's called libbigballofmud.so both to discourage casual usage and
also to reflect what the dependencies within Samba have become.
-
Tim Potter
85946731dd Quieten status message when linking libsmbclient.so -
Jelmer Vernooij
c656e7dce9 Add installmodules and uninstallmodules targets -
Jelmer Vernooij
afbff33eba Move 'weird' character set into new 'developer' module -
Jelmer Vernooij
018a44055d Only add modules/pdb_xml.so and modules/pdb_mysql.so to the 'modules' target if
the libs they depend on are available
-
Jelmer Vernooij
4c05cbbe74 Add make target 'modules' that currently builds vfs_audit, vfs_recycle and vfs_netatalk -
Jelmer Vernooij
ba34be7033 Add $(POPT_LIB_OBJ) to PROTO_OBJ -
Simo Sorce
80086728f2 consolidate error mapping functions into a single file -
Jeremy Allison
10024ed06e Merge of scalable printing code fix... Needs testing.
Also tidied up some of Richard's code (I don't think he uses the compiler
flags -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual like
I do :-) :-).
Jeremy.
-
Jelmer Vernooij
44c894531b Remove pdb_sql.o.. this one got in by accident -
Jelmer Vernooij
2e7a904856 Small fix from Guenther Deschner <guenther.deschner@suse.de>
(remove junk chars)
-
Jelmer Vernooij
eb8965eeff Add support to build plugins in source/ -
Tim Potter
cf6d2d9d9e Remove DRIVERFILE constant. It was removed with the old win95
printer driver stuff.
-
Tim Potter
01a89690a2 Fix mysterious error message when running 'make python_{ext,install}'
without configuring with python.
-
Andrew Bartlett
c70a3191d4 VFStest already has pop_common via smbd, so don't link it twice.
Andrew Bartlett
-
Jelmer Vernooij
24dd3886e8 Add @BUILD_POPT@ to smbclient -
Andrew Bartlett
a0d13cd3f0 Becouse lib/popt_common.c uses POPT, we must not include it in LIB, we must
link it on a per-program basis.

Next step is to make -lpopt apply only to the right programs, which might
help some of this kind of thing show up on Linux.

Andrew Bartlett
-
Andrew Bartlett
dd9c6214d1 Try to fix popt dependencies - we were linking to popt before we built with it.
Andrew Bartlett
-
Andrew Bartlett
80f1f68b6f Any conversion to POPT must *always* add @BUILD_POPT@ or it just won't work on
systems other than linux.

Andrew Bartlett
-
Richard Sharpe
6db6a48711 The fixes from Tom plus a minor update from me. -
Richard Sharpe
26857be78c Fix a problem with spaces vs tabs -
Richard Sharpe
daefe52a56 Add more code to the profiles program and add Makefile.in support. -
Jelmer Vernooij
b5d05d3ec6 Add initial vesion of new module system -
John Terpstra
d134d66f98 Added Buchan Milne's DESTDIR patch. -
Gerald Carter
07ac86323f sync with SAMBA_3_0 -
Jelmer Vernooij
e2f9ac5032 Distclean should remove scripts/findsmb (patch from metze) -
Gerald Carter
f70caa25e4 merge of working dsrolegetprimdominfo() client code from APP_HEAD -
Andrew Bartlett
4851b6a40f VFStest uses all of smbd's .o files, so needs -lpam and crypt. -
Andrew Bartlett
a1c63d04b8 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
-
Andrew Bartlett
b9036900d0 Remove sam/api.c.
In order to reduce complexity, this patch removes the upper layer of the SAM
API.  Also, we remove the function pointers on the sam context - there really
is no point making these replaceable - that's for the modules.

Move a number of functions in include/interface.c around to allow for use of
'static' and to keep the external API in one chunk, at the bottem.  All these
functions were renamed to remove the context_sam -> sam

Consequential changes in the samtest module, and back out metze's change for
ACB filtering, becouse I think it belongs in the SAM backeds.  (But I will take
debate on this one).

Changes to the lib/util_sid.c code to create a 'system' token, and make it a
SAM_ASSERT() enforced requirement to have a token on those calls that specify
it.  samtest now uses this.

We should have a samtest call to set your own token.

We also need to extend our se_access code to cover the things that Win2k is
returning in it's access tokens.  Currently our system token doesn't pass, due
to unexpected flags.  (When running sam_ads against Win2k)

Andrew Bartlett
-
Andrew Bartlett
24fb0cde2f Add the beginings of sam_ads to the tree.
This module, primarilly the work of "Stefan (metze) Metzmacher"
<metze@metzemix.de>, uses the Active Directory schema to store the
user/group/other information.  I've been testing it against a real AD server,
and it is intended to work with OpenLDAP as well.

I've moved a few functions around in our other libads code, which has made it
easier to tap into that existing code.

Also, I've made some changes to the SAM interface, I hope there are not too
many objections...   To ensure we don't get silly bugs in the skel module, it
is now in the default compile.  This way you should not forget to update it :-)

Andrew Bartlett
-
Andrew Bartlett
c864edf4fb Move a number of ADS related functions out into utility libs, so that things
like metze's sam_ads can also use them.

Also add error checking etc to a few more functions.

Andrew Bartlett
-
Andrew Bartlett
df8f0338fa Vance picked up a pile of typos etc at the CIFS confernce, and finally got them
off his laptop :-)

Andrew Bartlett
-
Jelmer Vernooij
f0c0958757 Compile samtest with LIBADS_OBJ and PASSDB_OBJ... -
Tim Potter
1bd2c6e144 remove proto headers on realclean -
Jelmer Vernooij
60ab55fedf Merge in first command for 'samtest'
Fix small bug in sam/interface.c
Make sam backend to default to a define
-
Tim Potter
a36882175a Clean up python extensions in clean target.
Pass more flags down to setup.py so we don't have to hard code any
-I directives.
-
Volker Lendecke
0c1fadd9e0 First code for 'net rpc vampire'. We should probably find a more
positive name for this. It creates users and global groups. More to come.

Volker
-
Jeremy Allison
a7781f91d8 Never, *ever* hold a mutex lock in the message database where there may
be traversals being attempted. Yes, this was from bitter experience (and
an out of control server :-). Also allow callers to break out of a tdb_chainlock
with sigalarm if desired.
Jeremy.
-
Jeremy Allison
fd772ca7b1 First cut at portable sendfile code. Only used in readX at the moment
and doesn't actually call sendfile. Needs to be vectored through the
VFS and tested on all supported platforms (Solaris/HPUX/FreeBSD/Linux).
Linux doesn't actually work (2.4.19 kernel) at the moment because it
doesn't have a 64-bit clean sendfile.
Jeremy.
-
Andrew Tridgell
05a202c287 added gencache implementation from mimir - thanks! -
Martin Pool
29d7ee7e0d Add python_install target. Not called by default. Delegates most
of the work to setup.py
-