kai/samba.git
16 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)

16 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.

Volker
(This used to be commit 66c1b674f9870de73cce0e611909caf9eff34baa)

16 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

metze
(This used to be commit 2577c02a5105449b759e7eeb00c446730dbe22d3)

16 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

metze
(This used to be commit 772467c8d487578b3541ffd1b1e07516097d1325)

16 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

metze
(This used to be commit 3f7b09a3086a8b6d255bc3fc5cd8882e12f05d10)

16 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

metze
(This used to be commit d49a1d2b15c7d17a5d6928a971fbe87d13686c2d)

16 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?

metze
(This used to be commit 97cb22bd9d7f786e9c1609ce97fcd8c54e5725bf)

16 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

metze
(This used to be commit 9f3b6746d86583c48097da48c28f50f075bbd3e3)

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

metze
(This used to be commit a3abf10d431f82b12b0795d5bc217c8ec3ce89f7)

16 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

metze
(This used to be commit e27e36909d367748fc653ddc0fd1c699b77780e9)

16 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?

metze
(This used to be commit 70cde83c134f2d8bb2f6c0649b7f87a8846e63a4)

16 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

metze
(This used to be commit 5d46cdd1ee8ae2a49a81f0a36a4c3f12d7635de9)

16 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)

16 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.
Jeremy.
(This used to be commit bfa41398a65037c6017b0af0ea1f0423011df150)

16 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).
Jeremy.
(This used to be commit 42d93a317ab424a0720620b83c285b5118bcc06f)

16 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)

16 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.
Jeremy.
(This used to be commit 77399e1cecc44674c3398143d8a5bb59c600abcd)

16 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...

Volker
(This used to be commit 6e4f774a4948691440362663418243623d1f51f7)

16 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.

Volker
(This used to be commit 0c6c71ae3cd0a2f97eab2cc24a752976c32a39fc)

16 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)

16 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)

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

metze
(This used to be commit d9d3fe1b8aa34f5d87b73b94253b4230303cba76)

16 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

metze
(This used to be commit c7742a2829d64c3a37cf3361fc66811724282170)

16 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

metze
(This used to be commit 471c0ca4abb17fb5f73c0efed195c67628c1c06e)

16 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...)

metze
(This used to be commit fd5e746d8f6760dcb7a40bfe04201711b77ff24b)

16 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

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

 metze
 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!

 metze
 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

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

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

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

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

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

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

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

 metze
 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...

 metze
 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

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

 metze
 r10655@SERNOX:  metze | 2005-09-30 17:36:49 +0200
 - implement the WREPL_REPL_UPDATE* and WREPL_REPL_INFORM*
   this includes the connection fliping into a client connection
   for WREPL_REPL_UPDATE*

 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

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

 metze
 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

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

 metze
 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

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

 metze
 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

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

 metze
(This used to be commit 6d97dd6e50423758d081459ec551f4e04dfd818d)

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

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

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

16 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

 metze
(This used to be commit a75402c45f5bcd3b199ad30af06ee34161c5560b)

16 years agor11042: r10361@SERNOX: metze | 2005-09-20 22:36:28 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:56:26 +0000 (12:56 +0000)]
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 45a774c63cbbe4dbd6e17510cf2c7d59d30ea9be)

16 years agor11041: r10358@SERNOX: metze | 2005-09-20 21:40:03 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:56:13 +0000 (12:56 +0000)]
r11041:  r10358@SERNOX:  metze | 2005-09-20 21:40:03 +0200
 fix some missing nbt_peer_socket cases

 metze
(This used to be commit bd25231c57f60296ad954d4f333c14d83781a1d1)

16 years agor11040: r10357@SERNOX: metze | 2005-09-20 21:28:11 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:55:59 +0000 (12:55 +0000)]
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 82bad3f3efec5b706a65e65054787f1486d7c875)

16 years agor11039: r10352@SERNOX: metze | 2005-09-20 16:50:04 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:55:41 +0000 (12:55 +0000)]
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 c2b2b582203d9fe2596ebc9cf2600d52e6f61831)

16 years agor11038: r10351@SERNOX: metze | 2005-09-20 16:11:17 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:55:27 +0000 (12:55 +0000)]
r11038:  r10351@SERNOX:  metze | 2005-09-20 16:11:17 +0200
 fix namebuf_len, when type is 0x00

 metze
(This used to be commit 1b2effa01bf16f9575e7e43e037a0797f98426b8)

16 years agor11037:
Stefan Metzmacher [Fri, 14 Oct 2005 12:54:52 +0000 (12:54 +0000)]
r11037:
(This used to be commit 6913e338405a5aca5c70cf6e022532c596ed0a36)

16 years agor11036: r10349@SERNOX: metze | 2005-09-20 15:38:31 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:54:26 +0000 (12:54 +0000)]
r11036:  r10349@SERNOX:  metze | 2005-09-20 15:38:31 +0200
 we know answer send_requests correctly

 metze
(This used to be commit aecc9ca1cc78ce5ea766954629c03ea866c36bc1)

16 years agor11035: r10347@SERNOX: metze | 2005-09-20 13:40:24 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:54:06 +0000 (12:54 +0000)]
r11035:  r10347@SERNOX:  metze | 2005-09-20 13:40:24 +0200
 make wreplsrv_find_owner public

 metze
(This used to be commit 6fa37c0a2bc1d2f0d29c69d8448276c1f1791a45)

16 years agor11034: r10344@SERNOX: metze | 2005-09-20 11:35:54 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:53:50 +0000 (12:53 +0000)]
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 b8b48c8aa5f741ad020d0a4debac665f8b2953ab)

16 years agor11033: r10343@SERNOX: metze | 2005-09-20 11:03:20 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:52:51 +0000 (12:52 +0000)]
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 a25279f05243fc89c2cc9267d59974bc17eaf47c)

16 years agor11032: r10342@SERNOX: metze | 2005-09-20 11:00:26 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:52:35 +0000 (12:52 +0000)]
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 4490a2864e21f957547c30675e5f096a4409e5fb)

16 years agor11030: r10338@SERNOX: metze | 2005-09-20 09:20:49 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:51:51 +0000 (12:51 +0000)]
r11030:  r10338@SERNOX:  metze | 2005-09-20 09:20:49 +0200
 fix uninitialized variable

 metze
(This used to be commit e6fb40e51d2742c05c2fbbb96f367710e46ba7ae)

16 years agor11029:
Stefan Metzmacher [Fri, 14 Oct 2005 12:51:36 +0000 (12:51 +0000)]
r11029:
(This used to be commit 49e61d011c702ae51982d45025ad35e44a6c39d6)

16 years agor11027: r10319@SERNOX: metze | 2005-09-19 18:31:23 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:50:11 +0000 (12:50 +0000)]
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 752025a0e10bfea646784087b5128841ec127a65)

16 years agor11026: r10318@SERNOX: metze | 2005-09-19 16:38:15 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:49:55 +0000 (12:49 +0000)]
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 72eba90465c478ac9d363ed0c88efea27afd158e)

16 years agor11025: r10313@SERNOX: metze | 2005-09-19 12:19:27 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:49:36 +0000 (12:49 +0000)]
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 2fd3bbd0449af3702bf473f97474bc1343f7a502)

16 years agor11024: r10311@SERNOX: metze | 2005-09-19 11:27:34 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:48:34 +0000 (12:48 +0000)]
r11024:  r10311@SERNOX:  metze | 2005-09-19 11:27:34 +0200
 remove doublicate NULL-pointer check

 metze
(This used to be commit eb1dee09652beb6d401cdc2058427db5f18bea67)

16 years agor11023: r10310@SERNOX: metze | 2005-09-19 11:21:39 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:48:20 +0000 (12:48 +0000)]
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 da3d18e4545da3bd1841ffc31f253e533f7ea016)

16 years agor11022: r10309@SERNOX: metze | 2005-09-19 11:08:37 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:47:57 +0000 (12:47 +0000)]
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 e6106e21a0b097ec45948a08f499e44d32db8d2a)

16 years agor11014: r10139@SERNOX: metze | 2005-09-10 10:32:36 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:44:47 +0000 (12:44 +0000)]
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 42b69461aad3942dde361d61b950445dd39882aa)

16 years agor11011: r10124@SERNOX: metze | 2005-09-09 20:22:00 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:43:50 +0000 (12:43 +0000)]
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 66f931071e41dbd871ca8e1c2de8414a6230ab33)

16 years agor11007: r10109@SERNOX: metze | 2005-09-09 12:29:12 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:38:07 +0000 (12:38 +0000)]
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 c9a8544446312d96ecadcf370af76d9dc5b2531a)

16 years agor11004: r10083@SERNOX: metze | 2005-09-08 16:50:32 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:37:13 +0000 (12:37 +0000)]
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 55a2016ba379d035cd559fb55a280e2ee9f15178)

16 years agor10997: r11980@SERNOX (orig r10037): metze | 2005-09-05 14:21:40 +0200
Stefan Metzmacher [Fri, 14 Oct 2005 12:22:15 +0000 (12:22 +0000)]
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 a599d7a4ae881c94be2c2d908a398838549942bb)

16 years agor10995: fix released vs. released
Stefan Metzmacher [Fri, 14 Oct 2005 12:01:22 +0000 (12:01 +0000)]
r10995: fix released vs. released

metze
(This used to be commit 573c2df2badbba12fb4d909e7ad4edf6678c7851)

16 years agor10993: - make us able to check released records, we can only do that by finding...
Stefan Metzmacher [Fri, 14 Oct 2005 11:18:01 +0000 (11:18 +0000)]
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 afe5d2ab8522671607faafc3de895e4ff915dab4)

16 years agor10991: - create always a valid bind_info28 blocks, so that we don't need to work...
Stefan Metzmacher [Fri, 14 Oct 2005 08:19:21 +0000 (08:19 +0000)]
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 c3276bd169961d04f2bd541e6b73ee40df016c3d)

16 years agor10990: the beginnings of a program designed to work out the minimal schema
Andrew Tridgell [Fri, 14 Oct 2005 07:38:16 +0000 (07:38 +0000)]
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 7b0ae77757d347d2b0f5bac3a49e915e24c3ab78)

16 years agor10988: print out the password blobs, with
Stefan Metzmacher [Fri, 14 Oct 2005 06:58:39 +0000 (06:58 +0000)]
r10988: print out the password blobs, with

--option="dssync:print_pwd_blobs=yes"

metze
(This used to be commit b06de6d39cd21d5096e4041e218370263d8096b0)

16 years agor10987: add support for tcp kdc requests
Stefan Metzmacher [Fri, 14 Oct 2005 06:12:05 +0000 (06:12 +0000)]
r10987: add support for tcp kdc requests

metze
(This used to be commit 4c4f19cc23d256c600819e8b0fddc7734b97e131)

16 years agor10986: loop also when we use mszip compression
Stefan Metzmacher [Fri, 14 Oct 2005 06:07:23 +0000 (06:07 +0000)]
r10986: loop also when we use mszip compression

metze
(This used to be commit e32488667c59c30d66528e8fa31c55037f36cd01)

16 years agor10985: To aid in testing, this allows us to easily force kerberos to use UDP or...
Andrew Bartlett [Fri, 14 Oct 2005 06:06:18 +0000 (06:06 +0000)]
r10985: To aid in testing, this allows us to easily force kerberos to use UDP or TCP.

Andrew Bartlett
(This used to be commit ae0b4028ff7033dab70687376c2090baa692cf58)

16 years agor10984: fix valgrind warnings, I had used that to check if w2k3 accept random values...
Stefan Metzmacher [Fri, 14 Oct 2005 05:52:03 +0000 (05:52 +0000)]
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 e04c78e4e925ce385651eb0e77e3ea7aee9e8008)

16 years agor10983: Another case were we want to avoid DNS for unqualified names.
Andrew Bartlett [Fri, 14 Oct 2005 05:29:44 +0000 (05:29 +0000)]
r10983: Another case were we want to avoid DNS for unqualified names.

Andrew Bartlett
(This used to be commit 1d7094b8dfd53dfda55db7ce30f47f74864093bf)

16 years agor10982: Move credentials.h into auth/credentials, and add flags needed by
Andrew Bartlett [Fri, 14 Oct 2005 04:04:52 +0000 (04:04 +0000)]
r10982: Move credentials.h into auth/credentials, and add flags needed by
previous patch.

Andrew Bartlett
(This used to be commit 2c537d47ba99885c6462016342b1cc29df4c54c5)

16 years agor10981: Pull code to decide between and implement NTLMv2, NTLM and LM
Andrew Bartlett [Fri, 14 Oct 2005 03:57:35 +0000 (03:57 +0000)]
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 09c95763301c0f7770d56462e8af4169b8c171fb)

16 years agor10980: Use ldb_attr_cmp and ldb_dn_escape_value
Andrew Bartlett [Fri, 14 Oct 2005 02:05:51 +0000 (02:05 +0000)]
r10980: Use ldb_attr_cmp and ldb_dn_escape_value

Andrew Bartlett
(This used to be commit 2b1c88f628b27ffda08de3f4ac83c1f3b052a078)

16 years agor10973: - make debugging a bit easier
Stefan Metzmacher [Thu, 13 Oct 2005 18:58:30 +0000 (18:58 +0000)]
r10973: - make debugging a bit easier
- add unique vs. normal group section in replica vs replica conflict testing

metze
(This used to be commit b94be6b1191aa18642b334dc1fe1529d977d6c57)

16 years agor10971: - test static records with the same owner too
Stefan Metzmacher [Thu, 13 Oct 2005 18:24:30 +0000 (18:24 +0000)]
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 8df80c5649467be6cb4dd532974a083173a5a920)

16 years agor10967: move the function in the order they are used
Stefan Metzmacher [Thu, 13 Oct 2005 16:38:52 +0000 (16:38 +0000)]
r10967: move the function in the order they are used

metze
(This used to be commit 6f44ae5a6950cee5722758030df862b0f919f43b)

16 years agor10965: - only run the cross connection assoc test when running with -X
Stefan Metzmacher [Thu, 13 Oct 2005 16:27:05 +0000 (16:27 +0000)]
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 f93353ac41441e0ca7b31c82318005438cd00ce5)

16 years agor10959: fix compiler warnings
Stefan Metzmacher [Thu, 13 Oct 2005 10:02:36 +0000 (10:02 +0000)]
r10959: fix compiler warnings

metze
(This used to be commit 9a9311fa6b4bbb2a385413c056c8be57cdb9eb59)

16 years agor10957: make a comment clearer
Andrew Tridgell [Thu, 13 Oct 2005 07:54:38 +0000 (07:54 +0000)]
r10957: make a comment clearer
(This used to be commit d379fb5f101155edd5f266ae9aaae4e7ac7bd76b)

16 years agor10956: Tridge thought some comments might be a good idea :-)
Andrew Bartlett [Thu, 13 Oct 2005 07:47:57 +0000 (07:47 +0000)]
r10956: Tridge thought some comments might be a good idea :-)

Andrew Bartlett
(This used to be commit c0d6126effdf31e0a107c06a400973c731e0e263)

16 years agor10955: finally worked out why our computer accounts were being identified as users...
Andrew Tridgell [Thu, 13 Oct 2005 06:09:37 +0000 (06:09 +0000)]
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 68c5f807fdb99fd605154d455e61a08293cbd2d0)

16 years agor10954: added support for canonicalName in the operational module, using the
Andrew Tridgell [Thu, 13 Oct 2005 05:04:16 +0000 (05:04 +0000)]
r10954: added support for canonicalName in the operational module, using the
dn->canonicalName function abartlet just committed
(This used to be commit 197e8a27f0557869eacd17b74e1b14e0665883b1)

16 years agor10953: Add a new function to form a canonicalName out of a DN to ldb_dn.c
Andrew Bartlett [Thu, 13 Oct 2005 04:24:49 +0000 (04:24 +0000)]
r10953: Add a new function to form a canonicalName out of a DN to ldb_dn.c

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)

16 years agor10950: More cracknames variations (including expected values) than you can
Andrew Bartlett [Thu, 13 Oct 2005 02:07:29 +0000 (02:07 +0000)]
r10950: More cracknames variations (including expected values) than you can
poke a stick at...

Andrew Bartlett
(This used to be commit e4b21300304f8c66c81fa0d15198c640d87db68e)

16 years agor10946: Use the right name for the remote workstation, and always initialise it.
Andrew Bartlett [Wed, 12 Oct 2005 22:25:51 +0000 (22:25 +0000)]
r10946: Use the right name for the remote workstation, and always initialise it.

Should fix a valgrind error volker is seeing.

Andrew Bartlett
(This used to be commit 11957c5f37fe0a0be465a9ce9d6d256724c5951c)

16 years agor10945: Free the salt after we are done with it. May need a merge to similar
Andrew Bartlett [Wed, 12 Oct 2005 22:24:43 +0000 (22:24 +0000)]
r10945: Free the salt after we are done with it.  May need a merge to similar
code in Samba3.

Andrew Bartlett
(This used to be commit 36e302bac87d0a07c86cc4c841d376c778630dab)

16 years agor10941: Hmmm. Making that fn static is more correct.
Volker Lendecke [Wed, 12 Oct 2005 20:56:39 +0000 (20:56 +0000)]
r10941: Hmmm. Making that fn static is more correct.
(This used to be commit eaf347bdeaaddb655fe72ddb98f3a67ace795937)

16 years agor10940: add struct definition
Volker Lendecke [Wed, 12 Oct 2005 20:55:33 +0000 (20:55 +0000)]
r10940: add struct definition
(This used to be commit 295271a329586d0858b6d6b845b8ebba3d035f5f)

16 years agor10936: Commit work in progress: wb_pam_auth_crap made async. This does not work...
Volker Lendecke [Wed, 12 Oct 2005 20:22:45 +0000 (20:22 +0000)]
r10936: Commit work in progress: wb_pam_auth_crap made async. This does not 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)

16 years agor10934: Fix a gcc 4 warning
Volker Lendecke [Wed, 12 Oct 2005 20:20:20 +0000 (20:20 +0000)]
r10934: Fix a gcc 4 warning
(This used to be commit 317edeb546ef03507812e5a0fa1fb331073f55c1)

16 years agor10924: we don't need this line twice
Stefan Metzmacher [Wed, 12 Oct 2005 14:58:14 +0000 (14:58 +0000)]
r10924: we don't need this line twice

metze
(This used to be commit f1ee8d4b58d97888dc4c57af34c7604ee9dd2a73)

16 years agor10920: in case of a accept() failure just failing and trying again is no
Andrew Tridgell [Wed, 12 Oct 2005 11:04:01 +0000 (11:04 +0000)]
r10920: in case of a accept() failure just failing and trying again is no
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)

16 years agor10919: fixed the ldb test for the new operational module
Andrew Tridgell [Wed, 12 Oct 2005 08:53:42 +0000 (08:53 +0000)]
r10919: fixed the ldb test for the new operational module
(This used to be commit 915878d7cebacf499c0c9d264a2dcbc82b521dfd)

16 years agor10918: - fixed standalone ldb build
Andrew Tridgell [Wed, 12 Oct 2005 08:51:12 +0000 (08:51 +0000)]
r10918: - fixed standalone ldb build

- added note about allowedAttributesEffective (will be needed for mmc)

- fixed some more ldb warnings
(This used to be commit e9e4d81b6976549db8a7668572a5da466fbec4a9)

16 years agor10917: copy the element name in a ldb_msg_rename_attr() and ldb_msg_copy_attr()...
Andrew Tridgell [Wed, 12 Oct 2005 08:11:45 +0000 (08:11 +0000)]
r10917: copy the element name in a ldb_msg_rename_attr() and ldb_msg_copy_attr() to ensure
that callers (like the ldap server) can talloc_steal the name
(This used to be commit 9c914542cc346758c82f89990c80eb096a9c0959)

16 years agor10916: - finished the 'operational' ldb module
Andrew Tridgell [Wed, 12 Oct 2005 07:57:39 +0000 (07:57 +0000)]
r10916: - finished the 'operational' ldb module

- 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)

16 years agor10915: added a standard attribute handler for a ldap UTC time string
Andrew Tridgell [Wed, 12 Oct 2005 07:54:15 +0000 (07:54 +0000)]
r10915: added a standard attribute handler for a ldap UTC time string
(This used to be commit efd7dd1a775c06f21924f35760f7768b4e8db449)

16 years agor10914: moved the ldap time string functions into ldb so they can be used by
Andrew Tridgell [Wed, 12 Oct 2005 06:30:47 +0000 (06:30 +0000)]
r10914: moved the ldap time string functions into ldb so they can be used by
the time attribute handling functions
(This used to be commit 93c296d52718e77f8b702e1721b548eaadc56c76)

16 years agor10913: This patch isn't as big as it looks ...
Andrew Tridgell [Wed, 12 Oct 2005 06:10:23 +0000 (06:10 +0000)]
r10913: This patch isn't as big as it looks ...

most of the changes are fixes to make all the ldb code compile without
warnings on gcc4. Unfortunately That required a lot of casts :-(

I have also added the start of an 'operational' module, which will
replace the timestamp module, plus add support for some other
operational attributes

In ldb_msg_*() I added some new utility functions to make the
operational module sane, and remove the 'ldb' argument from the
ldb_msg_add_*() functions. That argument was only needed back in the
early days of ldb when we didn't use the hierarchical talloc and thus
needed a place to get the allocation function from. Now its just a
pain to pass around everywhere.

Also added a ldb_debug_set() function that calls ldb_debug() plus sets
the result using ldb_set_errstring(). That saves on some awkward
coding in a few places.
(This used to be commit f6818daecca95760c12f79fd307770cbe3346f57)

16 years agor10912: added a test for supporting batch oplock upgrades
Andrew Tridgell [Wed, 12 Oct 2005 06:03:28 +0000 (06:03 +0000)]
r10912: added a test for supporting batch oplock upgrades
(This used to be commit 1183af06b70a06ef7a1af665567560e9158fc960)

16 years agor10897: added in a hackish ldb proxy module that I am using to experiment with
Andrew Tridgell [Tue, 11 Oct 2005 12:31:31 +0000 (12:31 +0000)]
r10897: added in a hackish ldb proxy module that I am using to experiment with
mmc management support
(This used to be commit 99a5b088810e8e2f4e28b99a4a0e5e7dc9301594)

16 years agor10896: added a strcasestr() replacement function
Andrew Tridgell [Tue, 11 Oct 2005 12:30:34 +0000 (12:30 +0000)]
r10896: added a strcasestr() replacement function
(This used to be commit 4483d275e12006e5acc72ae143c0a01da01bd00d)

16 years agor10895: allow 'dn=string' searches to work again. Windows doesn't allow these,
Andrew Tridgell [Tue, 11 Oct 2005 12:25:55 +0000 (12:25 +0000)]
r10895: allow 'dn=string' searches to work again. Windows doesn't allow these,
but they are so very useful for things like dn=@MODULES that I think
its worth supporting them
(This used to be commit e2e3193a98b0f81c7bdb02c98db375ca0449022a)

16 years agor10894: make the handling of dn/distinguishedName much closer to real
Andrew Tridgell [Tue, 11 Oct 2005 11:00:16 +0000 (11:00 +0000)]
r10894: make the handling of dn/distinguishedName much closer to real
ldap. Also ensure we put a objectclass on our private ldb's, so they
have some chance of being stored in ldap if you want to
(This used to be commit 1af2cc067f70f6654d08387fc28def67229bb06a)

16 years agor10893: add configure test for utime (needed for the previous utime patch)
Andrew Tridgell [Tue, 11 Oct 2005 10:53:28 +0000 (10:53 +0000)]
r10893: add configure test for utime (needed for the previous utime patch)
(This used to be commit ef020d599fd2336cbf879920fe3505b97783dfc8)

16 years agor10892: - improved the handling of the special distinguishedName attribute
Andrew Tridgell [Tue, 11 Oct 2005 06:21:07 +0000 (06:21 +0000)]
r10892: - improved the handling of the special distinguishedName attribute

- ensure we don't add attributes twice, should a user ask for the
  attribute twice. Do this in such a way that we don't become O(n^2)

- removed some unused code
(This used to be commit 7684cdb47b4ae516f066afb249d5f88032152ec9)