1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00
Commit Graph

6097 Commits

Author SHA1 Message Date
Tim Potter
fab372f657 Start of samsync program invoked by smbd to perform sam synchronisation and
sam replication.  It doesn't work yet.  (-:
(This used to be commit c96aae613d)
2001-08-28 06:44:54 +00:00
Tim Potter
d5c9172ada Merge of sam sync code from TNG.
Reverse-engineered the sam replication protocol from staring at hex dumps
for a while.  It's pretty similar to the sam sync protocol with a couple of
different delta header types.

I wasn't able to figure out the format of the privilege stuff - needs more
time and a whiteboard.  (-:

The impressive bit is that the sam sync stuff from tng basically just
worked thanks mainly to Luke Leighton's efforts in this area.
(This used to be commit 3a60cb44f2)
2001-08-28 06:43:43 +00:00
Tim Potter
49dff249fc Added samsync and samrepl (untested) message types to smbcontrol.
(This used to be commit b0c8090396)
2001-08-28 06:38:11 +00:00
Tim Potter
cb9b39dd82 Added dummy handlers for SAM_SYNC and SAM_REPL messages.
(This used to be commit 08e05f1b3c)
2001-08-28 06:34:53 +00:00
Tim Potter
cd0a9f6fcc Send a MSG_SMB_SAM_SYNC when a netlogon_ctrl2 message is received.
(This used to be commit 73e1b708d0)
2001-08-28 06:34:08 +00:00
Tim Potter
174541b404 Merge of SAM delta type constants and BDC replication types from TNG.
(This used to be commit 73eeaadbe2)
2001-08-28 06:09:31 +00:00
Tim Potter
259d59084d Send a MSG_SMB_SAM_REPL when a UAS/SAM change netlogon message is
received.
(This used to be commit b7cf14bf84)
2001-08-28 06:08:31 +00:00
Tim Potter
38483139bf Added sam sync and sam replication smbd message constants.
(This used to be commit 406cafc0ef)
2001-08-28 06:03:38 +00:00
Tim Potter
5021be2f24 Fixed typo in comment.
(This used to be commit b10ad789d6)
2001-08-28 06:02:51 +00:00
Tim Potter
82901df5e3 Merge from TNG - function to initialise NTTIME structure.
(This used to be commit 14bc8283f2)
2001-08-28 06:02:18 +00:00
Tim Potter
e766812ee0 Added copyright header (taken from include/doserr.h)
Added include file guards.

Converted constants to hex - hooray!
(This used to be commit 21a394c749)
2001-08-28 05:56:00 +00:00
Tim Potter
3aa6006056 Fixed description in file header.
(This used to be commit ed42dcf784)
2001-08-28 05:35:05 +00:00
Tim Potter
504cebabdd Fix for make proto when srcdir != cwd.
(This used to be commit e6c0fb7575)
2001-08-28 04:16:56 +00:00
Andrew Tridgell
1f07993900 fixed typo
(This used to be commit 2d1829dfd0)
2001-08-28 01:28:01 +00:00
Tim Potter
316c3fb510 Convert to NTSTATUS.
(This used to be commit 9e69f59d6c)
2001-08-27 21:32:54 +00:00
Tim Potter
8b6b1b2e82 Fix bug in usage().
Allow user to invoke with \\ or // in front of server name.
(This used to be commit c292b63ff6)
2001-08-27 21:32:06 +00:00
Andrew Tridgell
b031af348c converted another bunch of stuff to NTSTATUS
(This used to be commit 1d36250e33)
2001-08-27 19:46:22 +00:00
Herb Lewis
1d726fe0e0 new logs use abbreviated month names. Add this to date conversion
(This used to be commit 8021669b16)
2001-08-27 18:24:04 +00:00
Andrew Tridgell
05c0ca2355 forgot to commit the scanner code
(This used to be commit 591308f388)
2001-08-27 18:01:05 +00:00
Andrew Tridgell
ee5f7237de 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
(This used to be commit 1b778bc7d2)
2001-08-27 17:52:23 +00:00
Andrew Tridgell
e8e98c9ea0 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
(This used to be commit 83d9896c1e)
2001-08-27 08:19:43 +00:00
Andrew Bartlett
3820578473 As per plug-fest discussions this paramater no longer defaults to the value
of add user script.
(This used to be commit 9e0c9a99f6)
2001-08-27 03:56:09 +00:00
Jeremy Allison
d309035c3e Spaces -> Tabs.
Jeremy.
(This used to be commit 5b665122f5)
2001-08-26 20:05:33 +00:00
Jeremy Allison
4a3f07456d Ignore locks of length zero as they mean different things in Win32
and POSIX.
Jeremy.
(This used to be commit bd9cbf4c68)
2001-08-26 19:39:40 +00:00
Jeremy Allison
10c240ef97 Don't use CLEAR_IF_FIRST if opening read-only.
Jeremy.
(This used to be commit f5ba19c129)
2001-08-26 19:27:18 +00:00
Jeremy Allison
cee2b0dc2c 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 7263949584)
2001-08-26 19:11:33 +00:00
Volker Lendecke
b7c11f6295 Change default 'name resolve order' to WINS before DNS.
Volker
(This used to be commit 5fc8c51983)
2001-08-26 18:26:40 +00:00
Christopher R. Hertel
7c09aa553d 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 5b975d3a9c)
2001-08-26 06:43:39 +00:00
Christopher R. Hertel
7fed75b4cb 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.
(This used to be commit 0777ebc04b)
2001-08-26 06:24:03 +00:00
Christopher R. Hertel
2ebb098820 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 -)-----
(This used to be commit efaa9ef5e7)
2001-08-26 06:01:46 +00:00
Gerald Carter
76f76c9572 fixed typo
(This used to be commit 3b1454691b)
2001-08-26 05:13:49 +00:00
Christopher R. Hertel
1beb3867fb 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 3031e7acdc)
2001-08-26 04:16:51 +00:00
Andrew Tridgell
c1598db18e we now have all but the dreaded 0/0 lock working
(This used to be commit 98b6aef18c)
2001-08-24 21:09:38 +00:00
Gerald Carter
0c371318f7 typo
(This used to be commit 11605ea38a)
2001-08-24 20:34:57 +00:00
Herb Lewis
717533483b get rid of compiler warnings
(This used to be commit 0768991d04)
2001-08-24 20:32:01 +00:00
Tim Potter
b9e7eeaf4f More status32 conversions.
(This used to be commit 031a19639c)
2001-08-24 20:31:00 +00:00
Jeremy Allison
364d0e56e9 Re-added readbraw call to test with smbtorture. This code not yet
tested...
Jeremy.
(This used to be commit fe85a19b4b)
2001-08-24 20:20:08 +00:00
Andrew Tridgell
db93134c32 fixed level2 find first for unisys clients
(This used to be commit cb8b21f71d)
2001-08-24 20:11:26 +00:00
Andrew Tridgell
464237cdb8 fixed handling of 139/445 in clients
(This used to be commit 22b372f8a7)
2001-08-24 20:11:09 +00:00
Gerald Carter
1399170a77 /tmp/cvsVTEaY5
(This used to be commit 55f222236f)
2001-08-24 19:58:28 +00:00
Tim Potter
705fb73e50 Fixed debug in cli_establish_connection() - print out the called name on
connection failure rather than the calling name.
(This used to be commit 946f6eb932)
2001-08-24 19:52:01 +00:00
Andrew Tridgell
b34d17e498 tests for 0 length locks
(This used to be commit 8fbd1d0f97)
2001-08-24 19:34:11 +00:00
Tim Potter
c1f0d99013 Process the SAM/UAS change notification message.
(This used to be commit efcbcfaa48)
2001-08-24 19:28:08 +00:00
Tim Potter
2236c671a0 Only register the #1b name if we are ROLE_DOMAIN_PDC rather than
lp_domain_master()
(This used to be commit b8fe147430)
2001-08-24 19:21:40 +00:00
Herb Lewis
be184b2662 fixes big endian unistring problems. Need to check that it didn't
break little-endian machines.
(This used to be commit 0f08e79030)
2001-08-24 19:17:43 +00:00
Tim Potter
31b6b7aecd Make domain_client_validate return a status code instead of a boolean.
(This used to be commit b4e79ab34b)
2001-08-24 19:09:37 +00:00
Tim Potter
bb94537ab5 Fixed incorrect debug.
(This used to be commit cec051cf5f)
2001-08-24 18:55:56 +00:00
Tim Potter
f3aeaa8c90 Fixed typo in debug message.
(This used to be commit ea8c0a75af)
2001-08-24 18:37:06 +00:00
Simo Sorce
f3cd2353de add a comment to make the code more readable
(This used to be commit d6a3372216)
2001-08-24 18:29:37 +00:00
Tim Potter
90b1f17585 Set secure channel type depending on server role.
(This used to be commit 7d5440a7ae)
2001-08-24 17:15:54 +00:00