Andrew Tridgell [Mon, 27 Aug 2001 08:19:43 +0000 (08:19 +0000)]
converted smbd to use NTSTATUS by default
major changes include:
- added NSTATUS type
- added automatic mapping between dos and nt error codes
- changed all ERROR() calls to ERROR_DOS() and many to ERROR_NT()
these calls auto-translate to the client error code system
- got rid of the cached error code and the writebmpx code
We eventually will need to also:
- get rid of BOOL, so we don't lose error info
- replace all ERROR_DOS() calls with ERROR_NT() calls
Andrew Bartlett [Mon, 27 Aug 2001 03:56:09 +0000 (03:56 +0000)]
As per plug-fest discussions this paramater no longer defaults to the value
of add user script.
(This used to be commit 9e0c9a99f6ca01cd6a0ee3084f85e1c36b11d7c3)
Jeremy Allison [Sun, 26 Aug 2001 19:11:33 +0000 (19:11 +0000)]
bzero is not used (deprecated) as it's a BSDism.
Syscalls must check for -1, not < 0 (POSIX).
Formating (tab) fixups.
Jeremy.
(This used to be commit 7263949584a5e01fd5316770861a7550bd3f1155)
Same as nmbd.c. These now test wins_srv_count() instead of lp_wins_server
to determine whether the 'wins server' parameter is set.
(This used to be commit 5b975d3a9cea39e9992a9b556b8a6d9d3ec14807)
Instead of checking lp_wins_server() to see if a WINS server was specified,
nmbd now calls wins_srv_count(). This returns the number of WINS servers
specified in the 'wins server' parameter. The return value will be zero if
'wins server' is not specified.
Small changes to get ready for adding WINS failover to smbd and clients.
My plan is to change the lp_wins_server() function to lp_wins_server_list().
My reason being: With WINS failover the 'wins server' parameter may take a
list of WINS server names/IPs instead of just one. If it's a list, then
calling lp_wins_server() won't give you what you expect (that is, a single
WINS server name or IP). Instead, the functions in wins_srv.c should be
used. You can get either the name or IP of the 'current' working WINS
server in the list.
Fussing with debug lines in open_socket_in(). I cleaned up some slightly
funky code that was simply setting a local int to 0 or 1 and also added
calls to strerror() in some of the debug lines.
The use of the dlevel parameter in this function is a little awkward.
There should probably be some comments about it in the source.
(This used to be commit 3031e7acdc4eac99a736f45161dee9bf81c1cc87)
Tim Potter [Fri, 24 Aug 2001 19:52:01 +0000 (19:52 +0000)]
Fixed debug in cli_establish_connection() - print out the called name on
connection failure rather than the calling name.
(This used to be commit 946f6eb9320c9897942adee8b513d8caaa3232c0)
Herb Lewis [Fri, 24 Aug 2001 19:17:43 +0000 (19:17 +0000)]
fixes big endian unistring problems. Need to check that it didn't
break little-endian machines.
(This used to be commit 0f08e79030419b778c1229712c98b839faaf734f)
Andrew Bartlett [Thu, 23 Aug 2001 20:45:23 +0000 (20:45 +0000)]
Fix to only send the status32 error for status32 clients, not to other
nt_smb clients. As spotted by Thursby.
(This used to be commit 22de76a920671614144babac9f589419532d8671)
Tim Potter [Thu, 23 Aug 2001 19:06:20 +0000 (19:06 +0000)]
Fixed detection of CUPS. We need to check for the presence of the cups
header files as well as libcups.
(This used to be commit 2dbb41a7b88e7fad63579111aaab4a1cd28c54d5)
The DELL powervault 705 is sending a tcon&x with the service name being
"share" instead of "\\server\share".
Fix that. Still not able to get the user list but that's something else.
Herb Lewis [Wed, 22 Aug 2001 04:58:00 +0000 (04:58 +0000)]
force checking of log size after 200 smbd in a row or after 30 sec with no
smbds. This should fix one case of logs not getting rotated properly.
We may need to test this to make sure there is no big performance hit from
the extra stat call.
(This used to be commit 2501fe7c0436fc00f35271e2dce17fe541e97424)
Tim Potter [Wed, 22 Aug 2001 02:48:16 +0000 (02:48 +0000)]
Added another authentication interface to winbindd. The Challenge Response
Authentication Protocol (CRAP) takes a tuple of (username, random
challenge, encrypted lm password, encrypted nt password) where the
passwords are encrypted with the random challenge ala ntlmssp.
(This used to be commit 11f72a78e3a16bbb17b576d80b47a9eb818ee428)
Jeremy Allison [Wed, 22 Aug 2001 00:29:40 +0000 (00:29 +0000)]
Fixed the (incorrect) paranioa fix I put in for the fcntl lock spin.
Don't delete a share mode that failed to remove the oplock (doh!),
just set the oplock entry to zero....
Jeremy.
(This used to be commit fe4aa720181a43f7a636ca029680fab0c836b968)
Volker Lendecke [Tue, 21 Aug 2001 01:25:45 +0000 (01:25 +0000)]
This is Jeremy pretending to be Volker, 'cos the
link from Seattle is having problems.
I've added 3 things here to work on the fcntl spin
problem.
1). Check *all* tdb return codes... :-).
2). If we're asking ourselves to break an oplock, and we can't
find a fsp pointer that matches the entry, this is a *logic bug*
and we should abort and panic so someone with gdb can pick up
the pieces.
3). After we've broken an oplock, ensure that the entry itself
has been removed, and if not remove it ourselves. This should
not be neccessary in a correctly working environmen,t, but will
provide an added layer of robustness in error situations.
4). I hate german keyboards :-) :-).
Jeremy.
(This used to be commit 1c94fa80646f9e31377fbb41332fe4780f550cab)
Jeremy Allison [Mon, 20 Aug 2001 22:13:53 +0000 (22:13 +0000)]
Ensure we are very explicit about what we're comparing when
we're comparing structures (ie. don't just do a memcmp). I
don't think this will fix the fcntl spin issue, but it's a
"just in case" change.
Jeremy.
(This used to be commit 41066208ad8ca20d35a32bdf9ad934e11465c8f1)
Andrew Tridgell [Mon, 20 Aug 2001 05:15:26 +0000 (05:15 +0000)]
a bunch of fixes from the s\7fflight to seattle
in particular:
- fixed NT status code for a bunch of ops
- fixed handling of protocol levels in ms_fnmatch
(This used to be commit 3eba9606f71f90bfd9820af26f8676277ed22390)
Andrew Bartlett [Fri, 17 Aug 2001 08:44:04 +0000 (08:44 +0000)]
Move the claim_connection stuff till a little later in the process.
(You don't have to clean up somthing you haven't done yet...)
(This used to be commit ba76564c2a06bf7feefdaf9ef06cbf77c776b6e6)
Andrew Bartlett [Fri, 17 Aug 2001 07:48:25 +0000 (07:48 +0000)]
Move read only check into a helper funcion. Ensure conn->service is set
before we use it to find a share's details.
(This used to be commit 7dc716f174c38e73b8e6d07130a1bc39f4499ce3)