1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

5855 Commits

Author SHA1 Message Date
Andrew Bartlett
e4b6f641e8 This fixes security=domain, which has been broke since the big charset
changeover.  For my own sainity I have created a new function to fill out both
the header and buffer for a string in an RPC struct.  This DOES NOT take a
length argument, only the actual string to be placed.

The RPC code is currently littered with code that does init_uni_hdr() followed
immidiatly by init_unistr2(), and often the length argument is wrong.  (It was
for the code I changed, even before the charset stuff).  Another bug where we
made strings AT LEAST MAX_UNICODE_LEN long hid this bug.

This works for loopback connections to Samba, and can't be any more broke than
it was before :-).  (We had double and revese conversions, fun...).

In particular this makes us multibyte complient.

In any case, if there are no objections I will slowly convert other bits of
code to the same system.
(This used to be commit cf1d1cd9d6362f6e32ed9c2f6d2f6f25c47705ad)
2001-07-10 17:02:02 +00:00
Christopher R. Hertel
973a78c2db Fix from John Malmberg. When I added the additional information to the
debug block that reports multiple query responses I did not notice that
the local answer_ip variable was only selectively set.

Chris -)-----
(This used to be commit 22ea0770d87b2faece2e5dfc098ccf27f4da155f)
2001-07-10 16:10:04 +00:00
Andrew Bartlett
809e32e8df Try to avoid clashes with OpenSSL when built --with-ssl, they also have md5.h,
but with a more 'interesting' licence.
(This used to be commit 9c9fe2674de0f35da67ba2c3b59861f087932934)
2001-07-10 10:27:52 +00:00
Richard Sharpe
cb5de0e176 Change the order of the -fPIC and -KPIC tests to ensure that UnixWare
is handled.
(This used to be commit 7631bade9c52c7ebde0c7170a5d4d4ade6bb723c)
2001-07-10 07:14:24 +00:00
Andrew Tridgell
575e609c3b much better handling of broken DNS servers
we no longer lookup our own name when we create a socket in
open_socket_in(). That makes things work much better with the
broken DNS server at VA
(This used to be commit a83d506e5cd6cef23298211b2fe4e0e25c9e5f48)
2001-07-10 02:53:48 +00:00
Andrew Tridgell
6baa40e3fe added winbind_exclude_domain() so smbd can tell the winbind client
code not to do lookups for a particular domain. This allows winbind to
operate on a Samba PDC
(This used to be commit d472ee3a690fb6db03fd4536e4093a18fc37ddbb)
2001-07-10 02:28:17 +00:00
Tim Potter
65e373ec07 Removed unused local variables.
(This used to be commit fa1dfb681b2c7e2de59d6b439ceea738d6f11aff)
2001-07-10 00:02:40 +00:00
Jean-François Micouleau
0a33cb45c1 implement:
LSA_ENUM_PRIVS
	LSA_PRIV_GET_DISPNAME
	LSA_ENUM_ACCOUNTS
	LSA_OPENACCOUNT
	LSA_ENUMPRIVSACCOUNT
	LSA_GETSYSTEMACCOUNT

It's a work in progress. nobody should expect it to work

	J.F.
(This used to be commit 3056357cd8d4b2460f73ba8a8931a143f07fa2a6)
2001-07-09 18:32:54 +00:00
Jean-François Micouleau
62d399f3cf add query user info level 20 (for RAS)
add query dominfo level 5
some cleanup, don't free talloced memory.
implement delete domain and local groups.

	J.F.
(This used to be commit 3f14dda2a21850edfd540be2624867e5f70a382c)
2001-07-09 18:25:40 +00:00
Jean-François Micouleau
db77d64a20 when converting ascii to unicode, if the ascii string is NULL, don't
convert it, rpcstr_push doesn't like it.
(This used to be commit a8006e6f3eb1e06f4d48727de31e1229d6eef58a)
2001-07-09 18:21:03 +00:00
Jean-François Micouleau
5512332cdb split the nt_drivers.tdb in 3 separate tdb files. Should speed-up lookups
J.F.
(This used to be commit c08e22713ea4ddbc4951dc8dcc40609eb0039ddb)
2001-07-09 18:19:04 +00:00
Jean-François Micouleau
554a455d40 when retrieving by sid fill also the map.sid field
(This used to be commit f47797fa9595fb19d9e29ef43c5d0135268db455)
2001-07-09 18:17:00 +00:00
Jean-François Micouleau
647a680b00 allow to rename an NT group
(This used to be commit 42fc4f4154ccf2e93322da6b0b234f8f846991dc)
2001-07-09 18:15:28 +00:00
Andrew Tridgell
282d295a37 fixed anonymous login in rpcclient
(This used to be commit b2a4a62b5ed581bf89fe20cdf427c1740fd73266)
2001-07-08 20:28:17 +00:00
Andrew Tridgell
81393e6fda removed remnants of libtool
(This used to be commit abe01facea99f4cda76330d1265edde32b3c0a86)
2001-07-08 19:18:06 +00:00
Andrew Tridgell
b4230fb93a improved the command line parsing of rpcclient
(This used to be commit 29d8f9bcb3f55365740a5bbafc75dd2dffc107a9)
2001-07-08 18:25:56 +00:00
Andrew Tridgell
955247fa38 allow winbindd to run as non-root so we can test it more easily
(This used to be commit 001129e2153633dbd079889b11331e9c27786e5b)
2001-07-08 18:25:19 +00:00
Andrew Tridgell
3ad0801dd3 formatting fix
(This used to be commit 3dc9fd076a2c4c352d51f7b9dfa8b570a231c9e2)
2001-07-08 18:23:53 +00:00
Andrew Tridgell
03efd16d34 added sec_initial_uid() function so we can ask if a file is owned by
the initial uid
(This used to be commit 9449544428c9c3153f9e757c57bccda382fa2882)
2001-07-08 18:22:46 +00:00
Andrew Tridgell
43dd159134 fixed the auto-initialisation of the iconv descriptors
(This used to be commit 66632782c583356550446638a832cc46a99f9f62)
2001-07-08 18:22:04 +00:00
Andrew Bartlett
8326666b7c Update tests, start testing password server code, now I have it working and
know what it does...

Andrew Bartlett
(This used to be commit 51903dbfee2fa2b5d94b1d16ebdbb3356e13884d)
2001-07-08 14:24:29 +00:00
Andrew Bartlett
5b8d230e39 This removes unused paramaters from various authtication functions, and should
not change behaviour.

This should make my later diffs smaller, where I actualy start cleaning up this
mess...

Andrew Bartlett
(This used to be commit 04f090c224bb7ac3b53c430a591fce1fc939a81c)
2001-07-08 14:10:30 +00:00
Andrew Bartlett
04932c05bf Fix the loading of configuration files using the include syntax.
We had a problem where if a % macro in the smb.conf could be ignored if the
various files it pointed to had the same time-stamp.

This changes the code to insted check that the both the time-stamp and the
substituted filename are the same over each change.

This was picked up only becouse the build-farm automaticly generates its config
files, and hence gets identical timestamps.

(Why this doesn't happen all the time I'm not entirly sure, somthing to do with
the 'test' paramater to reload_services(), but this fixes this problem).

Andrew Bartlett
(This used to be commit ebd2f9b07c89cce505e821f1caaa6817bbb26db9)
2001-07-08 13:02:16 +00:00
Andrew Tridgell
1cc543ffa1 fixed some unicode and LANMAN2 bugs in trans2 find first/next
(This used to be commit d5097b2f20c55ddcf4ae8da4d1d0a2fe91938a6b)
2001-07-07 21:24:00 +00:00
Andrew Tridgell
74e9921628 fixed some unicode and LANMAN2 bugs in trans2 find first
(This used to be commit dc99b9ddf847c210c72921ba1dedcdc34fd32aab)
2001-07-07 21:23:32 +00:00
Andrew Bartlett
28a53730a9 Add a new paramater: add machine script
This allows the administrator to define different scripts for adding unix users
and automaticly adding machines.  If it is not defined, it falls back to the
value of 'add user script'.

Andrew Bartlett
(This used to be commit 7a478e050f3ab33bd0141a58c698d748f0d2b204)
2001-07-07 08:45:39 +00:00
Andrew Bartlett
7be19ad10f Add backend encryption support for NTLMv2.
The leg-work for this was done by the folks at samba-tng.org, I'm just bringing
it accross to HEAD.

The MD5 implementation is seperatly derived, and does not have the copyright
problems that the one in TNG has.

Also add const to a few places where it makes sence.

Andrew Bartlett
(This used to be commit 8df8e841445dfe09fc7a06bb55d12adc3fecb345)
2001-07-07 07:00:15 +00:00
Andrew Bartlett
1c3c995221 You can't dump_data() a function pointer...
Andrew Bartlett
(This used to be commit 4f7b2f51b071ee02b9a2ac7decd9fa7d9e078c1a)
2001-07-07 06:44:50 +00:00
Andrew Bartlett
cd41846aa5 Update smbtorture in line with SAMBA_2_2
Andrew Bartlett
(This used to be commit dc588ee87ae16e207324d42f926d7889b70362de)
2001-07-07 06:21:32 +00:00
Jeremy Allison
429b3c3cc5 Password changing via PAM works now. DONT CHANGE THIS UNLESS YOU RE-TEST !!!!!!
Jeremy.
(This used to be commit 79574c07ed5de7194a17c9ee8d189370d8e42bcc)
2001-07-06 22:54:49 +00:00
Andrew Tridgell
a732bcd9d2 fixed strrchr_m
(This used to be commit f4359b5f7ff891d7fcb5772b589756376ae5d412)
2001-07-06 22:32:57 +00:00
Jeremy Allison
da9fb5ba38 Don't try and open tdb secrets file in non-root/local mode.
Jeremy.
(This used to be commit e78a114425129d980f79db812dbea368123913ed)
2001-07-06 21:53:32 +00:00
Jeremy Allison
9df203f876 Wrapped dlerror() in the same way as the other dlxxx() calls.
Jeremy.
(This used to be commit ed5a1f70c6d155788b62e9e6e8c5d97a5ca0858d)
2001-07-06 18:45:59 +00:00
Jeremy Allison
df68e652d6 Added JF's fix for max_entries being 0.
Jeremy.
(This used to be commit 5059fbbb76ffa24658a878080a36e355df4894f5)
2001-07-06 17:40:16 +00:00
Andrew Tridgell
6bd8340781 formatting fixes
(This used to be commit 67ca6cd8eb20621d3f5926e19822b479ac80cb9c)
2001-07-06 11:50:45 +00:00
Andrew Tridgell
c5cc721dc3 check for initialisation in convert_string()
otherwise initial load in smb.conf can fail
(This used to be commit e9c53606de237f91712bb9d2a9fdf84b80bce38d)
2001-07-06 11:50:07 +00:00
Tim Potter
2036ce8a5d A program to display a tree of domains, servers and shares similar to the
network neighbourhood graph.  Still needs a bit of work.
(This used to be commit 6b4559506d1434e6114d9707dd11fdc8ee8d54be)
2001-07-06 10:49:34 +00:00
Andrew Tridgell
4b7c807085 fixed a silly bug in the internal UTF8 implementation
(This used to be commit 95a9a1814f1a1ac07c316cc920c7493a86d5a09b)
2001-07-06 08:59:50 +00:00
Andrew Tridgell
7a58c800ed fixed bug where we looked at the first byte of a password to determine
if the password is blank. That ain't valid with encrypted passwords!

Jeremy, this changes the semantics of session setup. We no longer
automatically set guest=True when the client happens to choose their
username == the guest username. Instead we rely on the map_to_guest
code. I'm pretty sure this is now the right thing, but please look at
it carefully before putting it in 2.2

This is the bug that was causing the build farm to sometimes
fail. Basically we failed every 256 attempts - ie. when the first byte
of the encrypted password happened to be 0
(This used to be commit 4b35a3494c53fe38532fc12cf1c57e1a3715ad0f)
2001-07-06 04:08:24 +00:00
Andrew Tridgell
2251221550 got rid of insanely verbose debug messages on startup
(This used to be commit c3a21fc0f21b3f493031cb0c9a6a990528b276d9)
2001-07-06 03:18:54 +00:00
Andrew Tridgell
85a310c7f3 fixed inetd operation as non-root
(This used to be commit 9a9da44455fc35cb9b1625ffefd12a9c5fe48d6b)
2001-07-06 02:25:03 +00:00
Andrew Tridgell
9a0397cf69 added some comments and removed an unnecessary check
(This used to be commit 25c4b3f19315bdef57041da79c12271b72015701)
2001-07-06 00:14:56 +00:00
Jeremy Allison
aa91def29f Fix race where wrong action (created or opened) could be returned.
Jeremy.
(This used to be commit af5b649b017f703a14a69f77a9067efb9c6a8269)
2001-07-05 23:37:09 +00:00
Jeremy Allison
3a40f80a94 Fix for enumerating large numbers of users.
Jeremy.
(This used to be commit c8c138c1fbb49799a2dd4c6e781bd89f51c0c0c5)
2001-07-05 22:36:25 +00:00
Jeremy Allison
aff5f5c158 Fix for rabbit-pellet mode. Chris please test this. Thanks for Dave CB
for help on this.
Jeremy.
(This used to be commit 7efaefdf60e1880cf4ab97e1901248abd00acd79)
2001-07-05 18:07:46 +00:00
Andrew Bartlett
34b8f0b33d Allow user to specify CFLAGS even when using configure.developer
Andrew Bartlett
(This used to be commit 8452300c769b2b046fc4b2fd078e7da0b93cd316)
2001-07-05 12:28:01 +00:00
Andrew Tridgell
ca3b64fca4 removed an unreachable statement
(This used to be commit 6503f53abe2642b002d8c9c64a2e0534c2b39b8c)
2001-07-05 11:46:36 +00:00
Andrew Bartlett
9fa590b832 Allow us to vary the log-level, so we can run at level 1 normally,
and push it to 10 when we fail (we redo the test).

Also disable the server-level security testing till it know what it does

Andrew Bartlett
(This used to be commit 805c20452e98c5e3d3fb24537ce722d4318ffa90)
2001-07-05 11:34:50 +00:00
Andrew Tridgell
c9291d02c1 this fixes the failure of MS office on VFAT partitions on Linux
The problem is that ftruncate can't expand on VFAT, but it can on
ext2. That means our autoconf test is useless. I have recoded it to
use the alternative to ftruncate when then sys_ftruncate fails.

Jeremy, do you want this for 2.2.1?
(This used to be commit 970236ee9926b64c0b39bd8a36b2a9317206873c)
2001-07-05 10:33:10 +00:00
Tim Potter
005582d1b5 Renamed formal parameter fd to fnum because we're talking about SMB file
handles, not unix ones.
(This used to be commit 974790e45e6774a0e8ca3f8bb73ea941457e0866)
2001-07-05 08:24:03 +00:00