1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

50624 Commits

Author SHA1 Message Date
Jelmer Vernooij
b876478219 Make sure server_role gets initialized in backend provisioning code -
fixes test.
2009-01-19 21:14:37 +01:00
Jelmer Vernooij
2254efbf5d Merge branch 'v4-0-stable' 2009-01-19 20:17:23 +01:00
Jelmer Vernooij
288ce60748 Add some more entries to WHATSNEW, by no means complete. 2009-01-19 19:24:54 +01:00
Jelmer Vernooij
c570d6396f Remove mention of external heimdal - its not yet supported. 2009-01-19 18:15:45 +01:00
Stefan Metzmacher
4feafd7c7b s3:idmap_tdb: convert to the dbwrap api
metze
2009-01-19 17:06:41 +01:00
Stefan Metzmacher
535311d187 s3:dbwrap: add dbwrap_delete(), dbwrap_store() and dbwrap_fetch()
The _bystring function are now just tiny wrappers.

metze
2009-01-19 17:06:03 +01:00
Stefan Metzmacher
a83b327f1b s3:dbwrap: add get_flags() hook to db_context
metze
2009-01-19 17:06:02 +01:00
Andreas Schneider
aa79f76b0c Avoid flooding of syslog with failing pam_putenv messages.
Signed-off-by: Andreas Schneider <anschneider@suse.de>
Signed-off-by: Günther Deschner <gd@samba.org>
2009-01-19 16:49:35 +01:00
Volker Lendecke
e58a8c169c Fix the same bug as 8b618d0 fixes, this time in winbindd_passdb.c 2009-01-19 11:49:18 +01:00
Volker Lendecke
b0c92548d8 Attempt to fix the merged build 2009-01-19 11:40:43 +01:00
Karolin Seeger
4b26c7bbf4 S3-ByExample: Use 'winbindd -D' instead of 'winbindd -B'.
The option '-B' does not exist at all.

Thanks to Jason Ellison for reporting!

Karolin
2009-01-19 10:22:46 +01:00
Karolin Seeger
7c1e08518b S3-HowTo: Change 'winbindd -B' to 'winbindd -D'.
There is no option '-B' at all.

Thanks to Jason Ellison for reporting!

Karolin
2009-01-19 08:55:30 +01:00
Stefan Metzmacher
afd405dd90 nbt_server/wins: winsdb_handle() can be static
metze
(from samba4wins tree ba45b14b48f62eb1668509738f83fa17a4ce95fd)
2009-01-19 07:05:54 +01:00
Stefan Metzmacher
2973af5111 nbt_server/wins: add some const
metze
(from samba4wins tree e54b2d3ddbf338fe5d9802724e76f320fd4423e5)
2009-01-19 07:05:54 +01:00
Stefan Metzmacher
2dcac3c5e6 nbt_server/wins: use talloc_zero() to create struct winsdb_handle
metze
(from samba4wins tree 0f2995f77ab092d71e539c2473c94956f9c253fb)
2009-01-19 07:05:54 +01:00
Stefan Metzmacher
6bcd2cbd27 wrepl_server: make 'use inform' the default and autofallback against old servers
metze
(from samba4wins tree f44c8c8e1986e2105e899bb1f8a3896575eef582)
2009-01-19 07:05:53 +01:00
Stefan Metzmacher
d5b7240ac5 libcli/wrepl: return the major version of the server in wrepl_associate()
metze
(from samba4wins tree 1ea02d50d1607b94e15ff07568fa5056cb6e4f09)
2009-01-19 07:05:53 +01:00
Stefan Metzmacher
7c7bdf3669 wreplserver: add "wreplsrv:propagate name releases = yes" for replicated sgroup merges
metze
(from samba4wins tree 80cbe665e561182d28acc6ad474243b83f3e4d28)
2009-01-19 07:05:52 +01:00
Stefan Metzmacher
e1c968afd8 winsserver: add "wreplsrv:propagate name releases" option
Add an option to propagate name releases directly.
This make the results for #1C name queries more consistent
among all servers.

It's off by default to match windows.

metze
(from samba4wins tree 166e9fdffb9f4e26513c3b4ec1f6f168ecbe18f8)
2009-01-19 07:05:52 +01:00
Stefan Metzmacher
fb64b12be5 winsserver_release: update the expire time if only one address is released
We also take the ownership if the record isn't owned.
This matches windows...

metze
(from samba4wins tree d7b19339c0444cbe0989fcfa91a22323215d2f6b)
2009-01-19 07:05:52 +01:00
Stefan Metzmacher
81a2a43a5a wrepl_scavenging: add a comment to make the is_static case more clear
metze
(from samba4wins tree 67fa7dc4fe36b143d36df1309840328a14683e31)
2009-01-19 07:05:51 +01:00
Stefan Metzmacher
bbe4785f34 wrepl_server: fix the record expire time of sgroup merges
if we're the owner, the expire time becomes the highest
expire time of owned addresses

metze
(from samba4wins tree 024f439db45046c7c0bb4759c75877462405baec)
2009-01-19 07:05:51 +01:00
Stefan Metzmacher
c4402e3fde wrepl_server: use a local 'local_owner' variable to make the code more readable
metze
(from samba4wins tree eba9a8ce0641a2984112f4e1473801fa449ed96d)
2009-01-19 07:05:50 +01:00
Stefan Metzmacher
780bc13736 winsdb: the we_are_owner in winsdb_lookup() needs to be per address
This fixes a bug where #1C addresses are registered with different
WINS-Servers and a merged #1C record.

metze
(from samba4wins tree 72e055394a0fd1f543be9c196b4179356a1033f6)
2009-01-19 07:05:50 +01:00
Stefan Metzmacher
cd5e43b327 nbt_server: fix crash bug, the wins client interface may not have a nbtsock
metze
(from samba4wins tree 8035601da7c7e8b65fe1d82c2654c412fa169338)
2009-01-19 07:05:50 +01:00
Stefan Metzmacher
a5b3975cf7 nbt_server: redirect incoming response packets to the correct interface
We may send requests packets (WACK challenges or similar things)
via a different udp socket than the socket we receive the
matching response. We need to setup an unexpected handler
on the nbt sockets and redirect responses to the correct
nbt_socket. (By redirect I mean we use the correct
nbt_socket structure, we're *not* resending the packet
with sendto() via the kernel...)

metze
(from samba4wins tree 7ce8e705e5a9aabb787d17fbec7a078d9d6780dc)
2009-01-19 07:05:44 +01:00
Stefan Metzmacher
ebab6d6ce4 libcli/nbt: add nbt_name_socket_handle_response_packet()
Move the last part of nbt_name_socket_recv() into
a new function nbt_name_socket_handle_response_packet()
so that it can be reused by an unexpected handler.

metze
(from samba4wins tree cb0377f3b95e50c84fac999a49dde80acc933124)
2009-01-19 07:05:42 +01:00
Stefan Metzmacher
26c48098e6 libcli/nbt: add nbt_set_unexpected_handler()
metze
(from samba4wins tree 74232901d1e7ea9ebcb3bd8d584dda36fac37223)
2009-01-19 07:05:27 +01:00
Stefan Metzmacher
c97df0d892 nbt_server: add some debug messages which show the used interfaces addresses
metze
(from samba4wins tree 8eb30add7c95672a85b4084b4a3dbfa78db820c4)
2009-01-19 07:05:26 +01:00
Stefan Metzmacher
65f096c8cd wreplsrv: don't log scavenging events at level 0
metze
(from samba4wins tree 7a1d4fac9d77440c2c463bfdb2a5671e4817cfdf)
2009-01-19 07:05:25 +01:00
Stefan Metzmacher
9598d775a5 wreplsrv: log a successful replication cycle at level 1
metze
(from samba4wins tree b411e60e1536668e11bc5d8eaa389071b25077bf)
2009-01-19 07:05:25 +01:00
Stefan Metzmacher
6d107fff13 wreplsrv: log replication failures at log level 0
metze
(from samba4wins tree 405cbb74b7191e744178894a5e0ac4abcac2a4fe)
2009-01-19 07:05:24 +01:00
Stefan Metzmacher
bbd74f2f76 libcli/nbt: fix wack timeout handling
If the client gets a WACK response, the server
sends a timeout to the client. Possible
values are between 9 and 105 seconds.

Because w2k3 servers have a bug and always return
a value of 5 seconds, we need a workarround.

Always using a fixed value of 30 seconds is bad
as we could timeout to early.

Now we use the value from the server if it's in the
valid range and otherwise we use the upper limit
of the valid range (105s).

metze
(from samba4wins tree 40ef7739f4141598a6392c203e4a2d52d972fe06)
2009-01-19 07:05:23 +01:00
Stefan Metzmacher
4a878115a7 NBT-WINS: test if the server ignores resent packets
metze
(from samba4wins tree 24eb7577414c8584b97f43c850d738d3dbb30777)
2009-01-19 07:05:23 +01:00
Stefan Metzmacher
1ffcebbf0f NBT-WINS: we don't need the slow low port tests for every name
metze
(from samba4wins tree 7862deca8555f960a5ef65e6315ce94af5023a2a)
2009-01-19 07:05:23 +01:00
Stefan Metzmacher
462e4d0cef NBT-WINS: if we're bound to port 137 trigger WACK reponses with timeouts
metze
(from samba4wins tree de7225658493006c19d139ac77ac1b1ffab01d25)
2009-01-19 07:05:22 +01:00
Stefan Metzmacher
384b9f709a NBT-WINS: try to bind to port 137 in the NBT-WINS test
metze
(from samba4wins tree 5e101475d5ed62060c991ea71c943e76b862aeef)
2009-01-19 07:05:22 +01:00
Stefan Metzmacher
ee8f481d94 winsserver: we need to ignore duplicated name register requests.
This fixes the following bug:

While we reply with a WACK response to a client.
Instead of waiting for the final reply some
windows client just resends the request using
the same name_trn_id in the nbt_name_packet.
We handled this as a new request and send a
WACK response (and the challenges) again.
Then the first request gets its final success
response, but the when we try to send the success
for the "second" request we notice that
the record was changed in between and we return
an error.

Windows 2003 (and I assume all other versions as well)
detect the packet is just a resent of a currently pending
request and ignores it.

So we now keep a list of all pending WINS name register
requests which result in a WACK response. On each incoming
name register request we search through the list to find
duplicate requests and ignore them. In theory we should
do that for all requests, but name register requests
are the only requests we response async and only
if we have to go via the WACK code path.

metze
(from samba4wins tree 382e7d384b70d03e9f81c7bb353afaed288d80f0)
2009-01-19 07:05:21 +01:00
Stefan Metzmacher
bae593bb11 ndr_print: fix the output ndr debug messages only add header line once
metze
(from samba4wins tree e99531aae325e4443fcb917a75dfe4a86b892583)
2009-01-19 07:05:21 +01:00
Stefan Metzmacher
9967907190 util_str: setup the correct talloc name for strings
metze
(partly from samba4wins tree 447e7f9532131117e896712db9def321c96718eb)
2009-01-19 07:05:21 +01:00
Stefan Metzmacher
9d4f766ae3 Revert "Remove another use of global_loadparm."
This reverts commit ee7c2170a7.

A much more correct fix will come soon.
(40ef7739f4141598a6392c203e4a2d52d972fe06 from the samba4wins tree)

metze
2009-01-19 07:05:20 +01:00
Stefan Metzmacher
3b91640fbb NBT-WINS: initialize .dest_port explicit (we should fill the whole struct each time)
This makes the code more clear.

metze
2009-01-19 07:05:20 +01:00
Andrew Bartlett
d6e801b7d9 Merge branch 'master' of ssh://git.samba.org/data/git/samba into abartlet-devel 2009-01-19 13:39:54 +11:00
Andrew Bartlett
9fa6fb3d9f Print more useful suggestion for the main provision command line 2009-01-19 12:39:57 +11:00
Andrew Bartlett
b4551bba07 Delete more Samba3-specific files 2009-01-19 12:16:30 +11:00
Andrew Bartlett
b7cafb9842 Don't give fatal python errors when guessing the realm 2009-01-19 12:16:24 +11:00
Volker Lendecke
fe9dd8710d Remove unused tdb_search_keys() 2009-01-19 00:05:56 +01:00
Volker Lendecke
eaec865148 simplify gencache_iterate a bit, fix nonempty blank lines 2009-01-19 00:05:56 +01:00
Volker Lendecke
a9542ddcb7 libnetapi_open_pipe does not need to return cli_state
The user session key is also available in rpccli->auth->user_session_key

Guenther, please check!

Thanks,

Volker
2009-01-18 20:10:06 +01:00
Jelmer Vernooij
6ffe233f94 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2009-01-18 17:27:41 +01:00