]>
git.ipfire.org Git - thirdparty/samba.git/log
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
but that is too much for one night
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.
Jeremy Allison [Sun, 26 Aug 2001 20:05:33 +0000 (20:05 +0000)]
Spaces -> Tabs.
Jeremy.
Jeremy Allison [Sun, 26 Aug 2001 19:39:40 +0000 (19:39 +0000)]
Ignore locks of length zero as they mean different things in Win32
and POSIX.
Jeremy.
Jeremy Allison [Sun, 26 Aug 2001 19:27:18 +0000 (19:27 +0000)]
Don't use CLEAR_IF_FIRST if opening read-only.
Jeremy.
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.
Volker Lendecke [Sun, 26 Aug 2001 18:26:40 +0000 (18:26 +0000)]
Change default 'name resolve order' to WINS before DNS.
Volker
Christopher R. Hertel [Sun, 26 Aug 2001 06:43:39 +0000 (06:43 +0000)]
Same as nmbd.c. These now test wins_srv_count() instead of lp_wins_server
to determine whether the 'wins server' parameter is set.
Christopher R. Hertel [Sun, 26 Aug 2001 06:24:03 +0000 (06:24 +0000)]
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.
Quick change to make room for WINS failover.
Christopher R. Hertel [Sun, 26 Aug 2001 06:01:46 +0000 (06:01 +0000)]
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.
Chris -)-----
Gerald Carter [Sun, 26 Aug 2001 05:13:49 +0000 (05:13 +0000)]
fixed typo
Christopher R. Hertel [Sun, 26 Aug 2001 04:16:51 +0000 (04:16 +0000)]
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.
Andrew Tridgell [Fri, 24 Aug 2001 21:09:38 +0000 (21:09 +0000)]
we now have all but the dreaded 0/0 lock working
Gerald Carter [Fri, 24 Aug 2001 20:34:57 +0000 (20:34 +0000)]
typo
Herb Lewis [Fri, 24 Aug 2001 20:32:01 +0000 (20:32 +0000)]
get rid of compiler warnings
Tim Potter [Fri, 24 Aug 2001 20:31:00 +0000 (20:31 +0000)]
More status32 conversions.
Jeremy Allison [Fri, 24 Aug 2001 20:20:08 +0000 (20:20 +0000)]
Re-added readbraw call to test with smbtorture. This code not yet
tested...
Jeremy.
Andrew Tridgell [Fri, 24 Aug 2001 20:11:26 +0000 (20:11 +0000)]
fixed level2 find first for unisys clients
Andrew Tridgell [Fri, 24 Aug 2001 20:11:09 +0000 (20:11 +0000)]
fixed handling of 139/445 in clients
Gerald Carter [Fri, 24 Aug 2001 19:58:28 +0000 (19:58 +0000)]
/tmp/cvsVTEaY5
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.
Andrew Tridgell [Fri, 24 Aug 2001 19:34:11 +0000 (19:34 +0000)]
tests for 0 length locks
Tim Potter [Fri, 24 Aug 2001 19:28:08 +0000 (19:28 +0000)]
Process the SAM/UAS change notification message.
Tim Potter [Fri, 24 Aug 2001 19:21:40 +0000 (19:21 +0000)]
Only register the #1b name if we are ROLE_DOMAIN_PDC rather than
lp_domain_master()
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.
Tim Potter [Fri, 24 Aug 2001 19:09:37 +0000 (19:09 +0000)]
Make domain_client_validate return a status code instead of a boolean.
Tim Potter [Fri, 24 Aug 2001 18:55:56 +0000 (18:55 +0000)]
Fixed incorrect debug.
Tim Potter [Fri, 24 Aug 2001 18:37:06 +0000 (18:37 +0000)]
Fixed typo in debug message.
Simo Sorce [Fri, 24 Aug 2001 18:29:37 +0000 (18:29 +0000)]
add a comment to make the code more readable
Tim Potter [Fri, 24 Aug 2001 17:15:54 +0000 (17:15 +0000)]
Set secure channel type depending on server role.
Herb Lewis [Fri, 24 Aug 2001 14:34:23 +0000 (14:34 +0000)]
fix missing )
Simo Sorce [Fri, 24 Aug 2001 07:51:59 +0000 (07:51 +0000)]
let admins also abort a shutdown
Jeremy Allison [Fri, 24 Aug 2001 07:32:51 +0000 (07:32 +0000)]
Fixed malloc -> talloc problems pointed out by Simo.
Jeremy
Andrew Tridgell [Fri, 24 Aug 2001 04:57:13 +0000 (04:57 +0000)]
allow for 0 range locks in locktest
Andrew Tridgell [Fri, 24 Aug 2001 04:56:33 +0000 (04:56 +0000)]
flush on a invalid fsp should give an error
Andrew Tridgell [Fri, 24 Aug 2001 04:55:28 +0000 (04:55 +0000)]
0 byte lock ranges ARE valid
Andrew Tridgell [Fri, 24 Aug 2001 04:53:39 +0000 (04:53 +0000)]
fixed shortname length in trans2 list
Herb Lewis [Fri, 24 Aug 2001 01:49:23 +0000 (01:49 +0000)]
get rid of old debug code and possible socket leak
Jeremy Allison [Thu, 23 Aug 2001 23:37:40 +0000 (23:37 +0000)]
Fix W2K profiles writing to a Samba PDC. Thanks to Microsoft for their help !
Jeremy.
Simo Sorce [Thu, 23 Aug 2001 23:25:34 +0000 (23:25 +0000)]
so let admins shutdown their samba servers remotely if they want :-)
Andrew Tridgell [Thu, 23 Aug 2001 23:16:42 +0000 (23:16 +0000)]
more minor torture updates
Andrew Tridgell [Thu, 23 Aug 2001 23:15:18 +0000 (23:15 +0000)]
use 32 bit locking if client doesn't do 64 bit
Jeremy Allison [Thu, 23 Aug 2001 22:58:24 +0000 (22:58 +0000)]
Some W2k info.
Jeremy.
Gerald Carter [Thu, 23 Aug 2001 22:58:00 +0000 (22:58 +0000)]
merge from 2.2
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.
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.
Andrew Bartlett [Thu, 23 Aug 2001 18:13:56 +0000 (18:13 +0000)]
Fix up some unused variables and functions, fix up formatting
Simo Sorce [Thu, 23 Aug 2001 18:12:47 +0000 (18:12 +0000)]
compile fix
Tim Potter [Thu, 23 Aug 2001 18:05:44 +0000 (18:05 +0000)]
Fix for filers sending -1 for the maximum read request length on the
LSA pipe.
Andrew Tridgell [Thu, 23 Aug 2001 16:25:57 +0000 (16:25 +0000)]
better error reporting for servers that don't do port 445
Andrew Tridgell [Thu, 23 Aug 2001 16:24:29 +0000 (16:24 +0000)]
the beginnings of a TRANS2 scanner
Tim Potter [Thu, 23 Aug 2001 02:55:42 +0000 (02:55 +0000)]
Added copyright for me and AB.
Andrew Tridgell [Wed, 22 Aug 2001 22:39:39 +0000 (22:39 +0000)]
added port 445 support to our client code
Andrew Bartlett [Wed, 22 Aug 2001 19:11:55 +0000 (19:11 +0000)]
A few changes:
drop paramaters:
status
utmp hostname
change session code to always record each vuid current on the server. The sessionid struct is no longer packed, as I couldn't get that to work ;-)
change smbstatus to show this info and less of the connections.tdb info (its not actualy that accurate).
I'll get swat doing some of this shortly.
Simo Sorce [Wed, 22 Aug 2001 16:10:28 +0000 (16:10 +0000)]
some %things are not expanded properly in get share info levels
Jean-François Micouleau [Wed, 22 Aug 2001 13:08:01 +0000 (13:08 +0000)]
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.
Jeremy I don't think I broke anything ;-)
J.F.
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.
Volker Lendecke [Wed, 22 Aug 2001 04:45:05 +0000 (04:45 +0000)]
Mention 'delete veto files' in 'veto files' description
Volker
Jeremy Allison [Wed, 22 Aug 2001 04:39:37 +0000 (04:39 +0000)]
Remove unneeded lp_talloc_free().
Jeremy.
Andrew Tridgell [Wed, 22 Aug 2001 03:18:24 +0000 (03:18 +0000)]
added ERRbadmcb
Andrew Tridgell [Wed, 22 Aug 2001 03:15:33 +0000 (03:15 +0000)]
minor bug fixes to smbtorture
Tim Potter [Wed, 22 Aug 2001 03:10:58 +0000 (03:10 +0000)]
Link in smbdes routines for new wbinfo authentication stuff.
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.
Andrew Tridgell [Wed, 22 Aug 2001 02:47:38 +0000 (02:47 +0000)]
a fix for directory listing with the dave/thursby client
Volker Lendecke [Wed, 22 Aug 2001 02:27:59 +0000 (02:27 +0000)]
Fixed typo.
Volker
Gerald Carter [Wed, 22 Aug 2001 01:48:45 +0000 (01:48 +0000)]
merge from 2.2
Gerald Carter [Wed, 22 Aug 2001 01:18:48 +0000 (01:18 +0000)]
merge from 2.2
Jeremy Allison [Wed, 22 Aug 2001 01:06:27 +0000 (01:06 +0000)]
Missed '\' at eol...
Jeremy.
Jeremy Allison [Wed, 22 Aug 2001 01:01:37 +0000 (01:01 +0000)]
Tidyup fixes for fcntl spin problem.
Jeremy.
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.
Herb Lewis [Tue, 21 Aug 2001 23:56:04 +0000 (23:56 +0000)]
sync with 2.2 branch
Jeremy Allison [Tue, 21 Aug 2001 18:33:58 +0000 (18:33 +0000)]
Missed uninitialized variable return for del_share_mode().
Jeremy.
Andrew Tridgell [Tue, 21 Aug 2001 03:50:31 +0000 (03:50 +0000)]
string terminate in mkdir
Tim Potter [Tue, 21 Aug 2001 03:05:27 +0000 (03:05 +0000)]
Added cli_lsa_open_policy2()
Tim Potter [Tue, 21 Aug 2001 03:04:41 +0000 (03:04 +0000)]
Distinguish between NT informational and error codes.
Andrew Bartlett [Tue, 21 Aug 2001 02:58:07 +0000 (02:58 +0000)]
Add a new option to disable our paranoid server check.
Defaults to ON, ie checking
Volker Lendecke [Tue, 21 Aug 2001 02:11:41 +0000 (02:11 +0000)]
Fixed a little typo.
Volker
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.
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.
Andrew Bartlett [Mon, 20 Aug 2001 22:01:44 +0000 (22:01 +0000)]
Add comment to clarify why we call this twice.
Andrew Tridgell [Mon, 20 Aug 2001 21:11:55 +0000 (21:11 +0000)]
two fixes for NT clients -> share level Samba server
Andrew Tridgell [Mon, 20 Aug 2001 18:05:12 +0000 (18:05 +0000)]
allow for the NULL in make_nmb_name()
Andrew Tridgell [Mon, 20 Aug 2001 17:38:37 +0000 (17:38 +0000)]
added -b option
Andrew Tridgell [Mon, 20 Aug 2001 05:15:26 +0000 (05:15 +0000)]
a bunch of fixes from the s\7f flight to seattle
in particular:
- fixed NT status code for a bunch of ops
- fixed handling of protocol levels in ms_fnmatch
Jeremy Allison [Sun, 19 Aug 2001 18:25:14 +0000 (18:25 +0000)]
Realloc fix.
Jeremy.
Jeremy Allison [Sun, 19 Aug 2001 18:19:04 +0000 (18:19 +0000)]
Realloc fixes.
Jeremy.
Jeremy Allison [Sun, 19 Aug 2001 18:01:08 +0000 (18:01 +0000)]
Realloc fixes.
Jeremy.
Jeremy Allison [Sun, 19 Aug 2001 17:54:10 +0000 (17:54 +0000)]
Realloc fixes.
Jeremy.
Jeremy Allison [Sun, 19 Aug 2001 17:42:34 +0000 (17:42 +0000)]
More Realloc fixes.
Jeremy.
Jeremy Allison [Sun, 19 Aug 2001 17:34:37 +0000 (17:34 +0000)]
Realloc fix.
Jeremy.
Anton Blanchard [Sun, 19 Aug 2001 13:45:38 +0000 (13:45 +0000)]
Add missing gcc memory barriers, this bug showed up when doing a
heavy netbench run. :)
Rework ppc spinlocks to be faster.
Jeremy Allison [Sat, 18 Aug 2001 19:57:48 +0000 (19:57 +0000)]
More Realloc fixes.
Jeremy.
Jeremy Allison [Sat, 18 Aug 2001 19:43:28 +0000 (19:43 +0000)]
More Realloc fixes.
Jeremy.
Jeremy Allison [Fri, 17 Aug 2001 18:16:42 +0000 (18:16 +0000)]
Use tparam not tdata when reallocing params to make clearer.
Jeremy.
Jean-François Micouleau [Fri, 17 Aug 2001 17:07:40 +0000 (17:07 +0000)]
more useful debug messages and check if the size are non null.
that fix the notification backend channel for spoolss.
J.F.
Andrew Bartlett [Fri, 17 Aug 2001 08:57:58 +0000 (08:57 +0000)]
OK, so not freeing these was a mistake. I'll try to be less exuberent next
time :-)
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...)
Andrew Bartlett [Fri, 17 Aug 2001 08:12:33 +0000 (08:12 +0000)]
Move admin user check into a helper function.
Formatting fixes.
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.
Andrew Bartlett [Fri, 17 Aug 2001 07:47:10 +0000 (07:47 +0000)]
Restore a debug I think I dropped earlier