1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-30 13:18:05 +03:00
Commit Graph

1320 Commits

Author SHA1 Message Date
Jeremy Allison
61bb3093e3 Pidfile check can be read-only. Removed old ifdef in password.c
Jeremy.
(This used to be commit d82efc61ef)
2001-08-01 17:32:45 +00:00
Jeremy Allison
996719cce2 Added "use mmap" for HPUX.
Jeremy.
(This used to be commit 840802f106)
2001-07-30 22:21:31 +00:00
Jeremy Allison
f31a7ab1e2 uint -> uint32.
Jeremy.
(This used to be commit 3e3155812c)
2001-07-30 17:53:39 +00:00
Jeremy Allison
bd0eacb24c Fix invalid uid being used after logoff. Thanks to Nigel Williams
for this bug report.
Jeremy.
(This used to be commit 50d8e5b22f)
2001-07-28 01:46:47 +00:00
Jeremy Allison
4b28b5a1bb Fix for potential crash bug with bad fid.
Jeremy.
(This used to be commit 82f81c830d)
2001-07-28 01:26:44 +00:00
Simo Sorce
b99e314cfb better debug messages + fix typo in debug message
(This used to be commit b377f06fd9)
2001-07-26 22:05:51 +00:00
Jeremy Allison
08138a3244 Fix from Michael Davidson <md@caldera.com> for DEC OSF/1 ACLs (ie.
Digital UNIX).
Jeremy.
(This used to be commit 324ba0512e)
2001-07-26 21:16:39 +00:00
Jeremy Allison
e662983fbe Excellent patch from Anselm Kruis <A.Kruis@science-computing.de> to fix
problem with wrong token being used in current_user.
Jeremy.
(This used to be commit 2c7d2a1d53)
2001-07-25 18:07:36 +00:00
Andrew Tridgell
1d07607b39 we need to pull passwords in client charset for crypto to work
(This used to be commit 9a87d6f58f)
2001-07-25 13:25:31 +00:00
Andrew Tridgell
9de7c5e521 - don't try to print pointers
- removed some unused mangling code
(This used to be commit 36af1c0dc4)
2001-07-25 06:29:26 +00:00
Simo Sorce
1cbae7315f 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
(This used to be commit 7257d07563)
2001-07-24 20:02:48 +00:00
Jeremy Allison
76f36b8c36 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.
(This used to be commit c343e4f490)
2001-07-24 01:18:43 +00:00
Jeremy Allison
a9ab7eaa5d Fix case insensitive password change code.
Fixed crash bug with un-zeroed talloced memory.
Jeremy.
(This used to be commit eea1c30df2)
2001-07-23 22:06:05 +00:00
Andrew Bartlett
9cbe6e8166 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
(This used to be commit 7cb517329b)
2001-07-21 02:23:19 +00:00
Jeremy Allison
54068ae8f3 Tidied up calling yield_connection on connection allocation fail.
Restore debug message to level zero.
Jeremy.
(This used to be commit 0b13f495b3)
2001-07-17 22:04:46 +00:00
Jeremy Allison
c2aa4b762f Connection record not existing is not a debug level 0.
Jeremy.
(This used to be commit d7da59f54e)
2001-07-17 21:32:33 +00:00
Jeremy Allison
c6b51500af Fixes from Jens-Uwe.Walther@force.de to make the -l option behave
consistently.
Jeremy.
(This used to be commit f591ca9f25)
2001-07-17 20:42:59 +00:00
Simo Sorce
0cf44bb347 move the global_machine_password_needs_changing where we need it.
(This used to be commit 8a2f6fbacd)
2001-07-17 08:34:12 +00:00
Simo Sorce
e3fbb09ced Test if machine password has expired.
This test was lost somehow...
(This used to be commit 065d8f69d5)
2001-07-16 12:16:48 +00:00
Jeremy Allison
1f9a689f1f Toomas Soome's fix for joining a domain the old way.
Jeremy.
(This used to be commit 8db233c8b5)
2001-07-11 18:52:43 +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 d472ee3a69)
2001-07-10 02:28:17 +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 04f090c224)
2001-07-08 14:10:30 +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 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
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
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
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
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 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
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
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
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
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 Tridgell
59db9bcbf0 check for bad usernames early in session setup
(This used to be commit 657836599a)
2001-07-04 04:17:58 +00:00
Jeremy Allison
17a0a89c79 Ensure we correctly round down to 2 second boundary if dos filetime
set for a share.
Jeremy.
(This used to be commit 8f57233c0f)
2001-07-04 01:01:02 +00:00
Jeremy Allison
b96c379dae Remove the exit_server() calls that stop nmbd linking.
Jeremy.
(This used to be commit 110061ff5a)
2001-07-03 21:32:23 +00:00
Jeremy Allison
0eb28dc851 Fixed incorrect debug parameters for lock_pid.
Jeremy.
(This used to be commit 310d2af6b0)
2001-07-03 17:40:43 +00:00
Christopher R. Hertel
56b2a0c114 Very minor cleanup. I was looking for another problem and found some bits
of code that were unclear.

Chris -)-----
(This used to be commit c2977be340)
2001-07-02 16:25:00 +00:00
Jeremy Allison
5b69009b25 Fixed the nastiest locking bug to track down.... smb_pids are sent in the
lockingX calls - use that instead of smb_pid in the packet.
Jeremy.
(This used to be commit a3925cb9c6)
2001-07-02 02:42:41 +00:00
Simo Sorce
247acd5521 - fix bug in reply_nt- fix bug in reply_nt1
(This used to be commit 200110a3b4)
2001-07-01 10:39:37 +00:00
Jeremy Allison
d1f38ac531 Fixed the first locking error (test #8 found by locktest code from
Clarion locktest.
Jeremy.
(This used to be commit 5c42845b5b)
2001-06-30 01:59:48 +00:00
Jeremy Allison
e2ced932db Ensured all the system calls in msdfs.c go through the vfs layer.
Added vfs calls to symlink() and readlink() with appropriate configure
checks.
Jeremy.
(This used to be commit c24e6b41ea)
2001-06-29 22:32:24 +00:00
Tim Potter
f83f2cd4fa Win9x weirdness. When setting the named pipe handle state on a Unicode
server, Win9x only sends \PIPE instead of \PIPE\.  Looks suspiciously like
an off-by one bug in the Win9x dce/rpc pipe code.
(This used to be commit b4a9079833)
2001-06-29 01:58:48 +00:00
Jeremy Allison
629a59fe85 Always use DOMAIN\user first that this is the more specific case.
Jeremy.
(This used to be commit 52143c0853)
2001-06-26 06:06:42 +00:00
Andrew Bartlett
90498a10c7 Remove warning about trapdoor systems for non-root mode.
Andrew Bartlett
(This used to be commit b33000cdc0)
2001-06-26 03:45:45 +00:00
Jeremy Allison
31ab8ae3ff Fixed stupid typo that would stop trusted domains working.
Jeremy.
(This used to be commit fa721b4adf)
2001-06-25 19:08:30 +00:00
Andrew Tridgell
b95a294a08 fixed usage of socklen_t and also tidied up SIG_ATOMIC_T, using a typedef instead of a define
(This used to be commit e2ecff419f)
2001-06-25 02:53:13 +00:00
Andrew Tridgell
8b79a473fa - make the regresison test mode code build in by default. This should
allow us to have test targets without special configure options
- fixed make proto so that it actually does something
(This used to be commit 55109a7525)
2001-06-25 00:46:34 +00:00
Jeremy Allison
08bda36755 Log debug before and after netbios names copied so we know if they've been
changed.
Jeremy.
(This used to be commit f8c121c69c)
2001-06-23 20:01:23 +00:00