1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

575 Commits

Author SHA1 Message Date
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
-
Martin Pool
8bebe9ee2b 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.
-
Martin Pool
2ea647bbfa Add --with-python=PYTHONNAME configure option, so that the libraries
get linked for the appropriate version.
-
Martin Pool
452769f595 Merge tpot's patch to add targets to build Python stuff. It's not
built by default.
-
Jelmer Vernooij
56cb03bfc6 Patch from Stefan (metze) Metzmacher with more updates for the SAM subsystem -
Andrew Bartlett
d1e1fc3e4b This is the 'easy' parts of the trusted domains patch n+3 patch from
Rafal Szczesniak <mimir@diament.ists.pwr.wroc.pl>

It includes a conversion of make_user_info*() to NTSTATUS and some minor
changes to other files.

It also picks up on a nasty segfault that can occour in some security=domain
cases.

Andrew Bartlett
-
Andrew Bartlett
5b9a7ab901 Patch from "Stefan (metze) Metzmacher" <metze@metzemix.de>
to extend the ADS_STATUS system to include NTSTATUS, and to provide a better
general infrustructure for his sam_ads work.

I've also added some extra failure mode DEBUG()s to parts of the code.

NOTE:  The ADS_ERR_OK() macro is rather sensitive to braketing issues - without
the final set of brakets, the test is essentially inverted - causing some
intersting 'error = success' messages...

Andrew Bartlett
-
Gerald Carter
4f00844da0 fix proto -