1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

5783 Commits

Author SHA1 Message Date
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 ebd2f9b07c)
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 d5097b2f20)
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 dc99b9ddf8)
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 7a478e050f)
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 8df8e84144)
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 4f7b2f51b0)
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 dc588ee87a)
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 79574c07ed)
2001-07-06 22:54:49 +00:00
Andrew Tridgell
a732bcd9d2 fixed strrchr_m
(This used to be commit f4359b5f7f)
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 e78a114425)
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 ed5a1f70c6)
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 5059fbbb76)
2001-07-06 17:40:16 +00:00
Andrew Tridgell
6bd8340781 formatting fixes
(This used to be commit 67ca6cd8eb)
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 e9c53606de)
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 6b4559506d)
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 95a9a1814f)
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 4b35a3494c)
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 c3a21fc0f2)
2001-07-06 03:18:54 +00:00
Andrew Tridgell
85a310c7f3 fixed inetd operation as non-root
(This used to be commit 9a9da44455)
2001-07-06 02:25:03 +00:00
Andrew Tridgell
9a0397cf69 added some comments and removed an unnecessary check
(This used to be commit 25c4b3f193)
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 af5b649b01)
2001-07-05 23:37:09 +00:00
Jeremy Allison
3a40f80a94 Fix for enumerating large numbers of users.
Jeremy.
(This used to be commit c8c138c1fb)
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 7efaefdf60)
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 8452300c76)
2001-07-05 12:28:01 +00:00
Andrew Tridgell
ca3b64fca4 removed an unreachable statement
(This used to be commit 6503f53abe)
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 805c20452e)
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 970236ee99)
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 974790e45e)
2001-07-05 08:24:03 +00:00
Andrew Tridgell
9c743f9b8b added line-feed at end of templates
(This used to be commit fe5d38780f)
2001-07-05 06:51:47 +00:00
Andrew Tridgell
8ffcec213e fixed a bug in the parameters SMBctemp uses in open_file_shared()
(This used to be commit a1dee993cb)
2001-07-05 06:39:15 +00:00
Andrew Tridgell
6668abac5e fixed compilation of masktest on AIX
(This used to be commit 832a91bbe6)
2001-07-05 05:53:08 +00:00
Andrew Tridgell
61e6d867c4 use alpha_strcpy on DNS names
(This used to be commit f6f9e95dd9)
2001-07-05 04:44:09 +00:00
Andrew Tridgell
55bd0867d8 use alpha_strcpy on the domain as it comes off the wire
(This used to be commit 3b9eb528f5)
2001-07-05 04:34:50 +00:00
Andrew Tridgell
fb50cf54e5 optimised the 7 bit case for utf8 conversion
(This used to be commit 0c61e54f15)
2001-07-05 00:57:42 +00:00
Andrew Tridgell
ee3119cee6 make sure we reset the shift state on error for charsets like SJIS
(This used to be commit 42648a7aad)
2001-07-05 00:04:30 +00:00
Jean-François Micouleau
6b97f76be8 allow to use usrmgr/svrmgr tools in win95
pretty cool
(This used to be commit 04575ff17b)
2001-07-04 21:57:03 +00:00
Jean-François Micouleau
0a33bdc7bd unicode string length is twice longer ;-)
(This used to be commit d39d8429d1)
2001-07-04 18:57:16 +00:00
Andrew Tridgell
22325f6fdb added builtin support for UTF8
(This used to be commit 76d83e7f70)
2001-07-04 15:08:30 +00:00
Andrew Tridgell
681c3100ed more portability fixes
(This used to be commit bf81826851)
2001-07-04 14:41:06 +00:00
Andrew Tridgell
33b550e47b portability fixes
(This used to be commit 7a5c24c219)
2001-07-04 12:16:24 +00:00
Andrew Tridgell
f51260a65e got rid of __FUNCTION__ debug
(This used to be commit 815ca75274)
2001-07-04 08:03:47 +00:00
Andrew Tridgell
0225d0c26d fixed uninitialised variable
(This used to be commit a03992f19b)
2001-07-04 07:50:54 +00:00
Andrew Tridgell
749bf905d5 we don't need the codepage sources any more
(This used to be commit 8dbee134b9)
2001-07-04 07:42:57 +00:00
Andrew Tridgell
7e288e8325 we don't need the codepages any more
(This used to be commit fa18e842f8)
2001-07-04 07:41:37 +00:00
Andrew Tridgell
5a2b87d810 missed a couple of strchr calls
(This used to be commit 57e7df8ae5)
2001-07-04 07:39:01 +00:00
Andrew Tridgell
527e824293 strchr and strrchr are macros when compiling with optimisation in gcc, so we can't redefine them. damn.
(This used to be commit c41fc06376)
2001-07-04 07:36:09 +00:00
Andrew Tridgell
87fbb7092b The big character set handling changeover!
This commit gets rid of all our old codepage handling and replaces it with
iconv. All internal strings in Samba are now in "unix" charset, which may
be multi-byte. See internals.doc and my posting to samba-technical for
a more complete explanation.
(This used to be commit debb471267)
2001-07-04 07:15:53 +00:00
Andrew Bartlett
9e9e73303e This brings HEAD into line with SAMBA_2_2, they now both use bindir.
Andrew Bartlett
(This used to be commit cfd81e62c8)
2001-07-04 06:31:15 +00:00
Andrew Tridgell
a594519d28 removed some debug code
(This used to be commit 1f6240daae)
2001-07-04 04:39:52 +00:00
Andrew Tridgell
59db9bcbf0 check for bad usernames early in session setup
(This used to be commit 657836599a)
2001-07-04 04:17:58 +00:00