Stefan Metzmacher
2a7e22c117
r13117: the caller may reference the winsdb_addr struct,
...
and as a winsdb_record has a short lifetime, it's no problem
to not free unused addresses directly
metze
2007-10-10 13:51:27 -05:00
Stefan Metzmacher
602ec0f1c6
r13116: make sure we don't add more than 25 addresses to a record,
...
and don't return more than 25 in a name query reply
we now also order the addresses from the newest owned address
to the oldest replica address
metze
2007-10-10 13:51:27 -05:00
Stefan Metzmacher
93409faddf
r13115: call the wins hook script on modifications of the wins.ldb
...
tridge: can you please look at the /* TODO: close file handles */
btw I'm not interessted in any result from the script...
metze
2007-10-10 13:51:27 -05:00
Stefan Metzmacher
aba54b8708
r13087: don't store timestamps for static records
...
(only a per record timestamp when it's not active)
metze
2007-10-10 13:51:23 -05:00
Stefan Metzmacher
6325abd95c
r13060: - return only active addresses in name query responses
...
- replicate only active addresses
metze
2007-10-10 13:51:20 -05:00
Stefan Metzmacher
31ce24d7b1
r13007: let our winsclient code register multihomed records with
...
our winsserver and don't defend our local name against
our own register packets...
this won gave quite confusing logmessages...
metze
2007-10-10 13:51:17 -05:00
Stefan Metzmacher
f7481a4c8c
r13006: always debug the unicast and broadcast address
...
metze
2007-10-10 13:51:17 -05:00
Stefan Metzmacher
5e3639edaf
r13005: - use nbtd:max_refresh_time=12345 also for name refresh with a wins server
...
metze
2007-10-10 13:51:17 -05:00
Stefan Metzmacher
2cb587c779
r12958: don't bind to '255.255.255.255'
...
fix bug #3411
metze
2007-10-10 13:51:12 -05:00
Stefan Metzmacher
40d7033a14
r12934: do somemore debugging of the received browse packets,
...
(so I may learn about the protocol, while watching the debug output)
metze
2007-10-10 13:51:11 -05:00
Stefan Metzmacher
a6f279bc43
r12909: add an ldb module for the wins.ldb,
...
it currently doesn't do much, but it's later
prevent adding corrupted records via ldbedit,
and will take care of the versionID counter
metze
2007-10-10 13:51:02 -05:00
Stefan Metzmacher
c52436108d
r12906: return the correct nb_flags
...
metze
2007-10-10 13:51:01 -05:00
Stefan Metzmacher
d28c8ce66d
r12898: prepare the 'wins hook' feature, but we only debug out a 'TODO: run script ...'
...
metze
2007-10-10 13:51:00 -05:00
Stefan Metzmacher
677c1aa466
r12897: make it possible to use nosync transaction to speed things up,
...
(just for testing)
metze
2007-10-10 13:51:00 -05:00
Andrew Bartlett
88198c4881
r12804: This patch reworks the Samba4 sockets layer to use a socket_address
...
structure that is more generic than just 'IP/port'.
It now passes make test, and has been reviewed and updated by
metze. (Thankyou *very* much).
This passes 'make test' as well as kerberos use (not currently in the
testsuite).
The original purpose of this patch was to have Samba able to pass a
socket address stucture from the BSD layer into the kerberos routines
and back again. It also removes nbt_peer_addr, which was being used
for a similar purpose.
It is a large change, but worthwhile I feel.
Andrew Bartlett
2007-10-10 13:49:57 -05:00
Stefan Metzmacher
966872646e
r12779: allow static tomstones
...
metze
2007-10-10 13:49:54 -05:00
Stefan Metzmacher
523746f271
r12755: check the return value of ldb_timestring(), as this fails,
...
when gmtime() fails...
metze
2007-10-10 13:49:50 -05:00
Stefan Metzmacher
72198f00ea
r12700: fix name release of replica records, we need to become the owner and allocate a new versionID
...
so that it gets replicated to the old owning wins server directly
metze
2007-10-10 13:49:41 -05:00
Stefan Metzmacher
22cdbc75df
r12673: create functions for get_maxVersion(), set_maxVersion() and get_seqnumber()
...
at the winsdb layer. the ones in wrepl_server/ will be removed later.
metze
2007-10-10 13:49:36 -05:00
Stefan Metzmacher
b07b201c86
r12648: implement the dns proxy feature
...
metze
2007-10-10 13:49:34 -05:00
Stefan Metzmacher
e47873a1a3
r12647: make use of the str_list_add function
...
metze
2007-10-10 13:49:34 -05:00
Stefan Metzmacher
48842cd9ab
r12644: prepare the dns proxy feature for the wins server
...
metze
2007-10-10 13:49:34 -05:00
Stefan Metzmacher
d0dc0ffa31
r12619: make sure we don't return more than 25 addresses, as w2k3 crashes in that case
...
I still need to make sure we didn't write such records to our database...
metze
2007-10-10 13:49:05 -05:00
Stefan Metzmacher
37dece8304
r12618: use our primary interface address or the "winsdb:local_owner" -address
...
as winsOwner: attrbute for owned records
metze
2007-10-10 13:49:05 -05:00
Stefan Metzmacher
49ba4cc111
r12617: create a winsdb_handle and pass that arround,
...
so we later can hang the local owner address, on this handle too
metze
2007-10-10 13:49:05 -05:00
Stefan Metzmacher
9dfbce5f34
r12609: - add some comments to a change that went in in the last 'fix the build' commit
...
- we need to reply to name queries with the recursion desired bit set,
to pass the multi homed challenge, when registering our interfaces
with a wins server
metze
2007-10-10 13:49:04 -05:00
Jelmer Vernooij
70e7449318
r12608: Remove some unused #include lines.
2007-10-10 13:49:03 -05:00
Stefan Metzmacher
5cc955bf54
r12607: fix the build
...
metze
2007-10-10 13:49:03 -05:00
Stefan Metzmacher
037b5d9f36
r12606: - fix multihomed registrations
...
always remove the addresses which are no longer valid
- use the wins_challenge_send/recv calls which are also used by the replication
challenge
metze
2007-10-10 13:49:03 -05:00
Stefan Metzmacher
669009579d
r12580: return the first 0x1B address as first address to 0x1C queries
...
metze
2007-10-10 13:48:56 -05:00
Stefan Metzmacher
f68a883daf
r12578: - w2k3 allows entries with 127.0.0.1 as address, so we should do
...
to make it possible to add a static record for localhost or so...
- we already make sure we don't register 127.0.0.1 with our wins server,
so the check for loopback in the non-wins name queries is enough
metze
2007-10-10 13:48:56 -05:00
Stefan Metzmacher
3b32d8b6b6
r12577: filter the loopback addresses like this 127.*.*.* and not only 127.0.0.1
...
metze
2007-10-10 13:48:56 -05:00
Jelmer Vernooij
0aca5fd513
r12542: Move some more prototypes out to seperate headers
2007-10-10 13:47:55 -05:00
Andrew Tridgell
1b65713bbc
r12537: finally found the difference between us and w2k3 that caused w2k
...
domain joins to be agonisingly slow! The join is now instant, and
login is fast too
2007-10-10 13:47:53 -05:00
Andrew Tridgell
df00f8b342
r12535: - simplify string list handling in a couple of places using str_list_add()
...
- don't reply with 127.0.0.1 in NBT or WINS name queries unless the
query came in on the loopback interface. Otherwise clients can end
up talking to themselves, which is not very productive :-)
2007-10-10 13:47:53 -05:00
Jelmer Vernooij
87f665a1d5
r12528: Add seperate proto headers for ntvfs, tdr, smb_server and nbt_server.
2007-10-10 13:47:51 -05:00
Jelmer Vernooij
b24f2583ed
r12498: Eliminate INIT_OBJ_FILES and ADD_OBJ_FILES. We were not using
...
the difference between these at all, and in the future the
fact that INIT_OBJ_FILES include smb_build.h will be sufficient to
have recompiles at the right time.
2007-10-10 13:47:45 -05:00
Stefan Metzmacher
c7049f8bb6
r12440: fix crash bugs
...
metze
2007-10-10 13:47:39 -05:00
Stefan Metzmacher
33c1d4a078
r12437: if the client gives us an unicast name query with recursion_desired,
...
it's a wins server request, even if it's a name of one of our interfaces
metze
2007-10-10 13:47:39 -05:00
Stefan Metzmacher
387d680b6f
r12429: make static records always active with a max expire time
...
metze
2007-10-10 13:47:37 -05:00
Stefan Metzmacher
84ba71ba27
r12428: releases on 0x1D names are ignored
...
metze
2007-10-10 13:47:37 -05:00
Stefan Metzmacher
4ce4baa1b9
r12426: w2k3 refused 0x1B names registered as group names
...
metze
2007-10-10 13:47:37 -05:00
Stefan Metzmacher
2e69a7cc21
r12425: match w2k3 and store 0x1D names when they're registered as group name,
...
but queries still give not found
metze
2007-10-10 13:47:36 -05:00
Stefan Metzmacher
3f90e72e5a
r12424: static records should not be released
...
metze
2007-10-10 13:47:36 -05:00
Stefan Metzmacher
66b57f5fbf
r12412: - the 0x1E name must be registered as group name
...
- reject wins registration with a static record in the database
metze
2007-10-10 13:47:35 -05:00
Stefan Metzmacher
bcf04a49e3
r12287: move the wins.ldb into lockdir
...
metze
2007-10-10 13:47:27 -05:00
Stefan Metzmacher
6d355a9538
r12229: fix the expire time for released records
...
metze
2007-10-10 13:47:22 -05:00
Stefan Metzmacher
afb0f660a2
r12228: fix the expire time for RELEASED records
...
metze
2007-10-10 13:47:22 -05:00
Andrew Bartlett
ae2f3a64ee
r12227: I realised that I wasn't yet seeing authenticated LDAP for the ldb
...
backend.
The idea is that every time we open an LDB, we can provide a
session_info and/or credentials. This would allow any ldb to be remote
to LDAP. We should also support provisioning to a authenticated ldap
server.
(They are separate so we can say authenticate as foo for remote, but
here we just want a token of SYSTEM).
Andrew Bartlett
2007-10-10 13:47:22 -05:00
Stefan Metzmacher
f251c57096
r12217: add my copyright
...
metze
2007-10-10 13:47:20 -05:00