Age | Commit message (Collapse) | Author | Files | Lines |
|
- 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 4490a2864e21f957547c30675e5f096a4409e5fb)
|
|
fix uninitialized variable
metze
(This used to be commit e6fb40e51d2742c05c2fbbb96f367710e46ba7ae)
|
|
(This used to be commit 49e61d011c702ae51982d45025ad35e44a6c39d6)
|
|
- 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 752025a0e10bfea646784087b5128841ec127a65)
|
|
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 72eba90465c478ac9d363ed0c88efea27afd158e)
|
|
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 2fd3bbd0449af3702bf473f97474bc1343f7a502)
|
|
remove doublicate NULL-pointer check
metze
(This used to be commit eb1dee09652beb6d401cdc2058427db5f18bea67)
|
|
- open the winsdb in the wrepl server
- add dummy function for setup the replication partners
metze
(This used to be commit da3d18e4545da3bd1841ffc31f253e533f7ea016)
|
|
- 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 e6106e21a0b097ec45948a08f499e44d32db8d2a)
|
|
- 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 42b69461aad3942dde361d61b950445dd39882aa)
|
|
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 66f931071e41dbd871ca8e1c2de8414a6230ab33)
|
|
- 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 c9a8544446312d96ecadcf370af76d9dc5b2531a)
|
|
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 55a2016ba379d035cd559fb55a280e2ee9f15178)
|
|
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 a599d7a4ae881c94be2c2d908a398838549942bb)
|
|
metze
(This used to be commit 573c2df2badbba12fb4d909e7ad4edf6678c7851)
|
|
finding out the old record was gone
- add more printf(), so -d 10 isn't needed any more
metze
(This used to be commit afe5d2ab8522671607faafc3de895e4ff915dab4)
|
|
work with unions
in the main code
- loop also in level 1,2 replies
metze
(This used to be commit c3276bd169961d04f2bd541e6b73ee40df016c3d)
|
|
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 7b0ae77757d347d2b0f5bac3a49e915e24c3ab78)
|
|
--option="dssync:print_pwd_blobs=yes"
metze
(This used to be commit b06de6d39cd21d5096e4041e218370263d8096b0)
|
|
metze
(This used to be commit 4c4f19cc23d256c600819e8b0fddc7734b97e131)
|
|
metze
(This used to be commit e32488667c59c30d66528e8fa31c55037f36cd01)
|
|
UDP or TCP.
Andrew Bartlett
(This used to be commit ae0b4028ff7033dab70687376c2090baa692cf58)
|
|
random values here,
as w2k generates also random stuff here
metze
(This used to be commit e04c78e4e925ce385651eb0e77e3ea7aee9e8008)
|
|
Andrew Bartlett
(This used to be commit 1d7094b8dfd53dfda55db7ce30f47f74864093bf)
|
|
previous patch.
Andrew Bartlett
(This used to be commit 2c537d47ba99885c6462016342b1cc29df4c54c5)
|
|
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 09c95763301c0f7770d56462e8af4169b8c171fb)
|
|
Andrew Bartlett
(This used to be commit 2b1c88f628b27ffda08de3f4ac83c1f3b052a078)
|
|
- add unique vs. normal group section in replica vs replica conflict testing
metze
(This used to be commit b94be6b1191aa18642b334dc1fe1529d977d6c57)
|
|
- test with different owners, and all combinations
of unique records
metze
(This used to be commit 8df80c5649467be6cb4dd532974a083173a5a920)
|
|
metze
(This used to be commit 6f44ae5a6950cee5722758030df862b0f919f43b)
|
|
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 f93353ac41441e0ca7b31c82318005438cd00ce5)
|
|
metze
(This used to be commit 9a9311fa6b4bbb2a385413c056c8be57cdb9eb59)
|
|
(This used to be commit d379fb5f101155edd5f266ae9aaae4e7ac7bd76b)
|
|
Andrew Bartlett
(This used to be commit c0d6126effdf31e0a107c06a400973c731e0e263)
|
|
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 68c5f807fdb99fd605154d455e61a08293cbd2d0)
|
|
dn->canonicalName function abartlet just committed
(This used to be commit 197e8a27f0557869eacd17b74e1b14e0665883b1)
|
|
Use this new function in the client and server for the CrackNames
case, where we particularly need it.
Andrew Bartlett
(This used to be commit 380037ee09ef8293bdb288d6c015e7c80f180a30)
|
|
poke a stick at...
Andrew Bartlett
(This used to be commit e4b21300304f8c66c81fa0d15198c640d87db68e)
|
|
Should fix a valgrind error volker is seeing.
Andrew Bartlett
(This used to be commit 11957c5f37fe0a0be465a9ce9d6d256724c5951c)
|
|
code in Samba3.
Andrew Bartlett
(This used to be commit 36e302bac87d0a07c86cc4c841d376c778630dab)
|
|
(This used to be commit eaf347bdeaaddb655fe72ddb98f3a67ace795937)
|
|
(This used to be commit 295271a329586d0858b6d6b845b8ebba3d035f5f)
|
|
work yet,
but the version before did not either, so we're not worse than before.
One thing this does better is to call the domain init code if it's not there
yet.
Volker
(This used to be commit 35bcfb185b9763a3677d7ac9e748f3a3ba7d2593)
|
|
(This used to be commit 317edeb546ef03507812e5a0fa1fb331073f55c1)
|
|
metze
(This used to be commit f1ee8d4b58d97888dc4c57af34c7604ee9dd2a73)
|
|
good, as it is probably a resource constraint, so if we just try again
we will spin (as the incoming socket will still be readable). Using a
sleep(1) solves this by throtting smbd until the resource constraint
goes away.
if the resource constraint doesn't go away, then at least smbd won't
be spinning chewing cpu
(This used to be commit 7a5a9da477186b5e4fdb34ec64cc97915de4fd8e)
|
|
(This used to be commit 915878d7cebacf499c0c9d264a2dcbc82b521dfd)
|
|
- added note about allowedAttributesEffective (will be needed for mmc)
- fixed some more ldb warnings
(This used to be commit e9e4d81b6976549db8a7668572a5da466fbec4a9)
|
|
ldb_msg_copy_attr() to ensure
that callers (like the ldap server) can talloc_steal the name
(This used to be commit 9c914542cc346758c82f89990c80eb096a9c0959)
|
|
- removed the timestamps module, replacing it with the operational module
- added a ldb_msg_copy_shallow() function which should be used when a module
wants to add new elements to a message on add/modify. This is needed
because the caller might be using a constant structure, or may want to
re-use the structure again
- enabled the UTC time attribute syntaxes in the operational module
(This used to be commit 61e8b010223ac6a0573185008f3719ba29574688)
|