12 years agor11214: Remove scons files (see
Jelmer Vernooij [Thu, 20 Oct 2005 10:04:57 +0000 (10:04 +0000)]
r11214: Remove scons files (see
(This used to be commit 7fffc5c9178158249be632ac0ca179c13bd1f98f)

12 years agor11212: Enable sealing of data with raw krb5, consolidate some code into the
Andrew Bartlett [Thu, 20 Oct 2005 07:36:08 +0000 (07:36 +0000)]
r11212: Enable sealing of data with raw krb5, consolidate some code into the
main gensec_krb5_start and always ask for sequence numbers.

Andrew Bartlett
(This used to be commit 801cd6c6ffa96ac79eb425adf7c97eb2cfcbed4a)

12 years agor11211: Append an error message to COL_INFO if the RPC call returned an error.
Tim Potter [Thu, 20 Oct 2005 07:06:49 +0000 (07:06 +0000)]
r11211: Append an error message to COL_INFO if the RPC call returned an error.
(This used to be commit b70dd7a757e7341d90c89dffa7e1c4eab790020a)

12 years agor11210: Log registry open function name when starting hive tests.
Tim Potter [Thu, 20 Oct 2005 06:31:51 +0000 (06:31 +0000)]
r11210: Log registry open function name when starting hive tests.
(This used to be commit 3416a6d78f205f9d3fd73161cbed6dcd9c2bfdf8)

12 years agor11209: We can't read the priorSecret unless we ask for it.
Andrew Bartlett [Thu, 20 Oct 2005 05:09:58 +0000 (05:09 +0000)]
r11209: We can't read the priorSecret unless we ask for it.

Andrew Bartlett
(This used to be commit ee9a93688d31d8da91b81e9b0f6fac3fa4894c13)

12 years agor11208: Add DNS entries for finding the kpasswd server to the default zone.
Andrew Bartlett [Thu, 20 Oct 2005 05:09:14 +0000 (05:09 +0000)]
r11208: Add DNS entries for finding the kpasswd server to the default zone.

Andrew Bartlett
(This used to be commit 7e01ff11fdcd70b54e30b438076bf1293638c61e)

12 years agor11207: Correct principal search define
Andrew Bartlett [Thu, 20 Oct 2005 05:08:24 +0000 (05:08 +0000)]
r11207: Correct principal search define
(This used to be commit 90cf4f8e1a1051a58635e126d56118701875bc5d)

12 years agor11206: It appears to me that any account may operate as a server.
Andrew Bartlett [Thu, 20 Oct 2005 04:56:47 +0000 (04:56 +0000)]
r11206: It appears to me that any account may operate as a server.

Andrew Bartlett
(This used to be commit 3b6c9c7cbc1d5c4dd32d3c1db18ddbccbb8cf17a)

12 years agor11205: Another test for cracknames.
Andrew Bartlett [Thu, 20 Oct 2005 04:55:56 +0000 (04:55 +0000)]
r11205: Another test for cracknames.

Andrew Bartlett
(This used to be commit 3810282a24b8aea36627f43321e76f34057e3135)

12 years agor11204: Allow us to read credentials from secrets.ldb without a
Andrew Bartlett [Thu, 20 Oct 2005 04:53:42 +0000 (04:53 +0000)]
r11204: Allow us to read credentials from secrets.ldb without a
secureChannelType (non machine join records).

Andrew Bartlett
(This used to be commit 3dddf497ccf246af435e6e2802d8f3745f2e4fd3)

12 years agor11203: Use different variable names to make it easier to tell which assert fired.
Andrew Bartlett [Thu, 20 Oct 2005 04:35:30 +0000 (04:35 +0000)]
r11203: Use different variable names to make it easier to tell which assert fired.

Andrew Bartlett
(This used to be commit df6a40c2d261804f1cd4feb24572135a4c62a802)

12 years agor11202: Add more structs to structs.h
Andrew Bartlett [Thu, 20 Oct 2005 04:34:26 +0000 (04:34 +0000)]
r11202: Add more structs to structs.h
(This used to be commit b0f11d85214fe83a8ce738cfa597f5cf9f5d3897)

12 years agor11201: New filters for searching in secrets.ldb
Andrew Bartlett [Thu, 20 Oct 2005 03:55:35 +0000 (03:55 +0000)]
r11201: New filters for searching in secrets.ldb

Andrew Bartlett
(This used to be commit b48c6df60c15ee6134a49d163bed90ea8b85550b)

12 years agor11200: Reposition the creation of the kerberos keytab for GSSAPI and Krb5
Andrew Bartlett [Thu, 20 Oct 2005 03:47:55 +0000 (03:47 +0000)]
r11200: Reposition the creation of the kerberos keytab for GSSAPI and Krb5
authentication.  This pulls the creating of the keytab back to the
credentials code, and removes the special case of 'use keberos keytab
= yes' for now.

This allows (and requires) the callers to specify the credentials for
the server credentails to GENSEC.  This allows kpasswdd (soon to be
added) to use a different set of kerberos credentials.

The 'use kerberos keytab' code will be moved into the credentials
layer, as the layers below now expect a keytab.

We also now allow for the old secret to be stored into the
credentials, allowing service password changes.

Andrew Bartlett
(This used to be commit 205f77c579ac8680c85f713a76de5767189c627b)

12 years agor11199: Push an objectSid into the schannel state database, to match the new header.
Andrew Bartlett [Thu, 20 Oct 2005 03:38:01 +0000 (03:38 +0000)]
r11199: Push an objectSid into the schannel state database, to match the new header.

Andrew Bartlett
(This used to be commit a665b56085cbf89c6deaeef0deaed31fcbc07458)

12 years agor11198: The recent changes to netlogon changed this from a RID to a SID.
Andrew Bartlett [Thu, 20 Oct 2005 03:34:49 +0000 (03:34 +0000)]
r11198: The recent changes to netlogon changed this from a RID to a SID.

Andrew Bartlett
(This used to be commit 24dbf3435277a51dd49c5e2189fc6655260eddf4)

12 years agor11197: indent
Andrew Bartlett [Thu, 20 Oct 2005 03:21:34 +0000 (03:21 +0000)]
r11197: indent
(This used to be commit a432ba105cbf2ea7b9010365c0a7d1dcc9ff5f7f)

12 years agor11196: Clean up memory leaks (pointed out by vl), and handle the case where
Andrew Bartlett [Thu, 20 Oct 2005 03:20:43 +0000 (03:20 +0000)]
r11196: Clean up memory leaks (pointed out by vl), and handle the case where
the client doesn't guess correctly on the mech to use.  It must back
off and try the mech the server selected from the list.

I'm not particularly attached to our SPNEGO parser, so while I can't
easily use the SPNEGO application logic in Heimdal, I'm going to look
closely at using the asn1 routines to avoid some pain here.

Andrew Bartlett
(This used to be commit 929217387449270b60c3f825dca3b3cae5a4f9d1)

12 years agor11195: Add a new helper function (needed by my kpasswdd work, but hooked in
Andrew Bartlett [Thu, 20 Oct 2005 03:17:42 +0000 (03:17 +0000)]
r11195: Add a new helper function (needed by my kpasswdd work, but hooked in
for netlogon as well) to change/set a user's password, given only
their SID.

This avoids the callers doing the lookups, and also performs the
actual 'set', as these callers do not wish any further buisness with
the entry.

Andrew Bartlett
(This used to be commit 060a2a7bcca6b58d50bc4e0930c13616742a55d3)

12 years agor11194: Use the special ldb attribute "canonicalName" (therefore testing that
Andrew Bartlett [Thu, 20 Oct 2005 01:48:11 +0000 (01:48 +0000)]
r11194: Use the special ldb attribute "canonicalName" (therefore testing that
codepath) in DRSUAPI CrackNames.

Fix the NT4 account return value.

Andrew Bartlett
(This used to be commit 2513c02c64b489ebf167e33fdb4ac51ce8783c04)

12 years agor11193: Implement wbinfo -m
Volker Lendecke [Wed, 19 Oct 2005 21:53:03 +0000 (21:53 +0000)]
r11193: Implement wbinfo -m
(This used to be commit 12a800bc8541c4160a534d1edcaeb6774776e18d)

12 years agor11192: Too many contexts around... :-)
Volker Lendecke [Wed, 19 Oct 2005 21:19:49 +0000 (21:19 +0000)]
r11192: Too many contexts around... :-)
(This used to be commit 134e104c3ff39e5f3ebdaf9168df78a156490ed7)

12 years agor11189: add some more special group vs. special group tests,
Stefan Metzmacher [Wed, 19 Oct 2005 17:48:55 +0000 (17:48 +0000)]
r11189: add some more special group vs. special group tests,
to make sure that replicas from the same owner are blinding overwritten
in all cases

(This used to be commit 466baf737aedf240ff372ab8e8c708299102d1fa)

12 years agor11188: - add multi homed vs. multi homed section
Stefan Metzmacher [Wed, 19 Oct 2005 16:52:50 +0000 (16:52 +0000)]
r11188: - add multi homed vs. multi homed section

(This used to be commit 838323e58fe4e748a17100c4cd13788059dd12c6)

12 years agor11187: in case the msDS-KeyVersionNumber is replicated (I didn't assume this...)
Stefan Metzmacher [Wed, 19 Oct 2005 16:30:02 +0000 (16:30 +0000)]
r11187: in case the msDS-KeyVersionNumber is replicated (I didn't assume this...)
show the string in the debug output, and show it with

(This used to be commit 98c1e8e3df90c05691a12bb25357fd75da419c5c)

12 years agor11186: - get rid of some .extra = True cases
Stefan Metzmacher [Wed, 19 Oct 2005 16:25:58 +0000 (16:25 +0000)]
r11186: - get rid of some .extra = True cases
- add multihomed vs unique section
- update conflict handling for the above case

(This used to be commit c043e56efd3d72cdd5b17c78512e12285c87f221)

12 years agor11185: - resolve attid for "supplementalCredentials" into a name
Stefan Metzmacher [Wed, 19 Oct 2005 15:34:39 +0000 (15:34 +0000)]
r11185: - resolve attid for "supplementalCredentials" into a name
- print "supplementalCredentials" also when --option="dssync:print_pwd_blobs=yes"
  is used

abartlet: this field may contain the krb5 keys...

(This used to be commit 26c69348ca3ae10128df9832f8b4d9c1024631e2)

12 years agor11184: Remove test that checks whether ftruncate() needs root, because I can't
Jelmer Vernooij [Wed, 19 Oct 2005 14:35:25 +0000 (14:35 +0000)]
r11184: Remove test that checks whether ftruncate() needs root, because I can't
find the file it tries to use (build/tests/ftruncroot.c) and the value
it defines is not used anywhere.
(This used to be commit 97bbf4a46035becaee50d242364146e3529cf631)

12 years agor11182: Explicitly add "." to perl include path so that perl doesn't use the
Jelmer Vernooij [Wed, 19 Oct 2005 14:08:39 +0000 (14:08 +0000)]
r11182: Explicitly add "." to perl include path so that perl doesn't use the
Config module instead of the configure-generated on case-insensitive
filesystems (MacOSX, OpenVMS)
(This used to be commit 47b8095a0a0e7f352860999df3b131cab3e8a2b9)

12 years agor11181: Implement wbinfo -s and wbinfo --user-sids. The patch is so large because
Volker Lendecke [Wed, 19 Oct 2005 13:45:44 +0000 (13:45 +0000)]
r11181: Implement wbinfo -s and wbinfo --user-sids. The patch is so large because
--user-sids required the extension to trusted domains.

Implement "winbind sealed pipes" parameter for debugging purposes.

(This used to be commit 3821a17bdb68b2f1389b5a150502c057d28569d2)

12 years agor11179: revert to the old code, till jelmer find a solution how to
Stefan Metzmacher [Wed, 19 Oct 2005 09:43:48 +0000 (09:43 +0000)]
r11179: revert to the old code, till jelmer find a solution how to
handle a UTF16 string in a uint8 array

(This used to be commit d13315f3b135228febcbe9b99d3550363c21da81)

12 years agor11178: add some logic functions for the replica_vs_replica conflict handling
Stefan Metzmacher [Wed, 19 Oct 2005 09:41:54 +0000 (09:41 +0000)]
r11178: add some logic functions for the replica_vs_replica conflict handling
to our winsrepl server, but it handles only the simple cases (without merging)
and we still didn't apply records to our wins.ldb, we just print out what we would do

(This used to be commit e4edeeaa0a808c6bcdf022eec1257e796c1c0700)

12 years agor11177: move unique vs * and normal group vs * into this form
Stefan Metzmacher [Wed, 19 Oct 2005 07:47:29 +0000 (07:47 +0000)]
r11177: move unique vs * and normal group vs * into this form


as it seems that is all we need to test,
and w2k3 only decides between ACTIVE and NON-ACTIVE (REALEASED or TOMBSTONE)
when it gets new replica objects

also I have removed all the extra test, we only test the worst cases now,
and this will make the algorithms more clear when you look at the output
of the NBT-WINSREPLICATION torture test

(This used to be commit 7545e4e7160864f5feedd35cf90507e47d7cf469)

12 years agor11176: - add multi homed vs. special group section
Stefan Metzmacher [Wed, 19 Oct 2005 07:24:36 +0000 (07:24 +0000)]
r11176: - add multi homed vs. special group section

(This used to be commit 62ddca0e1f3d7484b32df7f5a56eca4761289c00)

12 years agor11175: - add multi homed vs. normal group section
Stefan Metzmacher [Wed, 19 Oct 2005 07:12:26 +0000 (07:12 +0000)]
r11175: - add multi homed vs. normal group section

(This used to be commit 891416b79eeec3d6c9391181f86b104b887774a2)

12 years agor11174: - add special group vs. multi homed section
Stefan Metzmacher [Wed, 19 Oct 2005 07:00:31 +0000 (07:00 +0000)]
r11174: - add special group vs. multi homed section
- disable special group vs. special group,
  I need to look closer at this, as I'm getting strange timeouts
  randomly, so the server might be doing some challegnes while
  doing the merging of special group records, witch reaches

(This used to be commit 7479760cbf5fe818c31b7795dc43b413800a63bd)

12 years agor11173: print out the correct messages
Stefan Metzmacher [Wed, 19 Oct 2005 06:30:05 +0000 (06:30 +0000)]
r11173: print out the correct messages

(This used to be commit d8e7e914bf29f7ae0b7cc1f47ea9f8cca210d8df)

12 years agor11172: - start with special group vs. special group testing
Stefan Metzmacher [Wed, 19 Oct 2005 06:13:53 +0000 (06:13 +0000)]
r11172: - start with special group vs. special group testing

(This used to be commit ba2c100be6eb1d352df762d213fc197f11f69da5)

12 years agor11171: fix the build
Stefan Metzmacher [Wed, 19 Oct 2005 06:09:14 +0000 (06:09 +0000)]
r11171: fix the build

(This used to be commit 0d948cf430f34757a17170cdd26ac6b87341a75f)

12 years agor11146: make sure we get the expected amount of addresses
Stefan Metzmacher [Tue, 18 Oct 2005 14:58:51 +0000 (14:58 +0000)]
r11146: make sure we get the expected amount of addresses

(This used to be commit 9903a47151a96177e835ba45450ad12a2e969ee2)

12 years agor11144: - add special group vs. normal group section
Stefan Metzmacher [Tue, 18 Oct 2005 14:48:12 +0000 (14:48 +0000)]
r11144: - add special group vs. normal group section

(This used to be commit 03a8ff89d0f40eed3a8e0f94d2e756d9c648b564)

12 years agor11142: - add special group vs. unique section
Stefan Metzmacher [Tue, 18 Oct 2005 14:18:58 +0000 (14:18 +0000)]
r11142: - add special group vs. unique section

(This used to be commit ba1727623675def77d4bf3a9bf643f80c7e168c2)

12 years agor11141: Re-add paranoid string terminator check
Jelmer Vernooij [Tue, 18 Oct 2005 14:12:33 +0000 (14:12 +0000)]
r11141: Re-add paranoid string terminator check
(This used to be commit 55805b5ed9493160ff17c26d2e1361947f368707)

12 years agor11122: Fix some talloc hierarchy errors
Volker Lendecke [Mon, 17 Oct 2005 15:20:52 +0000 (15:20 +0000)]
r11122: Fix some talloc hierarchy errors
(This used to be commit 449cc714b882d6ebea3e1cbf92e204efba98b6cb)

12 years agor11121: - add normal groups vs. multihomed section
Stefan Metzmacher [Mon, 17 Oct 2005 15:12:03 +0000 (15:12 +0000)]
r11121: - add normal groups vs. multihomed section
- make sure we test the worst case,
  so that we don't need to test everything...
  - same ip(s) => not replace
  - different ip(s) => replace

(This used to be commit 4a22ce09b4cad7bb3d60e45f25fb19c36efb8dec)

12 years agor11120: calling_name is used later in sesssetup_nt1, so hang the names to the right
Volker Lendecke [Mon, 17 Oct 2005 15:08:52 +0000 (15:08 +0000)]
r11120: calling_name is used later in sesssetup_nt1, so hang the names to the right
talloc context.

(This used to be commit 256cf928d786b2533953505aea20ec80a25c6929)

12 years agor11119: add normal group vs. special group section
Stefan Metzmacher [Mon, 17 Oct 2005 14:32:16 +0000 (14:32 +0000)]
r11119: add normal group vs. special group section

(This used to be commit 13703b5c35e4473d0ab6b595f41f4cc35c18f81e)

12 years agor11117: add a normal group vs. normal group section
Stefan Metzmacher [Mon, 17 Oct 2005 14:12:54 +0000 (14:12 +0000)]
r11117: add a normal group vs. normal group section

(This used to be commit 9a7689c745e9fa9f40c46fa041a502967fd93ccc)

12 years agor11116: - don't display cleanup updates
Stefan Metzmacher [Mon, 17 Oct 2005 13:17:42 +0000 (13:17 +0000)]
r11116: - don't display cleanup updates
- add unique vs. multi homed section

(This used to be commit 7f8c26cd33a5dffd672d0995cf227177bc21a20e)

12 years agor11115: add unique vs special group section
Stefan Metzmacher [Mon, 17 Oct 2005 12:40:45 +0000 (12:40 +0000)]
r11115: add unique vs special group section

(This used to be commit 980e1a39eb039ebef3ca750eaf67bb87fd6f6980)

12 years agor11114: - fixed error handling on bad bind in ildap client
Andrew Tridgell [Mon, 17 Oct 2005 11:50:34 +0000 (11:50 +0000)]
r11114: - fixed error handling on bad bind in ildap client

- added nicer error display, giving a string version of the error code
(This used to be commit 5ec486bb81536b38a5f40cae7555cbcbbfa52263)

12 years agor11113: fixed two small bugs in newuser
Andrew Tridgell [Mon, 17 Oct 2005 11:33:13 +0000 (11:33 +0000)]
r11113: fixed two small bugs in newuser

- randpass() is now in the random ejs module, not global

- don't dereference the undefined variable on getopt failure
(This used to be commit 7e338c23f5ac351b362a9e07fd81ec07bc700484)

12 years agor11112: listen on the global catalog ldap server port as well if we are a
Andrew Tridgell [Mon, 17 Oct 2005 11:32:20 +0000 (11:32 +0000)]
r11112: listen on the global catalog ldap server port as well if we are a
PDC. I suspect we should behave slightly differently on the two ports,
but this is a lot closer than not listening at all. When creating a
user with mmc the global catalog port is used to check for an existing
(This used to be commit f8430c3f41313d0a71cea23e1a2ef98f088aff44)

12 years agor11111: fixed a talloc error in the dn shortcut code
Andrew Tridgell [Mon, 17 Oct 2005 11:27:29 +0000 (11:27 +0000)]
r11111: fixed a talloc error in the dn shortcut code
(This used to be commit e28a334eeb8fa22f686d0c1dc48b2977d85b9e10)

12 years agor11110: make ldb_oom() also set the ldb error string
Andrew Tridgell [Mon, 17 Oct 2005 11:27:03 +0000 (11:27 +0000)]
r11110: make ldb_oom() also set the ldb error string
(This used to be commit b6e8018a3b2326c3d1df4811a0581c5c0967bfd3)

12 years agor11109: fixed the error code return from most ldb functions (the change to use
Andrew Tridgell [Mon, 17 Oct 2005 11:26:23 +0000 (11:26 +0000)]
r11109: fixed the error code return from most ldb functions (the change to use
ldb_transaction_cancel() broke it)
(This used to be commit dc41994ea72c7c7f571efa009930cf36d7a9897a)

12 years agor11108: - always test the old and new record
Stefan Metzmacher [Mon, 17 Oct 2005 10:55:50 +0000 (10:55 +0000)]
r11108: - always test the old and new record
- check that the record is the same as what we pushed to the server
  (we need to verify the ip-addresses later too...)

(This used to be commit f59e90299d1060a3c61ee24bdf4a2a13aac1bccf)

12 years agor11107: Include 0 byte
Jelmer Vernooij [Mon, 17 Oct 2005 08:34:05 +0000 (08:34 +0000)]
r11107: Include 0 byte
(This used to be commit 407df9628e383822680af766dd94532e59397382)

12 years agor11106: Make the KDC handler plugable, as I want to drop kpasswdd into exactly
Andrew Bartlett [Mon, 17 Oct 2005 01:01:59 +0000 (01:01 +0000)]
r11106: Make the KDC handler plugable, as I want to drop kpasswdd into exactly
the same spot (it has identical TCP sementics).

Andrew Bartlett
(This used to be commit 84d6118e8762608af0945279d80ad0f898e693d9)

12 years agor11105: Warn if conformant arrays are not at the end of a struct
Jelmer Vernooij [Sun, 16 Oct 2005 23:47:09 +0000 (23:47 +0000)]
r11105: Warn if conformant arrays are not at the end of a struct
Support conformant [string] arrays
Eliminate utf8string

This breaks xattr binary compatibility with previous versions - is that a
(This used to be commit 7596c708ba6642473319a1b699a5a910a639e50d)

12 years agor11104: Fix LOCAL-PAC test
Jelmer Vernooij [Sun, 16 Oct 2005 23:39:13 +0000 (23:39 +0000)]
r11104: Fix LOCAL-PAC test
(This used to be commit 22d0e4a9bf853fe67c402ce3ba6d950e753ab4d2)

12 years agor11103: Eliminate ascstr
Jelmer Vernooij [Sun, 16 Oct 2005 19:21:17 +0000 (19:21 +0000)]
r11103: Eliminate ascstr
(This used to be commit c8a0511f37f8cff3e949ffda0bb7fae714d5bbb4)

12 years agor11102: Remove unistr_noterm
Jelmer Vernooij [Sun, 16 Oct 2005 19:12:02 +0000 (19:12 +0000)]
r11102: Remove unistr_noterm
(This used to be commit bb1ed44f45020f1e11d928f5130a889c11ee59c4)

12 years agor11101: Remove last instances of unistr
Jelmer Vernooij [Sun, 16 Oct 2005 18:59:57 +0000 (18:59 +0000)]
r11101: Remove last instances of unistr
(This used to be commit 7e057e6bdaf82bf8acdfc5d656dd75f367e70bf2)

12 years agor11100: Replace unistr with [string,charset(UTF16)]
Jelmer Vernooij [Sun, 16 Oct 2005 18:54:31 +0000 (18:54 +0000)]
r11100: Replace unistr with [string,charset(UTF16)]
(This used to be commit 48f45927ceb4f7d39c4cc47b3b843e43a53b7f2b)

12 years agor11099: Replace unistr with [string] equivalent
Jelmer Vernooij [Sun, 16 Oct 2005 18:33:56 +0000 (18:33 +0000)]
r11099: Replace unistr with [string] equivalent
(This used to be commit 6a8291c80ee814a6bdc092b3ef53f450f30b44a0)

12 years agor11098: Replace string with [string]
Jelmer Vernooij [Sun, 16 Oct 2005 17:17:57 +0000 (17:17 +0000)]
r11098: Replace string with [string]
(This used to be commit 1ac8c96349c1241f75f7a133cfefa0df5aaae18e)

12 years agor11097: Allow pointers in "const"
Jelmer Vernooij [Sun, 16 Oct 2005 17:17:42 +0000 (17:17 +0000)]
r11097: Allow pointers in "const"
(This used to be commit 88fcd56fb55ac3f7e1eef3b3c92a2593c79599d3)

12 years agor11096: Eliminate pointer_default_top()
Jelmer Vernooij [Sun, 16 Oct 2005 15:47:28 +0000 (15:47 +0000)]
r11096: Eliminate pointer_default_top()
(This used to be commit b773d848e854394f36351f97130a20a245367b2c)

12 years agor11095: Implement wb_getuserdomgroups.
Volker Lendecke [Sun, 16 Oct 2005 12:43:09 +0000 (12:43 +0000)]
r11095: Implement wb_getuserdomgroups.

Tridge, if you have the time, you might want to look at a problem I'm having
with unix domain stream sockets. From a comment in this commit:

/* Using composite_trigger_error here causes problems with the client
 * socket. Linux 2.6.8 gives me a ECONNRESET on the next read after
 * writing the reply when I don't wait the 100 milliseconds. */

This is in winbind/wb_cmd_userdomgroups.c:93.

The problem I have is that I can not *immediately* send an error reply to the
client because the next receive fails. Waiting 100 milliseconds helps. It
might also be a problem with epoll(), I don't really know.

I'd appreciate if you took a brief look at this, maybe I'm doing something


(This used to be commit 3e535cce743710a68a4264e4f66e9c0c4d6770c6)

12 years agor11094: Connect to SAM, implement getdcname
Volker Lendecke [Sat, 15 Oct 2005 22:01:15 +0000 (22:01 +0000)]
r11094: Connect to SAM, implement getdcname
(This used to be commit a14398715eceecf204caf815a8769ba8214d0576)

12 years agor11093: Implement wb_queue_domain_send: If the domain is not yet initialized, do...
Volker Lendecke [Sat, 15 Oct 2005 19:18:05 +0000 (19:18 +0000)]
r11093: Implement wb_queue_domain_send: If the domain is not yet initialized, do that
first. And if a request is being processed, queue it. This correctly survived
3 endless loops with wbinfo's doing different things while starting up smbd.

The number of indirections starts to become a bit scary, but what can you do
without a decent programming language that provides closures :-)

One thing that we might consider is to auto-generate async rpc requests that
return composite_context structs instead of rpc_requests. Otherwise I'd have
to write a lot of wrappers like composite_netr_LogonSamLogon_send.

The alternative would be to write two versions of wb_queue_domain_send which I
would like to avoid. This is cluttered enough already.

(This used to be commit 66c1b674f9870de73cce0e611909caf9eff34baa)

12 years agor11092: run NBT-WINSREPLICATION-QUICK test with make test
Stefan Metzmacher [Sat, 15 Oct 2005 12:30:58 +0000 (12:30 +0000)]
r11092: run NBT-WINSREPLICATION-QUICK test with make test

(This used to be commit 2577c02a5105449b759e7eeb00c446730dbe22d3)

12 years agor11091: add a NBT-WINSREPLICATION-QUICK test that passed the current samba4 server
Stefan Metzmacher [Sat, 15 Oct 2005 12:30:08 +0000 (12:30 +0000)]
r11091: add a NBT-WINSREPLICATION-QUICK test that passed the current samba4 server

(This used to be commit 772467c8d487578b3541ffd1b1e07516097d1325)

12 years agor11090: we need this to run correct under socket_wrapper
Stefan Metzmacher [Sat, 15 Oct 2005 12:23:33 +0000 (12:23 +0000)]
r11090: we need this to run correct under socket_wrapper

(This used to be commit 3f7b09a3086a8b6d255bc3fc5cd8882e12f05d10)

12 years agor11089: start the winsreplication task when we run with wins support = yes
Stefan Metzmacher [Sat, 15 Oct 2005 11:04:46 +0000 (11:04 +0000)]
r11089: start the winsreplication task when we run with wins support = yes

(This used to be commit d49a1d2b15c7d17a5d6928a971fbe87d13686c2d)

12 years agor11088: don't try to set empty strings values as attributes
Stefan Metzmacher [Sat, 15 Oct 2005 10:55:30 +0000 (10:55 +0000)]
r11088: don't try to set empty strings values as attributes
our ldb doesn't support them, does w2k3 LDAP supports them?

(This used to be commit 97cb22bd9d7f786e9c1609ce97fcd8c54e5725bf)

12 years agor11087: - add type,name,scope as attributes to winsRecords,
Stefan Metzmacher [Sat, 15 Oct 2005 10:15:42 +0000 (10:15 +0000)]
r11087: - add type,name,scope as attributes to winsRecords,
  so you can use them in search filters,
  only for administration not used inside the winserver code
- fix the samba3 ugrade scripts to create a correct samba4 wins.ldb

(This used to be commit 9f3b6746d86583c48097da48c28f50f075bbd3e3)

12 years agor11086: add sys.unix2nttime() function
Stefan Metzmacher [Sat, 15 Oct 2005 10:04:33 +0000 (10:04 +0000)]
r11086: add sys.unix2nttime() function

(This used to be commit a3abf10d431f82b12b0795d5bc217c8ec3ce89f7)

12 years agor11085: as ejs doesn't support '&' '|' bitwise AND and OR,
Stefan Metzmacher [Sat, 15 Oct 2005 09:32:04 +0000 (09:32 +0000)]
r11085: as ejs doesn't support '&' '|' bitwise AND and OR,
we need some helper functions for this

(This used to be commit e27e36909d367748fc653ddc0fd1c699b77780e9)

12 years agor11084: - allow hex numbers with 'a'...'f' digits to be parsed
Stefan Metzmacher [Sat, 15 Oct 2005 09:28:56 +0000 (09:28 +0000)]
r11084: - allow hex numbers with 'a'...'f' digits to be parsed
- parse hex numbers correct

tridge: how could we submit this to the upstream appweb library?

(This used to be commit 70cde83c134f2d8bb2f6c0649b7f87a8846e63a4)

12 years agor11083: use the addresses from the record
Stefan Metzmacher [Sat, 15 Oct 2005 09:25:43 +0000 (09:25 +0000)]
r11083: use the addresses from the record

(This used to be commit 5d46cdd1ee8ae2a49a81f0a36a4c3f12d7635de9)

12 years agor11082: Fix a segfault
Volker Lendecke [Sat, 15 Oct 2005 08:17:22 +0000 (08:17 +0000)]
r11082: Fix a segfault
(This used to be commit 576a724bf1350ba7f38f95118224bdee98e0be5a)

12 years agor11081: Remember to remove unused variables.
Jeremy Allison [Sat, 15 Oct 2005 00:50:03 +0000 (00:50 +0000)]
r11081: Remember to remove unused variables.
(This used to be commit bfa41398a65037c6017b0af0ea1f0423011df150)

12 years agor11080: Narrowing down on the #1828 PPC bug. The PPC client sends an
Jeremy Allison [Sat, 15 Oct 2005 00:48:47 +0000 (00:48 +0000)]
r11080: Narrowing down on the #1828 PPC bug. The PPC client sends an
initial NTLMSSP negotiate blob of only 16 bytes - no strings
added ! (So don't try parsing them).
(This used to be commit 42d93a317ab424a0720620b83c285b5118bcc06f)

12 years agor11077: Fix [string] for Samba3
Jelmer Vernooij [Sat, 15 Oct 2005 00:45:16 +0000 (00:45 +0000)]
r11077: Fix [string] for Samba3
(This used to be commit 2f76e2a6bf8ff99ac2f9b61669d09d76a2fe920a)

12 years agor11076: Still working on bug #1828, PPC hell. The PPC client sends the
Jeremy Allison [Fri, 14 Oct 2005 22:04:24 +0000 (22:04 +0000)]
r11076: Still working on bug #1828, PPC hell. The PPC client sends the
NTLMSSP client and domain strings as Unicode, even when setting
flags as OEM. Cope with this.
(This used to be commit 77399e1cecc44674c3398143d8a5bb59c600abcd)

12 years agor11070: Fix a cut&paste error, now wbinfo can properly separate domain and user...
Volker Lendecke [Fri, 14 Oct 2005 21:41:08 +0000 (21:41 +0000)]
r11070: Fix a cut&paste error, now wbinfo can properly separate domain and user...

(This used to be commit 6e4f774a4948691440362663418243623d1f51f7)

12 years agor11068: Fix pam_auth_crap, remove the sync code. I don't know what it was when I
Volker Lendecke [Fri, 14 Oct 2005 21:05:45 +0000 (21:05 +0000)]
r11068: Fix pam_auth_crap, remove the sync code. I don't know what it was when I
tested it, but I can not reproduce the problem I had with abartlett's initial
implementation anymore.

Fix a bug found using valgrind.

(This used to be commit 0c6c71ae3cd0a2f97eab2cc24a752976c32a39fc)

12 years agor11067: Support for [string] in the Ethereal parser generator
Jelmer Vernooij [Fri, 14 Oct 2005 19:57:41 +0000 (19:57 +0000)]
r11067: Support for [string] in the Ethereal parser generator
(This used to be commit 1d5db487bb4afffac13b0d0904aea6b8664b75a8)

12 years agor11061: Samba3 parser generator fixes:
Jelmer Vernooij [Fri, 14 Oct 2005 16:40:47 +0000 (16:40 +0000)]
r11061: Samba3 parser generator fixes:
* Add (limited) support for [string]
* Don't generate (and set) header elements for top level ref pointers as
they don't appear on the wire
(This used to be commit 765adaf19be264e2d23a22eaed3027faededf8b6)

12 years agor11058: remove useless talloc context
Stefan Metzmacher [Fri, 14 Oct 2005 15:55:51 +0000 (15:55 +0000)]
r11058: remove useless talloc context

(This used to be commit d9d3fe1b8aa34f5d87b73b94253b4230303cba76)

12 years agor11053: fix the logic,
Stefan Metzmacher [Fri, 14 Oct 2005 14:45:28 +0000 (14:45 +0000)]
r11053: fix the logic,

this should fix make test

(This used to be commit c7742a2829d64c3a37cf3361fc66811724282170)

12 years agor11052: bring samba4 uptodate with the samba4-winsrepl branch,
Stefan Metzmacher [Fri, 14 Oct 2005 14:02:47 +0000 (14:02 +0000)]
r11052: bring samba4 uptodate with the samba4-winsrepl branch,
before the bad merge

(This used to be commit 471c0ca4abb17fb5f73c0efed195c67628c1c06e)

12 years agor11051: fix the build,
Stefan Metzmacher [Fri, 14 Oct 2005 13:19:31 +0000 (13:19 +0000)]
r11051: fix the build,

sorry for the latest spam!

I was testing svk push (wasn't such a good idea...)

(This used to be commit fd5e746d8f6760dcb7a40bfe04201711b77ff24b)

12 years agor11048: r10539@SERNOX: metze | 2005-09-27 14:59:47 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 13:02:00 +0000 (13:02 +0000)]
r11048:  r10539@SERNOX:  metze | 2005-09-27 14:59:47 +0200
 fix the build for changes from SAMBA_4_0 branch

 r10541@SERNOX:  metze | 2005-09-27 15:05:33 +0200
 use a transaction when we allocate a new version

 r10549@SERNOX:  metze | 2005-09-27 18:58:37 +0200
 - add first start of wins pull replication
 - we not yet apply records to our database but we fetch them correct form our partners
   (we need conflict handling for this)
 - we also need to filter out our own records!

 r10568@SERNOX:  metze | 2005-09-28 11:33:04 +0200
 move composite helpers to a seperate file, create a a seperate file for the conflict resolving logic

 r10571@SERNOX:  metze | 2005-09-28 12:00:17 +0200
 add forward fix the build

 r10612@SERNOX:  metze | 2005-09-29 16:11:06 +0200
 we have a nbt_name now, and don't need to parse it

 r10614@SERNOX:  metze | 2005-09-29 16:38:35 +0200
 filter out our own records

 r10620@SERNOX:  metze | 2005-09-29 18:07:08 +0200
 - handle mutliple addresses in WREPL_REPL_SEND_REPLY
 - make strings always valid talloc pointers

 r10621@SERNOX:  metze | 2005-09-29 18:09:41 +0200
 use debug level 2

 r10622@SERNOX:  metze | 2005-09-29 18:48:05 +0200
 - add one more debug message when we reply no record
 - fix min max logic

 r10623@SERNOX:  metze | 2005-09-29 20:49:06 +0200
 build fixes...

 r10629@SERNOX:  metze | 2005-09-30 00:11:41 +0200
 - use seperate attributes for type, state, nodetype, is_static

 ... the winserver.c code needs some more updates to correctly,
 create special group and multihomed registrations...

 r10640@SERNOX:  metze | 2005-09-30 04:07:34 +0200
 - add some short path for the composite helper functions
   they will be used in the next commit

 r10642@SERNOX:  metze | 2005-09-30 06:29:06 +0200
 fix the build

 r10655@SERNOX:  metze | 2005-09-30 17:36:49 +0200
   this includes the connection fliping into a client connection

 NOTE: I not yet found out how to get the w2k server to use INFORM against samba4
       it uses inform against w2k and w2k3 but UPDATE against nt4 and samba4

 what's left now is to be able to initiate INFORM and UPDATE requests to notify
 our pull partners

 r10727@SERNOX:  metze | 2005-10-05 14:11:05 +0200
 fix the build

 r10770@SERNOX:  metze | 2005-10-06 16:56:01 +0200
 - move the table filling to a seperate function, will be reused later
 - fix the build, wrepl_nbt_name fixes
 - remove state -> update_state

 r10771@SERNOX:  metze | 2005-10-06 17:04:48 +0200
 add a function to create a wreplsrv_in_connection from a client connection

 r10772@SERNOX:  metze | 2005-10-06 17:13:51 +0200
 - make the connection code more generic to handle the pull cached connection,
   push cached connection or given connections
 - when we don't use a cached connection, disconnection when a pull_cycle is done
 - fix the build and use the configured source ip

 r10773@SERNOX:  metze | 2005-10-06 17:18:49 +0200
 - add composite functions for push notification

 r10774@SERNOX:  metze | 2005-10-06 17:23:46 +0200
 - use periodic push notifycation, this is just for now
   as it needs to be configurable and and be triggered when the local database
   has changes since the last notify
 - I also need to work out how to decide if the partner supports
   persistent connections and WREPL_REPL_INFORM* messages

 r10923@SERNOX:  metze | 2005-10-12 16:52:34 +0200
 fix the build becuse of conflicts with main SAMBA_4_0 tree

(This used to be commit 6d97dd6e50423758d081459ec551f4e04dfd818d)

12 years agor11047:
Stefan Metzmacher [Fri, 14 Oct 2005 13:00:36 +0000 (13:00 +0000)]
(This used to be commit 177d60f42ac05da2efe47fe4911bc5818662a7cd)

12 years agor11045:
Stefan Metzmacher [Fri, 14 Oct 2005 12:57:23 +0000 (12:57 +0000)]
(This used to be commit a2c6969306a18b0bb9629b3eae8a5e4a1aeae285)

12 years agor11044:
Stefan Metzmacher [Fri, 14 Oct 2005 12:57:00 +0000 (12:57 +0000)]
(This used to be commit 914e16f5676234862ebaf5d3c6e02bc1eb47ce51)

12 years agor11043: r10362@SERNOX: metze | 2005-09-20 22:37:28 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:56:42 +0000 (12:56 +0000)]
r11043:  r10362@SERNOX:  metze | 2005-09-20 22:37:28 +0200
 repare for pull replication support

(This used to be commit a75402c45f5bcd3b199ad30af06ee34161c5560b)