summaryrefslogtreecommitdiff
path: root/source4/nbt_server
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r10081: - create a seperate WINSDB subsystemStefan Metzmacher1-2/+11
- use LIBCLI_WREPL for the winsreplication client code - fix some dependencies metze (This used to be commit 7dd931ee5ac1408da8d14d00f43d19473e06871e)
2007-10-10r9391: Convert all the code to use struct ldb_dn to ohandle ldap like ↵Simo Sorce2-6/+7
distinguished names Provide more functions to handle DNs in this form (This used to be commit 692e35b7797e39533dd2a1c4b63d9da30f1eb5ba)
2007-10-10r9011: Remove more references to "name" as a netbios name, using theAndrew Bartlett1-10/+41
cross-reference instead. Andrew Bartlett (This used to be commit 0f7b1136f6e0779f28f2132a8606dd64be20c42e)
2007-10-10r8734: fixed the wins server for the new ldb DN restrictions.Andrew Tridgell1-3/+29
This gets it working, but I'm rather worried about the speed. We used to get more than 5000 ops/sec, but now we are down to around 15 ops/sec. I suspect a bug in ldb. (This used to be commit 83727bf72c970effdc5995e2f6e7816a57887b5c)
2007-10-10r8588: register wins server with irpcAndrew Tridgell1-0/+3
(This used to be commit dc0ea36344c8eeeff0aa1afa01202fe1f477d307)
2007-10-10r8285: generate some real stats in the nbt server for the irpc client code ↵Andrew Tridgell4-0/+35
to look at (This used to be commit 73643884a3c76de5a738a28054a168fdb008a9f8)
2007-10-10r8272: added the hooks for adding a name to a messaging context, so we willAndrew Tridgell1-0/+2
be able to send a message to the "ldap_server" task without having to know its task ID. (This used to be commit 8f69867867857e0c9a9246c2dec9612ccc234724)
2007-10-10r7955: we should not free a struct which is passed as a parameter, to a functionStefan Metzmacher1-2/+0
the caller should free it this fixed a double free bug noticed by Дейтер Александр Валериевич <tiamat@komi.mts.ru>  metze (This used to be commit ee1a5d5419f4d79af5c447a6b397a0f4dc89310a)
2007-10-10r7911: task_terminate() is defined in the macosx headers, so change the nameAndrew Tridgell1-5/+5
to task_server_terminate() (This used to be commit a7447e25ac203f0ee09ffdf72df1094eb70e7c0c)
2007-10-10r7378: Lowercase netbios name when forming the DNS name of the DC in theAndrew Bartlett1-4/+6
NETLOGON reply. Use the kdc server service to determine if we are a kdc (no more krb5:kdc=yes). Andrew Bartlett (This used to be commit fe9cdb063ca183674d0093b43017cc054d7c3f63)
2007-10-10r7321: add nbtd statistics serving over irpcAndrew Tridgell2-0/+31
(This used to be commit 4c0ed7328b14969ea34790b0e80fa714c44ccc5f)
2007-10-10r6904: use "krb5:kdc=yes" in your smb.conf when you have the ↵Stefan Metzmacher1-1/+1
lorikeet-heimdal kdc running metze (This used to be commit fa652919bd6ab58ff15cab239cf88d2359b03d55)
2007-10-10r6768: Fix wrong commentSimo Sorce1-1/+1
(This used to be commit 2f80b2070f1fc99151f0a583271cd9047d53bab6)
2007-10-10r6750: some minor tweaks to the cldapd serverAndrew Tridgell1-2/+4
I can now join winxp -> samba4 DC using long name, and login. The nice thing is there are no delays now, as the client likes the replies it gets (This used to be commit 5aff7d36f3e535e305820ae42b023ae53cc0daf9)
2007-10-10r6618: only print the netlogon packets we receive if it is an unknown packet ↵Andrew Tridgell1-2/+1
type (This used to be commit 8229fe4dd5f4eb89eb19fa02eedc7f00a31b204e)
2007-10-10r6339: set the NBT_SERVER_LDAP and NBT_SERVER_KDC bits based on configAndrew Tridgell1-3/+13
(andrew, please fix the method of sseeing if we do krb5, if you can think of a better one) (This used to be commit 4c2207c946fa7bb6a8ba32ac82256c424b5d0d3c)
2007-10-10r6338: ADS style GETDC response now works well enough that WinXP can joinAndrew Tridgell1-0/+82
Samba4 without Samba3 nmbd (This used to be commit f4d07d7d3b6973b503d8c98f177471dd6cebfa92)
2007-10-10r6323: added server side support for dgram NTLOGON requests. NT4 ↵Andrew Tridgell1-0/+41
workstations can now login to a Samba4 domain. (This used to be commit df146d64ebce6b462c08a1f30919390fcf8196cb)
2007-10-10r6321: added IDL and test suite for NBT dgram 'sam logon' request (sent byAndrew Tridgell3-0/+78
clients when a user tries to login) (This used to be commit 08ded62156b387457bc56b5910e1ddc813b375bd)
2007-10-10r6320: some minor netlogon datagram fixes - NT4 can now join a Samba4 domain ↵Andrew Tridgell1-0/+1
without Samba3 nmbd (This used to be commit 4507bdc339505e91118d403948946f4a98a4f562)
2007-10-10r6288: the nbt dgram server now responds to GETDC requests. It works with ourAndrew Tridgell1-1/+64
test suite, but doesn't yet seem to satisfy a nt4 client. I'm investigating. (This used to be commit 406217262dff5adb5d0cb0028198e08f66cc85f4)
2007-10-10r6247: added the server side code for receiving mailslot requests, andAndrew Tridgell5-39/+224
parsing incoming netlogon requests. No replies are sent yet. (This used to be commit 3b34df6a674cd2aeddc354cdadae3f0e1c000d45)
2007-10-10r6184: the beginnings of the libcli/dgram/ library, and the dgramAndrew Tridgell3-3/+59
server. Currently just listens on port 138 and parses the packets (using IDL like the rest of NBT). This allows me to develop the structures and test with real packets (This used to be commit 10d64a525349ff96695ad961a3cfeb5bc7c8844f)
2007-10-10r5585: LDB interfaces change:Simo Sorce2-7/+7
changes: - ldb_wrap disappears from code and become a private structure of db_wrap.c thanks to our move to talloc in ldb code, we do not need to expose it anymore - removal of ldb_close() function form the code thanks to our move to talloc in ldb code, we do not need it anymore use talloc_free() to close and free an ldb database - some minor updates to ldb modules code to cope with the change and fix some bugs I found out during the process (This used to be commit d58be9e74b786a11a57e89df36081d55730dfe0a)
2007-10-10r5454: moved the WINS server code into its own directoryAndrew Tridgell6-10/+19
(This used to be commit 0bb997127fe6c49361d9f1eaeda5d9321601a52a)
2007-10-10r5418: - added version numbers to WINS database records in preparation for ↵Andrew Tridgell4-4/+84
adding server side replication support - on a WACK registration success, check that the database record hasn't changed during the WACK processing. If it has, then fail the registration (This used to be commit 2acd79b95931b57efae9f7c239bc08dc143f5225)
2007-10-10r5411: make network interface selection a bit sanerAndrew Tridgell1-0/+5
- if we have no configured network interfaces, then don't start nbtd (when I add dynamic interface loading this will change to a delay until a network interface comes up) - choose the best interface by netmask for torture tests that need a specific IP (such as the WINS test). Added iface_best_ip() for that. - if specific interfaces are chosen in smb.conf, then keep that ordering, and default to the first one listed (This used to be commit 4d08c114079ef6d1d10a96195046fe43631aefa2)
2007-10-10r5408: - added testing for the behaviour of the special 0x1c nameAndrew Tridgell4-9/+20
- added WINS server support for the 0x1c name (This used to be commit 1558a545285ae0432c70e0a3e2b132a5132e7b3b)
2007-10-10r5397: added testing and server support for the special handling required ↵Andrew Tridgell1-0/+6
for the 0x1d local master browser name in WINS (This used to be commit 2650b43ca903fb478d2943fa9bbdba8b2bf74966)
2007-10-10r5392: added "secure" WINS server processing. Send a WACK on nameAndrew Tridgell6-47/+280
registrations from anyone who isn't a current owner, then query the owner addresses to see if they still want it. (This used to be commit 8dc2a028d3ca0115d3173df435d926d7b6a4d5d5)
2007-10-10r5387: - added automatic WINS server record expiryAndrew Tridgell3-20/+149
- added support for group names in registration and query (This used to be commit 3690a65bef2b2791203c49d68c8268ff03434622)
2007-10-10r5375: use a real DN in the WINS database. We now pass the NBT-WINS test.Andrew Tridgell1-2/+2
(This used to be commit 807a3a1f80b1c065ee799531cdf947b31d1a109f)
2007-10-10r5358: - added initial WINS server code. It passes most of the NBT-WINS ↵Andrew Tridgell7-28/+393
test, but doesn't yet do secure server WACK responses - added a ldap_string_to_time() function, for converting a LDAP formatted time to a time_t (This used to be commit 9aa3313b3f93e47e3f93028e072f6a23b3c22385)
2007-10-10r5352: added a function nbt_name_string() that formats a nbt_name structureAndrew Tridgell7-39/+47
as a human readable string. The format is designed to be able to be used as the DN for the WINS database as well, while coping with arbitrary bytes in the name (except nul bytes) (This used to be commit aac3090e3504ba07124a9d480322a98efb97175e)
2007-10-10r5346: - a bit more preparation for the WINS server going inAndrew Tridgell8-144/+263
- more NBT packet asserts, to ensure that incoming requests have all the elements we depend on - open the WINS database at startup if we are configured as a WINS server - split out the nbtd server reply packet generation code so it can be shared by the WINS server - re-did the logic of what is answered by the WINS server and what by the B node server. It now always tries to answer by the B node, and only "recurses" to the WINS server for names that are not found. (This used to be commit 5613e6b8ad9b32639caf5055f793dbc4d0a2fc19)
2007-10-10r5329: made the nbt server case sensitiveAndrew Tridgell2-2/+2
(This used to be commit 895071881920a5d6726f377f4367b588deabfb03)
2007-10-10r5304: removed lib/socket/socket.h from includes.hAndrew Tridgell1-0/+1
(This used to be commit b902ea546d2d1327b23f40ddaeeaa8e7e3662454)
2007-10-10r5294: - added a separate NBT-WINS test for WINS operations (register, ↵Andrew Tridgell1-4/+4
refresh, release and query) - change the iface_n_*() functions to return a "const char *" instead of a "struct ipv4_addr" I think that in general we should move towards "const char *" for all IP addresses, as this makes IPv6 much easier, and is also easier to debug. Andrew, when you get a chance, could you fix some of the auth code to use strings for IPs ? - return a NTSTATUS error on bad name queries and node status instead of using rcode. This makes the calling code simpler. - added low level name release code in libcli/nbt/ - use a real IP in the register and wins nbt torture tests, as w2k3 WINS server silently rejects some operations that don't come from the IP being used (eg. it says "yes" to a release, but does not in fact release the name) (This used to be commit bb1ab11d8e0ea0bd9ae34aebeb565d36fe4b495f)
2007-10-10r5276: - added support for NBT_OPCODE_REFRESH2 (type 0x9)Andrew Tridgell5-34/+145
- when registering with a WINS server, initially use multi-homed registration, then switch to name refresh requests. Send refresh requests only to the WINS server that responded to our registration. If that server goes away, then start the registration from scratch. This makes registration more robust to WINS server failure. - send WINS registration requests out on our first interface rather than an unbound interface, to avoid the problem of WACK replies being sent to the wrong port (w2k3 WINS server does this) (This used to be commit f7712ac7468184c07b3e3c10cb7b847ad1791dd2)
2007-10-10r5260: - show an error message on nmblookup failureAndrew Tridgell1-3/+0
- always try to enable broadcast on nbt name sockets (this matches samba3 behaviour better) (This used to be commit 919bc14e7bbc04479cf11f7a7fd4c5e46616ef46)
2007-10-10r5259: make sure we give the ip of the interface that a name query comes inAndrew Tridgell3-8/+25
on as the first IP in a multi-homed reply (This used to be commit a9128f6544d56a637e28430cbd2907acbb978281)
2007-10-10r5251: - renamed the nbtd server side structures to have a nbtd_ prefix, toAndrew Tridgell11-64/+287
be consistent with the function names - added WINS client support to the NBT server. It will do initial WINS registration, and WINS refresh, automatically failing over to secondary WINS servers and handling multi-homed servers where we need to register multiple IPs. - added support for multi-homed name query replies, which are essential for multi-homed registration as the WINS server will query us to ensure we have the names when doing the secondary IPs in multi-homed registration (This used to be commit a1553fa8054dc7d33f5d77f8f95d3ffd90392b2a)
2007-10-10r5222: made the nbtd_self_packet() code more efficientAndrew Tridgell1-6/+16
(This used to be commit 8fe477955d0e28c891281803d625d80cb78a51b0)
2007-10-10r5216: don't defend group names against incoming name registration requestsAndrew Tridgell1-1/+1
(This used to be commit c5f5e1d4012c9f4fd4ea78a4276e6766727a5494)
2007-10-10r5215: register aliases as both client and server node types, so nmblookup ↵Andrew Tridgell1-0/+1
can see them (This used to be commit 3e9788691fe6d618b1e170494e818d0cbdc64eae)
2007-10-10r5214: added support for "netbios aliases" in smb.confAndrew Tridgell1-1/+8
(This used to be commit 3270b07539d9a50763f4f15c7aa8fee028928b29)
2007-10-10r5213: do our name broadcast refresh requests as register packets not refreshAndrew Tridgell1-4/+9
packets, as w2k3 and Samba3 do not defend against broadcast name refresh packets (This used to be commit 3935b5f7c57be46042110911ba5b00ac39b0f41a)
2007-10-10r5212: added checking for receiving our own packets as broadcastsAndrew Tridgell2-0/+35
(This used to be commit 290dbd8cdcfa6a897647768dcbbd03f22fc7cf36)
2007-10-10r5211: added broadcast name defense against both registration and refreshAndrew Tridgell4-7/+124
requests (This used to be commit 9eafe2cacaef64384febe6bb0938294f7c1ee6bf)
2007-10-10r5210: changed server side nbt functions to be prefixed with nbtd_ instead ofAndrew Tridgell8-76/+79
nbt_, so as to more clearly separate them from the client code in libcli/nbt/ (This used to be commit b07a7e35f26204055a99abf72438b5cd7ec35d3b)