1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

6823 Commits

Author SHA1 Message Date
Stefan Metzmacher
d387193913 r11047:
(This used to be commit 177d60f42a)
2007-10-10 13:44:42 -05:00
Stefan Metzmacher
4c6fb8de2f r11045:
(This used to be commit a2c6969306)
2007-10-10 13:42:35 -05:00
Stefan Metzmacher
5ec6aa1476 r11044:
(This used to be commit 914e16f567)
2007-10-10 13:42:35 -05:00
Stefan Metzmacher
8aebec1be5 r11043: r10362@SERNOX: metze | 2005-09-20 22:37:28 +0200
repare for pull replication support

 metze
(This used to be commit a75402c45f)
2007-10-10 13:42:35 -05:00
Stefan Metzmacher
f197180d8d r11042: r10361@SERNOX: metze | 2005-09-20 22:36:28 +0200
we should only use 255.255.255.255 for group records,
 only when we reply, not when the name is registered.
 the real address is used for replication

 metze
(This used to be commit 45a774c63c)
2007-10-10 13:42:34 -05:00
Stefan Metzmacher
3d7c2443b8 r11041: r10358@SERNOX: metze | 2005-09-20 21:40:03 +0200
fix some missing nbt_peer_socket cases

 metze
(This used to be commit bd25231c57)
2007-10-10 13:42:34 -05:00
Stefan Metzmacher
676b220f3e r11040: r10357@SERNOX: metze | 2005-09-20 21:28:11 +0200
- as the old records are broken sinse the last winsdb_dn() changes, (the dn components order was reversed)
   we can use nicer attribute and objectClass names...

 - use much more verbose error handling for winsdb_*
 - print a debug message when we found a corrupted record

 metze
(This used to be commit 82bad3f3ef)
2007-10-10 13:42:34 -05:00
Stefan Metzmacher
8755cd4a9c r11039: r10352@SERNOX: metze | 2005-09-20 16:50:04 +0200
move stuff the belong to incoming connections only
 into a seperate file wrepl_in_connection.c

 metze
(This used to be commit c2b2b58220)
2007-10-10 13:42:34 -05:00
Stefan Metzmacher
b3d0ac41db r11038: r10351@SERNOX: metze | 2005-09-20 16:11:17 +0200
fix namebuf_len, when type is 0x00

 metze
(This used to be commit 1b2effa01b)
2007-10-10 13:42:33 -05:00
Stefan Metzmacher
2ecb46d595 r11037:
(This used to be commit 6913e33840)
2007-10-10 13:42:33 -05:00
Stefan Metzmacher
2f54bab951 r11036: r10349@SERNOX: metze | 2005-09-20 15:38:31 +0200
we know answer send_requests correctly

 metze
(This used to be commit aecc9ca1cc)
2007-10-10 13:42:33 -05:00
Stefan Metzmacher
681ba379e4 r11035: r10347@SERNOX: metze | 2005-09-20 13:40:24 +0200
make wreplsrv_find_owner public

 metze
(This used to be commit 6fa37c0a2b)
2007-10-10 13:42:33 -05:00
Stefan Metzmacher
e148b33f4b r11034: r10344@SERNOX: metze | 2005-09-20 11:35:54 +0200
create winsdb_record() and winsdb_message() as public functions
 so that they can be used in the wrepl_server/

 metze
(This used to be commit b8b48c8aa5)
2007-10-10 13:42:33 -05:00
Stefan Metzmacher
8bb5bcb674 r11033: r10343@SERNOX: metze | 2005-09-20 11:03:20 +0200
- reply to table_queries
 - reply to a send_request with an empty send_reply

 metze
(This used to be commit a25279f052)
2007-10-10 13:42:32 -05:00
Stefan Metzmacher
e5c518bebd r11032: r10342@SERNOX: metze | 2005-09-20 11:00:26 +0200
- load our wins partners at start time:
 # this is a sample partner record:
 dn: name=SERNOX4-1,CN=PARTNERS
 objectClass: wreplPartner
 name: SERNOX4-9
 address: 172.31.1.1
 ourAddress: 172.31.9.1
 type: 0x3
 pullInterval: 3600

 - go through all winsdb records in the database and create the wins_owner table,
   but don't add ourself to it as out nbt task will update the db too, we refetch
   the local max_versiion, each time we need it, (that typicaly onces per replication cycle)

 metze
(This used to be commit 4490a2864e)
2007-10-10 13:42:32 -05:00
Stefan Metzmacher
56e4a9dd2b r11030: r10338@SERNOX: metze | 2005-09-20 09:20:49 +0200
fix uninitialized variable

 metze
(This used to be commit e6fb40e51d)
2007-10-10 13:42:31 -05:00
Stefan Metzmacher
a76ffb574c r11029:
(This used to be commit 49e61d011c)
2007-10-10 13:42:31 -05:00
Stefan Metzmacher
6f0f39cab1 r11027: r10319@SERNOX: metze | 2005-09-19 18:31:23 +0200
- store the wins owner on the record and the wins owner and expire time on each address
 - we use "0.0.0.0" to mark entries which are registered at the local wins server
 - we use this ldif-format:
 address: 172.31.9.1;winsOwner:0.0.0.0;expireTime:20050923032337.0Z
 address: 172.31.1.1;winsOwner:172.31.9.202;expireTime:20050923032330.0Z

 metze
(This used to be commit 752025a0e1)
2007-10-10 13:42:16 -05:00
Stefan Metzmacher
4c297bac9d r11026: r10318@SERNOX: metze | 2005-09-19 16:38:15 +0200
move to struct winsdb_addr, (I'll add expiry_time and the wins_owner later

 tridge: can you please review the new winsdb_addr_* functions carefull, look for off-by-one bugs, etc.

 metze
(This used to be commit 72eba90465)
2007-10-10 13:42:16 -05:00
Stefan Metzmacher
1d55354663 r11025: r10313@SERNOX: metze | 2005-09-19 12:19:27 +0200
add wrapper functions for the "address" attribute in the winsdb,
 the goal is to store the expiry time and the wins owner per address,
 which is needed for wins replication

 metze
(This used to be commit 2fd3bbd044)
2007-10-10 13:42:16 -05:00
Stefan Metzmacher
0f6791edc6 r11024: r10311@SERNOX: metze | 2005-09-19 11:27:34 +0200
remove doublicate NULL-pointer check

 metze
(This used to be commit eb1dee0965)
2007-10-10 13:42:16 -05:00
Stefan Metzmacher
cbe9ae1234 r11023: r10310@SERNOX: metze | 2005-09-19 11:21:39 +0200
- open the winsdb in the wrepl server
 - add dummy function for setup the replication partners

 metze
(This used to be commit da3d18e454)
2007-10-10 13:42:16 -05:00
Stefan Metzmacher
bab5662021 r11022: r10309@SERNOX: metze | 2005-09-19 11:08:37 +0200
- add winsdb_connect() function, so that the winsdb can be opened by the wrepl_server/ code
 - remove maintaining of a min_version field, as it was implemented incorrect, and is maybe not needed at all
 - fix handling of max_version, (we started with 0, on each server start)

 metze
(This used to be commit e6106e21a0)
2007-10-10 13:42:15 -05:00
Stefan Metzmacher
d49e67f06f r11014: r10139@SERNOX: metze | 2005-09-10 10:32:36 +0200
- w2k just ignores invalid packets, so we do now
 - w2k only checks the assoc_ctx when the opcode has the sepcific obcode bit's set
 - terminate the connection, when getting a WREPL_STOP_ASSOCIATION packet
 - some more special error handling

 proper torture test for all this cases are following later

 metze
(This used to be commit 42b69461aa)
2007-10-10 13:41:30 -05:00
Stefan Metzmacher
ee49ed7a20 r11011: r10124@SERNOX: metze | 2005-09-09 20:22:00 +0200
r10113@SERNOX:  metze | 2005-09-09 18:00:02 +0200
  rename libcli/wins to libcli/wrepl

  metze
  r10115@SERNOX:  metze | 2005-09-09 18:01:49 +0200
  bind client connection to the best interface, to the partner

  metze
  r10116@SERNOX:  jelmer | 2005-09-09 18:23:50 +0200
  Print out a couple more warnings.
(This used to be commit 66f931071e)
2007-10-10 13:41:27 -05:00
Stefan Metzmacher
b2da403af9 r11007: r10109@SERNOX: metze | 2005-09-09 12:29:12 +0200
- move structs to a seperate header file
 - move the code for the wreplsrv_in_call handling to a seperate file

 metze
(This used to be commit c9a8544446)
2007-10-10 13:41:25 -05:00
Stefan Metzmacher
e44c76ebd7 r11004: r10083@SERNOX: metze | 2005-09-08 16:50:32 +0200
This is the start of a WINS-Replicaton server:

 The design is to handle incoming and outgoing connections,
 in one process, because it make thing much easier, and there's
 no need to it otherwise.

 The current code only parses incoming packets, and can reply
 to them, but currently only a standard error packets STOP_ASSOCIATON
 with reason == 4 (I think it means your are not configured as a wins partner of me)

 (the server service is called "wrepl")

 metze
(This used to be commit 55a2016ba3)
2007-10-10 13:41:14 -05:00
Stefan Metzmacher
fccbbf3546 r10997: r11980@SERNOX (orig r10037): metze | 2005-09-05 14:21:40 +0200
add struct nbt_peer_socket and use it instead of passing const char *addr, uint16 port everyhwere

 (tridge: can you review this please, (make test works)

 metze
(This used to be commit a599d7a4ae)
2007-10-10 13:39:52 -05:00
Stefan Metzmacher
0b0c38d899 r10995: fix released vs. released
metze
(This used to be commit 573c2df2ba)
2007-10-10 13:39:52 -05:00
Stefan Metzmacher
00ef27d754 r10993: - make us able to check released records, we can only do that by finding out the old record was gone
- add more printf(), so -d 10 isn't needed any more

metze
(This used to be commit afe5d2ab85)
2007-10-10 13:39:52 -05:00
Stefan Metzmacher
683910f5ef r10991: - create always a valid bind_info28 blocks, so that we don't need to work with unions
in the main code
- loop also in level 1,2 replies

metze
(This used to be commit c3276bd169)
2007-10-10 13:39:51 -05:00
Andrew Tridgell
840364eb97 r10990: the beginnings of a program designed to work out the minimal schema
needed to represent all the current records on a ADS LDAP server. The
idea is we will use something based on this code to work out exactly
what schema elements we will need for our initial ADS schema. I plan
on expanding this code to automatically work out attribute properties,
and write out a schema file that we can load into ldb.

Interestingly, it looks like we only need 43 objectclasses and around
200 attributes to represent all records of a newly installed w2k3 ADS
server.
(This used to be commit 7b0ae77757)
2007-10-10 13:39:51 -05:00
Stefan Metzmacher
94473233fe r10988: print out the password blobs, with
--option="dssync:print_pwd_blobs=yes"

metze
(This used to be commit b06de6d39c)
2007-10-10 13:39:51 -05:00
Stefan Metzmacher
fc94355d8e r10987: add support for tcp kdc requests
metze
(This used to be commit 4c4f19cc23)
2007-10-10 13:39:51 -05:00
Stefan Metzmacher
18bd477428 r10986: loop also when we use mszip compression
metze
(This used to be commit e32488667c)
2007-10-10 13:39:51 -05:00
Andrew Bartlett
8dfa59372f r10985: To aid in testing, this allows us to easily force kerberos to use UDP or TCP.
Andrew Bartlett
(This used to be commit ae0b4028ff)
2007-10-10 13:39:50 -05:00
Stefan Metzmacher
2b14137167 r10984: fix valgrind warnings, I had used that to check if w2k3 accept random values here,
as w2k generates also random stuff here

metze
(This used to be commit e04c78e4e9)
2007-10-10 13:39:50 -05:00
Andrew Bartlett
5a30cd8097 r10983: Another case were we want to avoid DNS for unqualified names.
Andrew Bartlett
(This used to be commit 1d7094b8df)
2007-10-10 13:39:50 -05:00
Andrew Bartlett
2c6ecae4e6 r10982: Move credentials.h into auth/credentials, and add flags needed by
previous patch.

Andrew Bartlett
(This used to be commit 2c537d47ba)
2007-10-10 13:39:50 -05:00
Andrew Bartlett
f7ff0540d2 r10981: Pull code to decide between and implement NTLMv2, NTLM and LM
authentication out of the various callers and into the kitchen
sink.. err, credentials subsystem.

This should ensure consistant logic, as well as get us one step closer
to security=server operation in future.

Andrew Bartlett
(This used to be commit 09c9576330)
2007-10-10 13:39:50 -05:00
Andrew Bartlett
1f9703de40 r10980: Use ldb_attr_cmp and ldb_dn_escape_value
Andrew Bartlett
(This used to be commit 2b1c88f628)
2007-10-10 13:39:49 -05:00
Stefan Metzmacher
9dff4c464a r10973: - make debugging a bit easier
- add unique vs. normal group section in replica vs replica conflict testing

metze
(This used to be commit b94be6b119)
2007-10-10 13:39:49 -05:00
Stefan Metzmacher
2ac7af20a0 r10971: - test static records with the same owner too
- test with different owners, and all combinations
  of unique records

metze
(This used to be commit 8df80c5649)
2007-10-10 13:39:49 -05:00
Stefan Metzmacher
a53bec24c1 r10967: move the function in the order they are used
metze
(This used to be commit 6f44ae5a69)
2007-10-10 13:39:49 -05:00
Stefan Metzmacher
3158f35256 r10965: - only run the cross connection assoc test when running with -X
this sometimes crashes the windows server
- add the first replication conflict tests
  we now test that replica records are always overwritten
  when the owner is the same

metze
(This used to be commit f93353ac41)
2007-10-10 13:39:49 -05:00
Stefan Metzmacher
7b77baff16 r10959: fix compiler warnings
metze
(This used to be commit 9a9311fa6b)
2007-10-10 13:39:48 -05:00
Andrew Tridgell
e2ec8e5e80 r10957: make a comment clearer
(This used to be commit d379fb5f10)
2007-10-10 13:39:48 -05:00
Andrew Bartlett
52cc7a5501 r10956: Tridge thought some comments might be a good idea :-)
Andrew Bartlett
(This used to be commit c0d6126eff)
2007-10-10 13:39:48 -05:00
Andrew Tridgell
6b7d7f22e7 r10955: finally worked out why our computer accounts were being identified as users in mmc.
The problem was that the samdb module was auto-adding objectClass=user
for these accounts. That would be OK, as computer accounts are
supposed to be in that objectClass, but mmc cares about the order of
the values in the objectClass attribute! It looks for the last value,
and takes that as the value to use when deciding how to manipulate the record.

So, this patch adds an explicit objectClass=user to the record when it
gets created, which tells the samdb module to not add it as well. That
fixes the order. I suspect we are missing something else though - is
objectClass supposed to auto-sort based on the schema?
(This used to be commit 68c5f807fd)
2007-10-10 13:39:48 -05:00
Andrew Tridgell
0fa924bb8f r10954: added support for canonicalName in the operational module, using the
dn->canonicalName function abartlet just committed
(This used to be commit 197e8a27f0)
2007-10-10 13:39:46 -05:00