1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-24 13:57:43 +03:00

5260 Commits

Author SHA1 Message Date
Tim Potter
9e69f59d6c Convert to NTSTATUS. -
Tim Potter
c292b63ff6 Fix bug in usage().
Allow user to invoke with \\ or // in front of server name.
-
Andrew Tridgell
1d36250e33 converted another bunch of stuff to NTSTATUS -
Herb Lewis
8021669b16 new logs use abbreviated month names. Add this to date conversion -
Andrew Tridgell
591308f388 forgot to commit the scanner code -
Andrew Tridgell
1b778bc7d2 started converting NTSTATUS to be a structure on systems with gcc in order to make it type incompatible with BOOL so we catch errors sooner. This has already found a number of bugs -
Andrew Tridgell
83d9896c1e 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
9e0c9a99f6 As per plug-fest discussions this paramater no longer defaults to the value
of add user script.
-
Jeremy Allison
5b665122f5 Spaces -> Tabs.
Jeremy.
-
Jeremy Allison
bd9cbf4c68 Ignore locks of length zero as they mean different things in Win32
and POSIX.
Jeremy.
-
Jeremy Allison
f5ba19c129 Don't use CLEAR_IF_FIRST if opening read-only.
Jeremy.
-
Jeremy Allison
7263949584 bzero is not used (deprecated) as it's a BSDism.
Syscalls must check for -1, not < 0 (POSIX).
Formating (tab) fixups.
Jeremy.
-
Volker Lendecke
5fc8c51983 Change default 'name resolve order' to WINS before DNS.
Volker
-
Christopher R. Hertel
5b975d3a9c 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
0777ebc04b 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
efaa9ef5e7 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
3b1454691b fixed typo -
Christopher R. Hertel
3031e7acdc 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
98b6aef18c we now have all but the dreaded 0/0 lock working -
Gerald Carter
11605ea38a typo -
Herb Lewis
0768991d04 get rid of compiler warnings -
Tim Potter
031a19639c More status32 conversions. -
Jeremy Allison
fe85a19b4b Re-added readbraw call to test with smbtorture. This code not yet
tested...
Jeremy.
-
Andrew Tridgell
cb8b21f71d fixed level2 find first for unisys clients -
Andrew Tridgell
22b372f8a7 fixed handling of 139/445 in clients -
Gerald Carter
55f222236f /tmp/cvsVTEaY5 -
Tim Potter
946f6eb932 Fixed debug in cli_establish_connection() - print out the called name on
connection failure rather than the calling name.
-
Andrew Tridgell
8fbd1d0f97 tests for 0 length locks -
Tim Potter
efcbcfaa48 Process the SAM/UAS change notification message. -
Tim Potter
b8fe147430 Only register the #1b name if we are ROLE_DOMAIN_PDC rather than
lp_domain_master()
-
Herb Lewis
0f08e79030 fixes big endian unistring problems. Need to check that it didn't
break little-endian machines.
-
Tim Potter
b4e79ab34b Make domain_client_validate return a status code instead of a boolean. -
Tim Potter
cec051cf5f Fixed incorrect debug. -
Tim Potter
ea8c0a75af Fixed typo in debug message. -
Simo Sorce
d6a3372216 add a comment to make the code more readable -
Tim Potter
7d5440a7ae Set secure channel type depending on server role. -
Herb Lewis
f3bc6b5d68 fix missing ) -
Simo Sorce
3b40ec4f14 let admins also abort a shutdown -
Jeremy Allison
0f5b187387 Fixed malloc -> talloc problems pointed out by Simo.
Jeremy
-
Andrew Tridgell
c3b2d959a7 allow for 0 range locks in locktest -
Andrew Tridgell
ef5f4866fb flush on a invalid fsp should give an error -
Andrew Tridgell
5498da6664 0 byte lock ranges ARE valid -
Andrew Tridgell
ae669720d8 fixed shortname length in trans2 list -
Herb Lewis
f942397d65 get rid of old debug code and possible socket leak -
Jeremy Allison
faae7512e0 Fix W2K profiles writing to a Samba PDC. Thanks to Microsoft for their help !
Jeremy.
-
Simo Sorce
6391fd7bda so let admins shutdown their samba servers remotely if they want :-) -
Andrew Tridgell
6513b94d19 more minor torture updates -
Andrew Tridgell
759ca19f32 use 32 bit locking if client doesn't do 64 bit -
Jeremy Allison
04478786c3 Some W2k info.
Jeremy.
-
Gerald Carter
97b5499def merge from 2.2 -