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

1333 Commits

Author SHA1 Message Date
Andrew Bartlett
23b6772a24 Try to set the socket options early for some OSs (like Sol 8) where they
can't be set after the listen().

Andrew Bartlett
-
Andrew Bartlett
08e99f4c12 Some better debugs for our security=server code. I want to track down why
we occasionally don't make the connection to the server.
-
Jeremy Allison
e4a295b730 Always return NT_STATUS_DISK_FULL, even for quota errors.
Jeremy.
-
Jeremy Allison
3bf2419f4b Added fixes to return correct error codes on space allocation fail.
Jeremy.
-
Jeremy Allison
d1e7cf6073 Correctly report amount written in debug when allocation space.
Jeremy.
-
Jeremy Allison
b7bd512d9a Added Gerald's lanman printing only change to HEAD.
Jeremy.
-
Jeremy Allison
298595e8cb Fix for getting allocate_file_space to return the correct errno.
Jeremy.
-
Andrew Bartlett
9fff946cf1 Record the NT_STATUS constant rather than its number in the logfiles
Fix typo in lmhosts manpage
-
Jeremy Allison
352a02bf5c Extra debug to see what errno is on write fail.
Jeremy.
-
Jeremy Allison
28b4ee1eba The write zero bytes is an allocate, not set EOF.
Jeremy.
-
Andrew Bartlett
9746ad12bd This is the fix for the PAM bug I probably introduced in the previous commit,
which I will confirm once I can find a box it would break on in the first place.

(this is the pam accounts as nobody thing we had with 2.2.0)

Andrew Bartlett
-
Andrew Bartlett
b30b6202f3 This is my 'Authentication Rewrite' version 1.01, mostly as submitted to
samba-technical a few weeks ago.

The idea here is to standardize the checking of user names and passwords,
thereby ensuring that all authtentications pass the same standards.  The
interface currently implemented in as

nt_status = check_password(user_info, server_info)

where user_info contains (mostly) the authentication data, and server_info
contains things like the user-id they got, and their resolved user name.

The current ugliness with the way the structures are created will be killed
the next revision, when they will be created and malloced by creator functions.

This patch also includes the first implementation of NTLMv2 in HEAD, but which
needs some more testing.  We also add a hack to allow plaintext passwords to be
compared with smbpasswd, not the system password database.

Finally, this patch probably reintroduces the PAM accounts bug we had in
2.2.0, I'll fix that once this hits the tree.  (I've just finished testing
it on a wide variety of platforms, so I want to get this patch in).
-
Jeremy Allison
0b052f103e Added "strict allocate" per share parameter. This causes actual on-disk allocation
to be done. Without it just does the ftruncate.
Jeremy.
-
Jeremy Allison
d82efc61ef Pidfile check can be read-only. Removed old ifdef in password.c
Jeremy.
-
Jeremy Allison
840802f106 Added "use mmap" for HPUX.
Jeremy.
-
Jeremy Allison
3e3155812c uint -> uint32.
Jeremy.
-
Jeremy Allison
50d8e5b22f Fix invalid uid being used after logoff. Thanks to Nigel Williams
for this bug report.
Jeremy.
-
Jeremy Allison
82f81c830d Fix for potential crash bug with bad fid.
Jeremy.
-
Simo Sorce
b377f06fd9 better debug messages + fix typo in debug message -
Jeremy Allison
324ba0512e Fix from Michael Davidson <md@caldera.com> for DEC OSF/1 ACLs (ie.
Digital UNIX).
Jeremy.
-
Jeremy Allison
2c7d2a1d53 Excellent patch from Anselm Kruis <A.Kruis@science-computing.de> to fix
problem with wrong token being used in current_user.
Jeremy.
-
Andrew Tridgell
9a87d6f58f we need to pull passwords in client charset for crypto to work -
Andrew Tridgell
36af1c0dc4 - don't try to print pointers
- removed some unused mangling code
-
Simo Sorce
7257d07563 Convert other parameters (read list, write list, valid users...) to the P_LIST format.
changed functions to use list instead of strings
addedd lp_list_substitute function
-
Jeremy Allison
c343e4f490 We were making an assumption in the oplock
break code path that was invalid (ie. we were assuming
we could infer a non-levelII oplock when such an oplock
was detected - this may no longer be valid once we've
processed the break process dealing with the break will
change the state of it anyway.
This prevents the state where we get the following packet
trace :

client                      server
NTcreate ->
                         <- NTcreate resp
NTcreate ->
                         <- break to level II
ok - broken ->
                         <- break to none

Thanks to Alan Romeril for providing the trace that allowed
me to track this down.

Jeremy.
-
Jeremy Allison
eea1c30df2 Fix case insensitive password change code.
Fixed crash bug with un-zeroed talloced memory.
Jeremy.
-
Andrew Bartlett
7cb517329b This patch fixes up a few issues where we would do lookups in the local system
on username we already know are perfectly valid, and in their final form.  In
particular we don't want to do a lookup for DOMAIN\nobody, it just does not
make sense, nor should we do map_username and the like if the username is as
specified in the vuid - we have done it already.

Andrew Bartlett
-
Jeremy Allison
0b13f495b3 Tidied up calling yield_connection on connection allocation fail.
Restore debug message to level zero.
Jeremy.
-
Jeremy Allison
d7da59f54e Connection record not existing is not a debug level 0.
Jeremy.
-
Jeremy Allison
f591ca9f25 Fixes from Jens-Uwe.Walther@force.de to make the -l option behave
consistently.
Jeremy.
-
Simo Sorce
8a2f6fbacd move the global_machine_password_needs_changing where we need it. -
Simo Sorce
065d8f69d5 Test if machine password has expired.
This test was lost somehow...
-
Jeremy Allison
8db233c8b5 Toomas Soome's fix for joining a domain the old way.
Jeremy.
-
Andrew Tridgell
d472ee3a69 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
-
Andrew Bartlett
04f090c224 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
-
Andrew Tridgell
d5097b2f20 fixed some unicode and LANMAN2 bugs in trans2 find first/next -
Andrew Bartlett
4f7b2f51b0 You can't dump_data() a function pointer...
Andrew Bartlett
-
Jeremy Allison
ed5a1f70c6 Wrapped dlerror() in the same way as the other dlxxx() calls.
Jeremy.
-
Andrew Tridgell
4b35a3494c 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
-
Jeremy Allison
af5b649b01 Fix race where wrong action (created or opened) could be returned.
Jeremy.
-
Jeremy Allison
7efaefdf60 Fix for rabbit-pellet mode. Chris please test this. Thanks for Dave CB
for help on this.
Jeremy.
-
Andrew Tridgell
970236ee99 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?
-
Andrew Tridgell
a1dee993cb fixed a bug in the parameters SMBctemp uses in open_file_shared() -
Andrew Tridgell
3b9eb528f5 use alpha_strcpy on the domain as it comes off the wire -
Jean-François Micouleau
04575ff17b allow to use usrmgr/svrmgr tools in win95
pretty cool
-
Andrew Tridgell
c41fc06376 strchr and strrchr are macros when compiling with optimisation in gcc, so we can't redefine them. damn. -
Andrew Tridgell
debb471267 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.
-
Andrew Tridgell
657836599a check for bad usernames early in session setup -
Jeremy Allison
8f57233c0f Ensure we correctly round down to 2 second boundary if dos filetime
set for a share.
Jeremy.
-
Jeremy Allison
110061ff5a Remove the exit_server() calls that stop nmbd linking.
Jeremy.
-