1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-14 01:57:53 +03:00

705 Commits

Author SHA1 Message Date
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 -
Gerald Carter
8eab2e7941 fix broken dependencies.... -
Gerald Carter
fd140aadd7 break out REGISTRY_VALUE & REGVAL_CR objects into separate file for
cleaning linking....
-
Jelmer Vernooij
b813761126 Several compiler warning fixes + fix dependencies samtest -
Andrew Bartlett
abdad251f6 I think this should fix the compile on some of the CUPS based machines.
Andrew Bartlett
-
Jelmer Vernooij
61626340e5 Add plugin support for the sam system from metze (based on passdb code) -
Jelmer Vernooij
b742d068b8 Add new files to Makefile + typo fix -
Jelmer Vernooij
eafcc38704 Put in patch from metze (Stefan Metzmacher) to:
- Rename user -> account
- Add sam_* functions (api.c)
- Several small fixes
-
Jelmer Vernooij
4b7de5ee23 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
-
Andrew Bartlett
d0c0e9f427 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
-
Herb Lewis
34a7efd1f8 remove samsync and spamsync -
Andrew Tridgell
e4cb106d2e added a 'net rpc samdump' command for dumping the whole sam via
samsync operations (as a BDC)
-
Andrew Bartlett
6aa7aa00f3 Make samsync use popt -
Herb Lewis
92408c8220 fix generating protos for smbwrapper -
Andrew Tridgell
6352508c54 added a 'net ads lookup' command that does a CLDAP NetLogon query to a
win2000 server. It does seem to work, and win200 sends us a valid
reply, but we don't parse it yet. Maybe tomorrow :)
-
Simo Sorce
778985527c should make all platforms happy with popt -
Simo Sorce
42ae5eb826 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.
-
Andrew Bartlett
a91018dd02 Move tridge's getgrouplist() replacement function from replace.c to a new
'system_smbd.c' file, where it can link with become_root() and unbecome_root(),
and therefore avoiding some nasty 'it workes on linux' bugs.

(The replacement function is implemented in terms of initgroups(), which is
naturally only avaliable to root).

Andrew Bartlett
-
Tim Potter
dad31483b3 Merge of netbios namecache code from APPLIANCE_HEAD.
Tridge suggested a generic caching mechanism for Samba to avoid the
proliferation of little cache files hanging around limpet like in the
locks directory.  Someone should probably implement this at some
stage.
-
Gerald Carter
27618a5ca2 unresolved symbols fix for pam_smbpass from Steve L. -
Jim McDonough
ab0e863fcc Add lib/util_uuid.c to build. -