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

640 Commits

Author SHA1 Message Date
Gerald Carter
dd1bd197a3 more merges from SAMBA_2_2
(This used to be commit fea895c5c41d51e6b06f0bcf8e0c95b29df89e76)
2002-06-26 23:26:10 +00:00
Andrew Bartlett
a96bff6e4e And fix another missing ubiqx...
(Didn't have smbmnt compiled in originally, so it missed my tests)
(This used to be commit 184be390a842221470cdc20f05eb3dc14de5b534)
2002-06-25 13:18:09 +00:00
Andrew Bartlett
de40355080 Fix the smbmnt compile.
(This used to be commit 987633021f13d2c3571fbe2c1f9ff86a14c046e6)
2002-06-25 11:38:26 +00:00
Andrew Bartlett
0327428f27 Break up samba's object dependencies, and its prototype includes.
Now smbclient, net, and swat use their own proto files - now the global
proto.h

The change to libads/kerberos.c was to break up the dependency on secrets.c -
we want to be able to write an ADS client that doesn't need local secrets.

I have other breakups in the works - I will remove the dependency of
rpc_parse on passdb (and therefore secrets.c) shortly.

(NOTE:  This patch does *not* break up includes.h, or other such forbidden
actions).

Andrew Bartlett
(This used to be commit edb41dad2df0ae3db364dbc3896cc75956262edf)
2002-06-25 02:29:09 +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 68841ae76289369c0b2e9e964bad1746e6e2cc8b)
2002-06-25 00:10:06 +00:00
Andrew Bartlett
ba73192c3c When adding popt to an application, you need to ensure it builds on non-popt
platforms :-)
(This used to be commit bda8f12ff551f24a6f2a8e8f7a120b2e0e45a269)
2002-06-15 23:55:52 +00:00
Andrew Bartlett
0142f47299 Add the missing makefile from previous commit
(This used to be commit a07f2c08ff145f414618165739fe7f2d203931e8)
2002-06-15 11:25:00 +00:00
Andrew Bartlett
39d0a1b832 Move the code from lib/util_sid.c that deals with the global_sam_sid into
a file that is linked with the passdb.

This is to avoid linking insanity when this global becomes a self-initing
function.
(This used to be commit 743afd96cb54b4966e3afad11ea987f968b98651)
2002-06-07 12:45:51 +00:00
Gerald Carter
9595b60fe2 enable building of shared libsmbclient
(This used to be commit 24f127a58f66de9b8733bc3261212d01926d0a87)
2002-06-06 14:01:19 +00:00
Andrew Bartlett
e46a6ecc69 Given Jeremy's positive response, and a lack of one from tpot, I'll commit
this:

More code cleanup - this lot a bit more dodgy than the last:

The aim is to trim pwd_cache down to size.  Its overly complex, and a
pain to deal with.  With a header comment like this:

'obfusticaion is planned'

I think it deserved to die (at least partly).

This was being done to allow 'cli_establish_connection' to die - its
functionality has been replaced by cli_full_connection(), which does
not duplicate code everywhere for creating names etc.

This also removes the little 'init' fucntions for the various pipes,
becouse they were only used in one place, and even then it was dodgy.

(I've reworked smbcacls not to use anonymous connections any more, as
this will (should) fail with a 'restrict anonymous' PDC).

This allowed me to remove cli_pipe_util.c, which was calling
cli_establish_connection.

tpot:  I'm not sure what direction you were going with the client stuff,
and you may well have been wanting the init functions.  If thats the case,
give me a yell and I'll reimplement them against cli_full_connection.

Andrew Bartlett
(This used to be commit fa67e4626bed623333c571e76e06ccd52cba5cc5)
2002-05-23 14:02:17 +00:00
Andrew Bartlett
c2b867038a Fix a silly memory (getpnam_alloc()) leak spotted by Elrond, and move
the DATA_BLOB code into its own file.

It would be nice to go over some of the other util.c functions, and check
that we still use them all, and that we use them in more than one place.

Andrew Bartlett
(This used to be commit d0ea70fce55df9a5b5878f50fce7bc115ffb37c2)
2002-05-22 11:25:43 +00:00
Andrew Bartlett
f9d2db36f3 Remove unused files.
The size of samba going down for once :-)

Andrew Bartlett
(This used to be commit 00ef4aad88f4ba9f2e242578c37933eac001c351)
2002-05-18 13:50:59 +00:00
Andrew Bartlett
58e1fe62cc A few things in this commit:
cleanup some of the code in net_rpc_join re const warnings and
fstrings.

Passdb:

Make the %u and %U substituions in passdb work.
This is done by declaring these paramters to be 'const' and doing
the substitution manually.  I'm told this is us going full circle,
but I can't really see a better way.

Finally these things actually seem to work properly...

Make the lanman code use the pdb's recorded values for homedir etc
rather than the values from lp_*()

Add code to set the plaintext password in the passdb, where it can
decide how to store/set it.  For use with a future 'ldap password
change' option, or somthing like that...

Add pdb_unix, so as to remove the 'not in passdb' special cases from the
local_lookup_*() code.  Quite small, as it uses the new 'struct passwd ->
SAM_ACCOUNT' code that is now in just one place.  (also used by pdb_smbpasswd)

Other:
Fix up the adding of [homes] at session setup time to actually pass
the right string, that is the unix homedir, not the UNC path.

Fix up [homes] so that for winbind users is picks the correct name.
(bad interactions with the default domain code previously)

Change the rpc_server/srv_lsa_nt.c code to match NT when for the
SATUS_NONE_MAPPED reply:  This was only being triggered on
no queries, now it is on the 'no mappings' (ie all mappings failed).
Checked against Win2k.

Policy Question:  Should SID -> unix_user.234/unix_group.364 be
considered a mapping or not?  Currently it isn't.

Andrew Bartlett
(This used to be commit c28668068b5a3b3cf3c4317e5fb32ec9957f3e34)
2002-05-18 05:52:52 +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 b04561d3fd3ee732877790fb4193b20ad72a75f8)
2002-05-17 12:42:39 +00:00
Martin Pool
3ffa277186 Makes winbindd_proto handling consistent with the other header files,
so that at least "make clean; make all" doesn't fail.

It's still not safe for parallel builds, i.e. "make clean; make -j3
all" will probably crash, but "make clean; make proto && make -j3 all"
seems OK.  I'm not sure if it is possible to solve that and still
support ancient non-GNU versions of Make.
(This used to be commit 4d202c19997d4219e7f607a725123d5606b9bd8a)
2002-05-17 06:59:04 +00:00
Gerald Carter
92245e1ffc more solaris compile fixes (for smbwrapper)
(This used to be commit fbefb479fb3bd86affffa1bd567565f1797ae329)
2002-05-15 12:34:33 +00:00
Gerald Carter
0e6247187b merge from SAMBA_2_2: remove -symbolic from pam_smbpass linker flags
(This used to be commit 090b94250bcfeb3e867493f8e372760aa8503fe6)
2002-05-09 04:44:00 +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 19b9b50d9039afe614284aaf379f9f1078e2e307)
2002-05-09 04:08:00 +00:00
Martin Pool
00ed98af37 Fix $MAKE
(This used to be commit e5544de99872803843e8f35bb79a8bae0cfa95ff)
2002-04-30 05:44:25 +00:00
Martin Pool
8e5ef527cc Two small fixes for "make proto": wbrepld was never getting rebuilt
because it wasn't killed by delheaders; and there was a race in
delheaders with make -j.
(This used to be commit a615811f57f2827dd1b9cd23ad3e34e5a9fb22da)
2002-04-30 05:11:52 +00:00
Andrew Tridgell
a67b5ac62f a new "dual daemon" operating mode for winbindd
this mode improves the response time of winbindd by having a
background process update the cache while the forground process
responds to queries from cache.

You can enable this mode using the -B command line option. It is quite
experimental, which is why it is not the default.
(This used to be commit c0feff97eefdf5a70e5973e247b395dbdf5d2ef2)
2002-04-24 04:11:27 +00:00
Andrew Bartlett
81408df9cf Fix the build on platforms that use our internal popt.
(This used to be commit 3261a210dd0f89e3a8b8524747fa182bcc84bf9f)
2002-04-13 11:45:33 +00:00
Andrew Tridgell
3067ec21fb - added a mangling test suite that measures the collision rate on
randomised filenames

- fixed several mangling bugs that the test suite pointed out
(This used to be commit 858fa7efc34f6e7cdf8500900aed3f7943c91348)
2002-04-12 03:26:19 +00:00
Andrew Tridgell
714518e550 this adds a completely new hash based mangling scheme
the hash for this scheme is *much* larger (approximately 31 bits) and
the code is written to be very fast, correctly handling multibyte
while not doing any actual multi-byte conversions in the vast majority
of cases

you can select this scheme using "mangling method = hash2", although I
may make it the default if it works out well.
(This used to be commit bb173c1a7e2408ced967ebac40b5e3f852ccd3a1)
2002-04-11 09:56:38 +00:00
Andrew Tridgell
9cd0306baa This split the mangling code up to allow for the possibility of multiple
mangling implementation, selectable using "mangling method = " in smb.conf

It also tidies the interface a little, although it is still nasty.
(This used to be commit be23d87a178e7d0691e7d942adf89bb3d2d533c2)
2002-04-11 02:20:56 +00:00
Jim McDonough
562706b32b add utils/net_help.c to bin/net build
(This used to be commit f2a0e56b3c7b4bee21fc05efec0c0c738db44287)
2002-04-05 01:36:50 +00:00
Tim Potter
05f973df82 Make bin/nsstest as part of torture target.
(This used to be commit dbb4dfcef74f21ef5badaa7a6f4cad52cf317ffb)
2002-04-04 22:58:56 +00:00
Jim McDonough
e5a617127a Add libads/ldap_user.c to build for ads user management.
(This used to be commit a1cdcdb138ddf05387fa65897ffe5b34aee75ae0)
2002-04-04 02:52:09 +00:00
John Terpstra
bb3f7f49b1 Added build option for "everything". Changed build options for libsmbclient.
(This used to be commit 32f292cc587d3db002490a609be29b9e20c00fd4)
2002-03-30 20:26:50 +00:00
Herb Lewis
93af72fe45 merge winbindd WINS changes from 2.2
(This used to be commit 205399dc17e464360b0152538329b9e111b0e7f4)
2002-03-29 15:37:39 +00:00
Martin Pool
cf60c28ea8 Roll back proto.h changes -- to hard to do them portably. Leave
Herb's installdat change in.
(This used to be commit 39a6b12fdc6a45cd51d3c11785bffeedd9fc78cd)
2002-03-25 01:29:55 +00:00
Herb Lewis
b47fcfca3e cut and paste inserted spaces instead of tab. Some versions of make don't
like this
(This used to be commit c86d266d6eb665a6182f10d8acf80aadb3b6e39e)
2002-03-22 02:39:35 +00:00
Herb Lewis
87eb1ffd55 make install should also install the default dat files from codepages
directory so we don't keep getting these stupid error messages about
incorrect size for valid.dat upcase.dat and lowcase.dat
(This used to be commit 4af0c7a93f626dde33fd737618c2b786f83046c7)
2002-03-21 23:42:54 +00:00
Martin Pool
3bc3a31639 Take out autobuild dependency on proto.h; breaks some proprietary Makes.
(This used to be commit aa279932456eff8c6fce00cf01e3f62536573f14)
2002-03-19 12:13:02 +00:00
Martin Pool
7154d14a85 Refactor for systems like Solaris that cannot handle wildcards on the
right side of a dependency line.
(This used to be commit 87f2e3c30d11bcf0cecb7c32dc5f01755d181ad6)
2002-03-19 11:46:31 +00:00
Martin Pool
1f62003cd7 Change the Makefile to rebuild proto.h as necessary -- note that this
does not imply that all source will be rebuilt when prototypes change,
merely that the prototypes will be updated.

make proto, clean, delheaders, headers, etc all behave equivalently to
before.

  Intended new behaviour for proto.h, whenever source is being
  compiled:

  If proto.h does not exist, it is built.

  If any source files have changed since proto.h was last checked
  (.proto.check), then proto.h is checked.  If there are no actual
  changes since last time, its mtime is not changed, but we do
  remember the time at which it was checked.

  Whenever we try to build a .o, we need to check the headers are up
  to date.  However, rebuilding the prototypes does not imply
  rebuilding all object files.

  Also to allow people to build on machines without Awk, we never try
  to use it unless a source file has changed.  I guess if we wanted,
  we could have lack of Awk only cause a warning, not failure.

The point of all of this is to be easier on people who don't
understand or forget to type "make proto", and to reduce the chance of
build breakage by having prototypes out of sync.

I also rolled back JF's changes to put proto.h into builddir rather
than srcdir.  There are good arguments in both directions, but since
we keep proto.h in CVS, it seems important that the up-to-date copy by
in srcdir where it can be checked back in.  If people are fussed about
having srcdir be readonly you could change this -- but since proto.h
is only rebuilt when there are changes, it's not a big deal.

I also fixed an apparent race condition in "make headers" that would
make it unsafe if you did 'make -j2', and made 'make clean' not kill
proto.h, since people may not be able to rebuild it.

I reckon there's nothing gnumake-specific here but we shall see.

I also have this great idea about rewriting libtool in C++...
(This used to be commit 8a61a810e5a29050b0cf242d317c7cc00329517b)
2002-03-19 07:26:18 +00:00
Tim Potter
a4cce223d6 Added dos_errstr() function. Not all errors in list yet.
(This used to be commit ddb5753e36b8c5efb48ce5c82c16d970fb8e76b6)
2002-03-17 06:04:15 +00:00
Andrew Bartlett
7451e73ae2 Move the directory creation process outside the 'installbin.sh' script, and
into its own.  The 'installdirs' makefile entry didn't do anything on my laptop,
so it has been replaced with the section from installbin.sh.

This also fixes the bug that we ignored the setting of $(PRIVATEDIR) when
making the directories.

Finally, link pam_winbind with .po objects only, not a mix of .o and .po
(as per Don Mccall's request).

Andrew Bartlett
(This used to be commit c7a883df28da9dd6fb88198df22c4d78bf8acd8b)
2002-03-13 01:21:02 +00:00
Jim McDonough
fb361dc503 Aack. Don't change too much. vfs.c still won't build, but this should fix some other build stuff I screwed up.
(This used to be commit 4490ad340cff1ea2a5b519150ad5c49bcea23766)
2002-03-12 15:21:04 +00:00
John Terpstra
89d998547d Fix up location of libsmbclient.so so it always goes to /usr/lib.
(This used to be commit e508b07fe766c679d6fc2a940bec72b9b2a61b01)
2002-03-12 06:48:48 +00:00
John Terpstra
9ec285c568 Added wins entry.
(This used to be commit a4be3b7b93ac95d16c01519a57fd9c57b20ffcae)
2002-03-12 04:18:51 +00:00
Jim McDonough
3bc38669ef Another program converted to popt...smbstatus this time.
(This used to be commit 00d3a064f16101fecebaeaaabaf841f0a5c91523)
2002-03-11 21:37:01 +00:00
Andrew Tridgell
cfbbf73677 yipee! Finally put in the patch from Alexey Kotovich
<a.kotovich@sam-solutions.net> that adds the security decsriptor code
for ADS workstation accounts

thanks for your patience Cat, and thanks to Andrew Bartlett for
extensive reviews and suggestions about this code.
(This used to be commit 6891393b5db868246fe52ff62b3dc6aa5ca6f726)
2002-03-10 01:54:44 +00:00
Andrew Tridgell
487c0f051b build tdbbackup by default
(This used to be commit 8836015467158de6947689300ead74f1e9044805)
2002-03-09 00:09:18 +00:00
Jim McDonough
f920d9e3c5 Update Makefile.in for rpcclient build on machines without libpopt or requested build of included popt.
(This used to be commit 4b4430f1c56a5c9a0d53dd8b624022644d8061e1)
2002-03-07 19:55:35 +00:00
Andrew Tridgell
cb6c9ef475 added a tdb backup utility
when complete, this will be used to backup critical tdbs at samba
startup and possibly periodically while Samba is running so that if
tdb corruption is caused by a power failure Samba can restore from the
backup.
(This used to be commit f619330082712cab72ec2d2ab76d67b8e9f3194c)
2002-03-07 18:58:33 +00:00
Andrew Bartlett
6ca1c47dfd Missed the Makefile.in update...
(This used to be commit 4f887f01e52b04d4cf4517aaefeae7042170a511)
2002-03-01 03:28:10 +00:00
Jeremy Allison
2853554cdb Attempt to fix Solaris winbind nss build.
Jeremy.
(This used to be commit 10e3e6855be93b8c4d97d67a063d92ccee391fec)
2002-03-01 01:03:06 +00:00
Andrew Bartlett
b07cdd68b5 This apparently makes winbind work on Solaris again
(This used to be commit b179a5d85f2e364b26191adf0cb61fcf17ae7687)
2002-02-27 11:50:24 +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 d6d18b70f0c377344b0b3d9df5a11d209793bfe0)
2002-02-22 02:47:53 +00:00