]> git.ipfire.org Git - thirdparty/samba.git/log
thirdparty/samba.git
24 years agoconverted smbd to use NTSTATUS by default
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

24 years agoAs per plug-fest discussions this paramater no longer defaults to the value
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.

24 years agoSpaces -> Tabs.
Jeremy Allison [Sun, 26 Aug 2001 20:05:33 +0000 (20:05 +0000)] 
Spaces -> Tabs.
Jeremy.

24 years agoIgnore locks of length zero as they mean different things in Win32
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.

24 years agoDon't use CLEAR_IF_FIRST if opening read-only.
Jeremy Allison [Sun, 26 Aug 2001 19:27:18 +0000 (19:27 +0000)] 
Don't use CLEAR_IF_FIRST if opening read-only.
Jeremy.

24 years agobzero is not used (deprecated) as it's a BSDism.
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.

24 years agoChange default 'name resolve order' to WINS before DNS.
Volker Lendecke [Sun, 26 Aug 2001 18:26:40 +0000 (18:26 +0000)] 
Change default 'name resolve order' to WINS before DNS.

Volker

24 years agoSame as nmbd.c. These now test wins_srv_count() instead of lp_wins_server
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.

24 years agoInstead of checking lp_wins_server() to see if a WINS server was specified,
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.

24 years agoSmall changes to get ready for adding WINS failover to smbd and clients.
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 -)-----

24 years agofixed typo
Gerald Carter [Sun, 26 Aug 2001 05:13:49 +0000 (05:13 +0000)] 
fixed typo

24 years agoFussing with debug lines in open_socket_in(). I cleaned up some slightly
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.

24 years agowe now have all but the dreaded 0/0 lock working
Andrew Tridgell [Fri, 24 Aug 2001 21:09:38 +0000 (21:09 +0000)] 
we now have all but the dreaded 0/0 lock working

24 years agotypo
Gerald Carter [Fri, 24 Aug 2001 20:34:57 +0000 (20:34 +0000)] 
typo

24 years agoget rid of compiler warnings
Herb Lewis [Fri, 24 Aug 2001 20:32:01 +0000 (20:32 +0000)] 
get rid of compiler warnings

24 years agoMore status32 conversions.
Tim Potter [Fri, 24 Aug 2001 20:31:00 +0000 (20:31 +0000)] 
More status32 conversions.

24 years agoRe-added readbraw call to test with smbtorture. This code not yet
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.

24 years agofixed level2 find first for unisys clients
Andrew Tridgell [Fri, 24 Aug 2001 20:11:26 +0000 (20:11 +0000)] 
fixed level2 find first for unisys clients

24 years agofixed handling of 139/445 in clients
Andrew Tridgell [Fri, 24 Aug 2001 20:11:09 +0000 (20:11 +0000)] 
fixed handling of 139/445 in clients

24 years ago/tmp/cvsVTEaY5
Gerald Carter [Fri, 24 Aug 2001 19:58:28 +0000 (19:58 +0000)] 
/tmp/cvsVTEaY5

24 years agoFixed debug in cli_establish_connection() - print out the called name on
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.

24 years agotests for 0 length locks
Andrew Tridgell [Fri, 24 Aug 2001 19:34:11 +0000 (19:34 +0000)] 
tests for 0 length locks

24 years agoProcess the SAM/UAS change notification message.
Tim Potter [Fri, 24 Aug 2001 19:28:08 +0000 (19:28 +0000)] 
Process the SAM/UAS change notification message.

24 years agoOnly register the #1b name if we are ROLE_DOMAIN_PDC rather than
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()

24 years agofixes big endian unistring problems. Need to check that it didn't
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.

24 years agoMake domain_client_validate return a status code instead of a boolean.
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.

24 years agoFixed incorrect debug.
Tim Potter [Fri, 24 Aug 2001 18:55:56 +0000 (18:55 +0000)] 
Fixed incorrect debug.

24 years agoFixed typo in debug message.
Tim Potter [Fri, 24 Aug 2001 18:37:06 +0000 (18:37 +0000)] 
Fixed typo in debug message.

24 years agoadd a comment to make the code more readable
Simo Sorce [Fri, 24 Aug 2001 18:29:37 +0000 (18:29 +0000)] 
add a comment to make the code more readable

24 years agoSet secure channel type depending on server role.
Tim Potter [Fri, 24 Aug 2001 17:15:54 +0000 (17:15 +0000)] 
Set secure channel type depending on server role.

24 years agofix missing )
Herb Lewis [Fri, 24 Aug 2001 14:34:23 +0000 (14:34 +0000)] 
fix missing )

24 years agolet admins also abort a shutdown
Simo Sorce [Fri, 24 Aug 2001 07:51:59 +0000 (07:51 +0000)] 
let admins also abort a shutdown

24 years agoFixed malloc -> talloc problems pointed out by Simo.
Jeremy Allison [Fri, 24 Aug 2001 07:32:51 +0000 (07:32 +0000)] 
Fixed malloc -> talloc problems pointed out by Simo.
Jeremy

24 years agoallow for 0 range locks in locktest
Andrew Tridgell [Fri, 24 Aug 2001 04:57:13 +0000 (04:57 +0000)] 
allow for 0 range locks in locktest

24 years agoflush on a invalid fsp should give an error
Andrew Tridgell [Fri, 24 Aug 2001 04:56:33 +0000 (04:56 +0000)] 
flush on a invalid fsp should give an error

24 years ago0 byte lock ranges ARE valid
Andrew Tridgell [Fri, 24 Aug 2001 04:55:28 +0000 (04:55 +0000)] 
0 byte lock ranges ARE valid

24 years agofixed shortname length in trans2 list
Andrew Tridgell [Fri, 24 Aug 2001 04:53:39 +0000 (04:53 +0000)] 
fixed shortname length in trans2 list

24 years agoget rid of old debug code and possible socket leak
Herb Lewis [Fri, 24 Aug 2001 01:49:23 +0000 (01:49 +0000)] 
get rid of old debug code and possible socket leak

24 years agoFix W2K profiles writing to a Samba PDC. Thanks to Microsoft for their help !
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.

24 years agoso let admins shutdown their samba servers remotely if they want :-)
Simo Sorce [Thu, 23 Aug 2001 23:25:34 +0000 (23:25 +0000)] 
so let admins shutdown their samba servers remotely if they want :-)

24 years agomore minor torture updates
Andrew Tridgell [Thu, 23 Aug 2001 23:16:42 +0000 (23:16 +0000)] 
more minor torture updates

24 years agouse 32 bit locking if client doesn't do 64 bit
Andrew Tridgell [Thu, 23 Aug 2001 23:15:18 +0000 (23:15 +0000)] 
use 32 bit locking if client doesn't do 64 bit

24 years agoSome W2k info.
Jeremy Allison [Thu, 23 Aug 2001 22:58:24 +0000 (22:58 +0000)] 
Some W2k info.
Jeremy.

24 years agomerge from 2.2
Gerald Carter [Thu, 23 Aug 2001 22:58:00 +0000 (22:58 +0000)] 
merge from 2.2

24 years agoFix to only send the status32 error for status32 clients, not to other
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.

24 years agoFixed detection of CUPS. We need to check for the presence of the cups
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.

24 years agoFix up some unused variables and functions, fix up formatting
Andrew Bartlett [Thu, 23 Aug 2001 18:13:56 +0000 (18:13 +0000)] 
Fix up some unused variables  and functions, fix up formatting

24 years agocompile fix
Simo Sorce [Thu, 23 Aug 2001 18:12:47 +0000 (18:12 +0000)] 
compile fix

24 years agoFix for filers sending -1 for the maximum read request length on the
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.

24 years agobetter error reporting for servers that don't do port 445
Andrew Tridgell [Thu, 23 Aug 2001 16:25:57 +0000 (16:25 +0000)] 
better error reporting for servers that don't do port 445

24 years agothe beginnings of a TRANS2 scanner
Andrew Tridgell [Thu, 23 Aug 2001 16:24:29 +0000 (16:24 +0000)] 
the beginnings of a TRANS2 scanner

24 years agoAdded copyright for me and AB.
Tim Potter [Thu, 23 Aug 2001 02:55:42 +0000 (02:55 +0000)] 
Added copyright for me and AB.

24 years agoadded port 445 support to our client code
Andrew Tridgell [Wed, 22 Aug 2001 22:39:39 +0000 (22:39 +0000)] 
added port 445 support to our client code

24 years agoA few changes:
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.

24 years agosome %things are not expanded properly in get share info levels
Simo Sorce [Wed, 22 Aug 2001 16:10:28 +0000 (16:10 +0000)] 
some %things are not expanded properly in get share info levels

24 years agoThe DELL powervault 705 is sending a tcon&x with the service name being
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.

24 years agoforce checking of log size after 200 smbd in a row or after 30 sec with no
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.

24 years agoMention 'delete veto files' in 'veto files' description
Volker Lendecke [Wed, 22 Aug 2001 04:45:05 +0000 (04:45 +0000)] 
Mention 'delete veto files' in 'veto files' description

Volker

24 years agoRemove unneeded lp_talloc_free().
Jeremy Allison [Wed, 22 Aug 2001 04:39:37 +0000 (04:39 +0000)] 
Remove unneeded lp_talloc_free().
Jeremy.

24 years agoadded ERRbadmcb
Andrew Tridgell [Wed, 22 Aug 2001 03:18:24 +0000 (03:18 +0000)] 
added ERRbadmcb

24 years agominor bug fixes to smbtorture
Andrew Tridgell [Wed, 22 Aug 2001 03:15:33 +0000 (03:15 +0000)] 
minor bug fixes to smbtorture

24 years agoLink in smbdes routines for new wbinfo authentication stuff.
Tim Potter [Wed, 22 Aug 2001 03:10:58 +0000 (03:10 +0000)] 
Link in smbdes routines for new wbinfo authentication stuff.

24 years agoAdded another authentication interface to winbindd. The Challenge Response
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.

24 years agoa fix for directory listing with the dave/thursby client
Andrew Tridgell [Wed, 22 Aug 2001 02:47:38 +0000 (02:47 +0000)] 
a fix for directory listing with the dave/thursby client

24 years agoFixed typo.
Volker Lendecke [Wed, 22 Aug 2001 02:27:59 +0000 (02:27 +0000)] 
Fixed typo.

Volker

24 years agomerge from 2.2
Gerald Carter [Wed, 22 Aug 2001 01:48:45 +0000 (01:48 +0000)] 
merge from 2.2

24 years agomerge from 2.2
Gerald Carter [Wed, 22 Aug 2001 01:18:48 +0000 (01:18 +0000)] 
merge from 2.2

24 years agoMissed '\' at eol...
Jeremy Allison [Wed, 22 Aug 2001 01:06:27 +0000 (01:06 +0000)] 
Missed '\' at eol...
Jeremy.

24 years agoTidyup fixes for fcntl spin problem.
Jeremy Allison [Wed, 22 Aug 2001 01:01:37 +0000 (01:01 +0000)] 
Tidyup fixes for fcntl spin problem.
Jeremy.

24 years agoFixed the (incorrect) paranioa fix I put in for the fcntl lock spin.
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.

24 years agosync with 2.2 branch
Herb Lewis [Tue, 21 Aug 2001 23:56:04 +0000 (23:56 +0000)] 
sync with 2.2 branch

24 years agoMissed uninitialized variable return for del_share_mode().
Jeremy Allison [Tue, 21 Aug 2001 18:33:58 +0000 (18:33 +0000)] 
Missed uninitialized variable return for del_share_mode().
Jeremy.

24 years agostring terminate in mkdir
Andrew Tridgell [Tue, 21 Aug 2001 03:50:31 +0000 (03:50 +0000)] 
string terminate in mkdir

24 years agoAdded cli_lsa_open_policy2()
Tim Potter [Tue, 21 Aug 2001 03:05:27 +0000 (03:05 +0000)] 
Added cli_lsa_open_policy2()

24 years agoDistinguish between NT informational and error codes.
Tim Potter [Tue, 21 Aug 2001 03:04:41 +0000 (03:04 +0000)] 
Distinguish between NT informational and error codes.

24 years agoAdd a new option to disable our paranoid server check.
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

24 years agoFixed a little typo.
Volker Lendecke [Tue, 21 Aug 2001 02:11:41 +0000 (02:11 +0000)] 
Fixed a little typo.

Volker

24 years agoThis is Jeremy pretending to be Volker, 'cos the
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.

24 years agoEnsure we are very explicit about what we're comparing when
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.

24 years agoAdd comment to clarify why we call this twice.
Andrew Bartlett [Mon, 20 Aug 2001 22:01:44 +0000 (22:01 +0000)] 
Add comment to clarify why we call this twice.

24 years agotwo fixes for NT clients -> share level Samba server
Andrew Tridgell [Mon, 20 Aug 2001 21:11:55 +0000 (21:11 +0000)] 
two fixes for NT clients -> share level Samba server

24 years agoallow for the NULL in make_nmb_name()
Andrew Tridgell [Mon, 20 Aug 2001 18:05:12 +0000 (18:05 +0000)] 
allow for the NULL in make_nmb_name()

24 years agoadded -b option
Andrew Tridgell [Mon, 20 Aug 2001 17:38:37 +0000 (17:38 +0000)] 
added -b option

24 years agoa bunch of fixes from the s\7fflight to seattle
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

24 years agoRealloc fix.
Jeremy Allison [Sun, 19 Aug 2001 18:25:14 +0000 (18:25 +0000)] 
Realloc fix.
Jeremy.

24 years agoRealloc fixes.
Jeremy Allison [Sun, 19 Aug 2001 18:19:04 +0000 (18:19 +0000)] 
Realloc fixes.
Jeremy.

24 years agoRealloc fixes.
Jeremy Allison [Sun, 19 Aug 2001 18:01:08 +0000 (18:01 +0000)] 
Realloc fixes.
Jeremy.

24 years agoRealloc fixes.
Jeremy Allison [Sun, 19 Aug 2001 17:54:10 +0000 (17:54 +0000)] 
Realloc fixes.
Jeremy.

24 years agoMore Realloc fixes.
Jeremy Allison [Sun, 19 Aug 2001 17:42:34 +0000 (17:42 +0000)] 
More Realloc fixes.
Jeremy.

24 years agoRealloc fix.
Jeremy Allison [Sun, 19 Aug 2001 17:34:37 +0000 (17:34 +0000)] 
Realloc fix.
Jeremy.

24 years agoAdd missing gcc memory barriers, this bug showed up when doing a
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.

24 years agoMore Realloc fixes.
Jeremy Allison [Sat, 18 Aug 2001 19:57:48 +0000 (19:57 +0000)] 
More Realloc fixes.
Jeremy.

24 years agoMore Realloc fixes.
Jeremy Allison [Sat, 18 Aug 2001 19:43:28 +0000 (19:43 +0000)] 
More Realloc fixes.
Jeremy.

24 years agoUse tparam not tdata when reallocing params to make clearer.
Jeremy Allison [Fri, 17 Aug 2001 18:16:42 +0000 (18:16 +0000)] 
Use tparam not tdata when reallocing params to make clearer.
Jeremy.

24 years agomore useful debug messages and check if the size are non null.
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.

24 years agoOK, so not freeing these was a mistake. I'll try to be less exuberent next
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 :-)

24 years agoMove the claim_connection stuff till a little later in the process.
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...)

24 years agoMove admin user check into a helper function.
Andrew Bartlett [Fri, 17 Aug 2001 08:12:33 +0000 (08:12 +0000)] 
Move admin user check into a helper function.

Formatting fixes.

24 years agoMove read only check into a helper funcion. Ensure conn->service is set
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.

24 years agoRestore a debug I think I dropped earlier
Andrew Bartlett [Fri, 17 Aug 2001 07:47:10 +0000 (07:47 +0000)] 
Restore a debug I think I dropped earlier