Stefan Metzmacher [Sat, 31 Dec 2005 09:44:04 +0000 (09:44 +0000)]
r12642: only do push notifications when something changed
metze
Stefan Metzmacher [Sat, 31 Dec 2005 09:08:46 +0000 (09:08 +0000)]
r12641: - remove some unused functions
- we already call usleep() directly in some places,
so do it everywhere
metze
Stefan Metzmacher [Sat, 31 Dec 2005 08:42:01 +0000 (08:42 +0000)]
r12639: - do some tests with 0x20 0x1B names
- do some tests with 0xBF and 0xBE, this shows that the '+' padding
should be done by the client
metze
Stefan Metzmacher [Sat, 31 Dec 2005 08:19:48 +0000 (08:19 +0000)]
r12638: fix the build on BSD systems
metze
Andrew Tridgell [Sat, 31 Dec 2005 05:34:29 +0000 (05:34 +0000)]
r12637: test CLDAP with both NULL and non-NULL user
Andrew Tridgell [Sat, 31 Dec 2005 05:33:50 +0000 (05:33 +0000)]
r12636: fixed some torture code for the changed lsa string types
Andrew Tridgell [Sat, 31 Dec 2005 04:31:02 +0000 (04:31 +0000)]
r12635: use the new [validate] value() checking to fix the string types for
the LSA pipe. Strangely, windows is not consistent for the LookupSids
call. Sometimes the name is terminated and sometimes not?! It might
depend on the type of rid (alias, group etc) ?
Andrew Tridgell [Sat, 31 Dec 2005 04:29:34 +0000 (04:29 +0000)]
r12634: make the [validate] binding string switch also check to see if the
string form of the structure we receive matches the generated
form. This has the effect of checking things like value() attributes.
Andrew Tridgell [Sat, 31 Dec 2005 04:26:34 +0000 (04:26 +0000)]
r12633: expose talloc_vasprintf_append()
Andrew Bartlett [Sat, 31 Dec 2005 03:43:36 +0000 (03:43 +0000)]
r12632: Build fixes from Brad Hards <bradh@frogmouth.net>
Andrew Bartlett
Andrew Bartlett [Sat, 31 Dec 2005 02:49:41 +0000 (02:49 +0000)]
r12631: Now we have fixed the provision script, we don't need to work around
it here.
Andrew Bartlett
Andrew Bartlett [Sat, 31 Dec 2005 02:40:58 +0000 (02:40 +0000)]
r12630: Remove attributes which should be automaticly generated.
This fixes a problem I had with kpasswd, as the account had 'expired'
due to the old pwdLastSet, hardcoded in the ldif.
Andrew Bartlett
Andrew Bartlett [Sat, 31 Dec 2005 02:03:26 +0000 (02:03 +0000)]
r12629: Add a comment so minimal_includes.pl doesn't try and remove this.
Andrew Bartlett
Jelmer Vernooij [Sat, 31 Dec 2005 01:59:08 +0000 (01:59 +0000)]
r12628: Prevent double registration warnings
Andrew Bartlett [Sat, 31 Dec 2005 01:42:32 +0000 (01:42 +0000)]
r12627: This magic comment keeps minimal_includes.pl from suggesting the
removal of this header.
Andrew Bartlett
Andrew Tridgell [Sat, 31 Dec 2005 01:36:09 +0000 (01:36 +0000)]
r12626: some systems need time.h here (for asctime())
Andrew Bartlett [Sat, 31 Dec 2005 00:46:44 +0000 (00:46 +0000)]
r12625: More 'useful' names for the DNS zone.
Andrew Bartlett
Jelmer Vernooij [Sat, 31 Dec 2005 00:27:55 +0000 (00:27 +0000)]
r12624: (hopefully) fix for BSD make after srcdir/builddir changes
Jelmer Vernooij [Sat, 31 Dec 2005 00:02:41 +0000 (00:02 +0000)]
r12623: Another round of fixes for the prototypes of tables.c
Jelmer Vernooij [Fri, 30 Dec 2005 23:18:27 +0000 (23:18 +0000)]
r12622: Move table.c prototypes to seperate header to prevent circular dependencies
with proto.h
Jelmer Vernooij [Fri, 30 Dec 2005 22:48:25 +0000 (22:48 +0000)]
r12621: INIT_FUNCTION no longer has to be set on libraries
Jelmer Vernooij [Fri, 30 Dec 2005 22:46:16 +0000 (22:46 +0000)]
r12620: Get rid of automatically generated lists of init functions of subsystems.
This allows Samba libraries to be used by other projects (and parts of
Samba to be built as shared libraries).
Stefan Metzmacher [Fri, 30 Dec 2005 21:25:38 +0000 (21:25 +0000)]
r12619: make sure we don't return more than 25 addresses, as w2k3 crashes in that case
I still need to make sure we didn't write such records to our database...
metze
Stefan Metzmacher [Fri, 30 Dec 2005 21:12:15 +0000 (21:12 +0000)]
r12618: use our primary interface address or the "winsdb:local_owner" -address
as winsOwner: attrbute for owned records
metze
Stefan Metzmacher [Fri, 30 Dec 2005 20:08:52 +0000 (20:08 +0000)]
r12617: create a winsdb_handle and pass that arround,
so we later can hang the local owner address, on this handle too
metze
Stefan Metzmacher [Fri, 30 Dec 2005 20:06:41 +0000 (20:06 +0000)]
r12616: remove unused function, and we have iface_local() as replacement
metze
Stefan Metzmacher [Fri, 30 Dec 2005 19:18:51 +0000 (19:18 +0000)]
r12615: prepare building with ../samba4/source/configure --srcdir=../samba4/source/
metze
Stefan Metzmacher [Fri, 30 Dec 2005 17:39:03 +0000 (17:39 +0000)]
r12613: workarround a BSD make bug, where $< gets expanded to 'torture/libnet/userman.c'
when $@ is 'libnet/userman.o'
metze
Stefan Metzmacher [Fri, 30 Dec 2005 16:39:14 +0000 (16:39 +0000)]
r12611: fix compiler warnings
metze
Stefan Metzmacher [Fri, 30 Dec 2005 14:24:24 +0000 (14:24 +0000)]
r12610: we need struct passwd on some systems
metze
Stefan Metzmacher [Fri, 30 Dec 2005 14:04:18 +0000 (14:04 +0000)]
r12609: - add some comments to a change that went in in the last 'fix the build' commit
- we need to reply to name queries with the recursion desired bit set,
to pass the multi homed challenge, when registering our interfaces
with a wins server
metze
Jelmer Vernooij [Fri, 30 Dec 2005 13:16:54 +0000 (13:16 +0000)]
r12608: Remove some unused #include lines.
Stefan Metzmacher [Fri, 30 Dec 2005 12:43:11 +0000 (12:43 +0000)]
r12607: fix the build
metze
Stefan Metzmacher [Fri, 30 Dec 2005 12:13:46 +0000 (12:13 +0000)]
r12606: - fix multihomed registrations
always remove the addresses which are no longer valid
- use the wins_challenge_send/recv calls which are also used by the replication
challenge
metze
Simo Sorce [Fri, 30 Dec 2005 11:56:52 +0000 (11:56 +0000)]
r12605: docs patch from Brad Hards <bradh@frogmouth.net>
Simo Sorce [Fri, 30 Dec 2005 11:47:35 +0000 (11:47 +0000)]
r12604: fix make clean as Brad Hards <bradh@frogmouth.net> sugested
Stefan Metzmacher [Fri, 30 Dec 2005 10:45:43 +0000 (10:45 +0000)]
r12602: fix compiler warning
metze
Andrew Bartlett [Fri, 30 Dec 2005 08:57:33 +0000 (08:57 +0000)]
r12601: Syncronise both copies of dlinklist.h.
Should we somehow link these, or just use the version in ldb?
Andrew Bartlett
Andrew Bartlett [Fri, 30 Dec 2005 08:50:47 +0000 (08:50 +0000)]
r12600: Add a new module to sort the objectclass attribute on store. The
module is perhaps not the most efficient, but I think it is
reasonable.
This should restore operation of MMC against Samba4 (broken by the
templating fixes).
Andrew Bartlett
Andrew Bartlett [Fri, 30 Dec 2005 08:40:16 +0000 (08:40 +0000)]
r12599: This new LDB module (and associated changes) allows Samba4 to operate
using pre-calculated passwords for all kerberos key types.
(Previously we could only use these for the NT# type).
The module handles all of the hash/string2key tasks for all parts of
Samba, which was previously in the rpc_server/samr/samr_password.c
code. We also update the msDS-KeyVersionNumber, and the password
history. This new module can be called at provision time, which
ensures we start with a database that is consistent in this respect.
By ensuring that the krb5key attribute is the only one we need to
retrieve, this also simplifies the run-time KDC logic. (Each value of
the multi-valued attribute is encoded as a 'Key' in ASN.1, using the
definition from Heimdal's HDB. This simplfies the KDC code.).
It is hoped that this will speed up the KDC enough that it can again
operate under valgrind.
Andrew Bartlett [Fri, 30 Dec 2005 08:36:25 +0000 (08:36 +0000)]
r12598: Make the 'objectClass' part of the templating process actually work.
We need to add to the multivalued objectClass, not ignore it because
the user has already specified a value.
Also rename the template again.
This was caught by more stringent tests in the unicodePwd module, but
breaks MMC. A later commit will sort the objectClass.
Andrew Bartlett
Andrew Bartlett [Fri, 30 Dec 2005 06:49:36 +0000 (06:49 +0000)]
r12597: One less void *
Andrew Bartlett
Andrew Bartlett [Fri, 30 Dec 2005 06:48:56 +0000 (06:48 +0000)]
r12596: This variable is unused.
Andrew Bartlett
Andrew Bartlett [Fri, 30 Dec 2005 06:48:16 +0000 (06:48 +0000)]
r12595: There was no comment on the mailing list, so kill the 'ldapsrv:samdb'
parameter. It isn't useful with so many other things in the ldap
server opening the database directly. Best to run this as a seperate
process, and change the global options.
Andrew Bartlett
Andrew Bartlett [Fri, 30 Dec 2005 03:57:11 +0000 (03:57 +0000)]
r12594: Jelmer pushed some proposed header reductions to the list today. This
commits some of these that I know to be correct in the kerberos area.
Andrew Bartlett
Jelmer Vernooij [Thu, 29 Dec 2005 23:14:33 +0000 (23:14 +0000)]
r12592: Remove some useless dependencies
Jelmer Vernooij [Thu, 29 Dec 2005 21:57:08 +0000 (21:57 +0000)]
r12589: Add missing newline.
Jelmer Vernooij [Thu, 29 Dec 2005 20:35:56 +0000 (20:35 +0000)]
r12584: Move NDR tests from rpc/ to local/, add to list of tests
to run for 'make all'
Stefan Metzmacher [Thu, 29 Dec 2005 18:54:16 +0000 (18:54 +0000)]
r12580: return the first 0x1B address as first address to 0x1C queries
metze
Stefan Metzmacher [Thu, 29 Dec 2005 17:03:17 +0000 (17:03 +0000)]
r12578: - w2k3 allows entries with 127.0.0.1 as address, so we should do
to make it possible to add a static record for localhost or so...
- we already make sure we don't register 127.0.0.1 with our wins server,
so the check for loopback in the non-wins name queries is enough
metze
Stefan Metzmacher [Thu, 29 Dec 2005 16:58:35 +0000 (16:58 +0000)]
r12577: filter the loopback addresses like this 127.*.*.* and not only 127.0.0.1
metze
Jelmer Vernooij [Thu, 29 Dec 2005 16:04:34 +0000 (16:04 +0000)]
r12574: Bring tables.pl back to life and move registration of interfaces
now completely to a new subsystem.
Jelmer Vernooij [Thu, 29 Dec 2005 16:03:47 +0000 (16:03 +0000)]
r12573: Update README to recent changes in pidls namespace
Jelmer Vernooij [Thu, 29 Dec 2005 16:03:03 +0000 (16:03 +0000)]
r12572: No longer parse coclasses as interfaces
Jelmer Vernooij [Thu, 29 Dec 2005 13:36:53 +0000 (13:36 +0000)]
r12568: Fix rename (noted by Steinar Gunderson)
Stefan Metzmacher [Thu, 29 Dec 2005 07:40:54 +0000 (07:40 +0000)]
r12559: use the selftest_prefix, we should use this for all make test output,
(e.g. the pidl tests and tdbtests, tridge, jelmer can you look at this)
to not polute the source/ directory with a lot of files
metze
Jelmer Vernooij [Thu, 29 Dec 2005 01:43:11 +0000 (01:43 +0000)]
r12558: Support [flag(NULLTERM)] on [charset()] arrays
Andrew Tridgell [Wed, 28 Dec 2005 22:49:02 +0000 (22:49 +0000)]
r12556: added 'make gdbtest'
this runs smbd under gdb in a xterm, and starts the quicktest
tests. Then you can set a breakpoint on an interesting place. This
makes it easier to track down where something is happening in the test
suite (I used it to find the NTLMSSP annoyance from the previous
commit)
Andrew Tridgell [Wed, 28 Dec 2005 22:47:22 +0000 (22:47 +0000)]
r12554: get rid of the pesky NTLMSSP warnings about being called after processing is finished
Andrew Bartlett [Wed, 28 Dec 2005 22:43:12 +0000 (22:43 +0000)]
r12553: Steal the error string onto this context, so that the caller doesn't
have to think about exactly what the right context to hang it of is.
Andrew Bartlett
Jelmer Vernooij [Wed, 28 Dec 2005 22:40:33 +0000 (22:40 +0000)]
r12552: Remove use of Test::Harness - we're not printing the result summaries
on success anyway. Instead, call the scripts directly.
Andrew Tridgell [Wed, 28 Dec 2005 22:31:26 +0000 (22:31 +0000)]
r12551: fixed oplock serialisation problem in gentest as well
Andrew Tridgell [Wed, 28 Dec 2005 22:23:24 +0000 (22:23 +0000)]
r12550: - fixed 'make pch' to always rebuild the gch file. The dependencies
were wrong, and we were using old gch files after include changes,
so safest to just rebuild when the user specifically asks for 'make
pch'
- fixed deps for includes.h so 'make pch' can work after a clean build
- changed 'make valgrindtest' to run valgrind on both client and
server binaries
Andrew Tridgell [Wed, 28 Dec 2005 22:18:45 +0000 (22:18 +0000)]
r12549: fixed the problem with serialisation and the RAW-OPLOCK test
Jelmer Vernooij [Wed, 28 Dec 2005 15:38:36 +0000 (15:38 +0000)]
r12542: Move some more prototypes out to seperate headers
Andrew Bartlett [Wed, 28 Dec 2005 11:34:19 +0000 (11:34 +0000)]
r12540: Provide more information in the ldb error string.
Andrew Bartlett
Stefan Metzmacher [Wed, 28 Dec 2005 09:31:43 +0000 (09:31 +0000)]
r12539: fix the pidl tests
metze
Andrew Bartlett [Wed, 28 Dec 2005 09:24:21 +0000 (09:24 +0000)]
r12538: Clarify why we are doing the delete here.
Andrew Bartlett
Andrew Tridgell [Wed, 28 Dec 2005 08:20:47 +0000 (08:20 +0000)]
r12537: finally found the difference between us and w2k3 that caused w2k
domain joins to be agonisingly slow! The join is now instant, and
login is fast too
Andrew Tridgell [Wed, 28 Dec 2005 07:17:45 +0000 (07:17 +0000)]
r12536: kerberos is on port 88, not port 389
i guess this shows that MS clients ignore the port number in SRV replies
Andrew Tridgell [Wed, 28 Dec 2005 04:55:53 +0000 (04:55 +0000)]
r12535: - simplify string list handling in a couple of places using str_list_add()
- don't reply with 127.0.0.1 in NBT or WINS name queries unless the
query came in on the loopback interface. Otherwise clients can end
up talking to themselves, which is not very productive :-)
Andrew Bartlett [Wed, 28 Dec 2005 04:14:58 +0000 (04:14 +0000)]
r12534: Make the transaction code fill the error string on failure.
Andrew Bartlett
Andrew Bartlett [Wed, 28 Dec 2005 03:57:26 +0000 (03:57 +0000)]
r12533: Get the ldb.errstring() out to the user on failure. It helps a lot
with debugging!
Andrew Bartlett
Andrew Tridgell [Wed, 28 Dec 2005 03:36:32 +0000 (03:36 +0000)]
r12532: log a message giving the IPs of non-partner clients trying WINS replication
(makes getting the wins config right much easier)
Andrew Tridgell [Wed, 28 Dec 2005 03:04:40 +0000 (03:04 +0000)]
r12531: 'make quicktest' was taking 15 minutes on my system due to failing DNS
lookups in load_interfaces(). The reason was my eth0 interface was
down, and it was being interpreted as a DNS name.
This patch changes load_interfaces() to happening automatically when
interfaces are first needed instead of on the startup of every samba
binary. This means that (for example) ldbadd doesn't call
load_interfaces(), which means no slow DNS lookups.
I also reduced the number of static globals in interface.c to 1, and
changed from malloc to talloc
When you want to force a reload of the interfaces list, you now call
unload_interfaces(), which means the next call that needs the
interfaces list will reload it
Jelmer Vernooij [Wed, 28 Dec 2005 02:38:26 +0000 (02:38 +0000)]
r12530: Let include/includes.h depend on lib/basic.h (which it includes)
Jelmer Vernooij [Tue, 27 Dec 2005 22:51:30 +0000 (22:51 +0000)]
r12528: Add seperate proto headers for ntvfs, tdr, smb_server and nbt_server.
Jelmer Vernooij [Tue, 27 Dec 2005 21:11:09 +0000 (21:11 +0000)]
r12523: Convert the registry subsystem to use a seperate prototype header
(note that this doesn't use the distinction between private
and public prototypes yet)
Jelmer Vernooij [Tue, 27 Dec 2005 20:29:19 +0000 (20:29 +0000)]
r12520: Add support for --help to mkproto.pl
Allow the use of {PRIVATE,PUBLIC}_PROTO_HEADER for [SUBSYSTEM]
and [LIBRARY] sections in .mk files. Public functions can be marked
by adding _PUBLIC_ between their return type and function name.
This should eventually make include/proto.h and include/structs.h obsolete.
Jelmer Vernooij [Tue, 27 Dec 2005 19:13:18 +0000 (19:13 +0000)]
r12517: Don't generate empty init functions
Jelmer Vernooij [Tue, 27 Dec 2005 18:15:18 +0000 (18:15 +0000)]
r12516: Fix drsuapi and netlogon javascript bindings
Jelmer Vernooij [Tue, 27 Dec 2005 17:50:53 +0000 (17:50 +0000)]
r12515: Use UUID directly rather then string containing UUID
Jelmer Vernooij [Tue, 27 Dec 2005 17:15:48 +0000 (17:15 +0000)]
r12514: Move DCE/RPC interface table to a seperate file
Be a bit more strict when checking for duplicate interfaces
Jelmer Vernooij [Tue, 27 Dec 2005 16:47:09 +0000 (16:47 +0000)]
r12513: Similar change as my previous commit, but now for transfer syntaxes.
Avoids converting a static string to GUID every time we check whether
a transfer syntax is equal to that of NDR.
Jelmer Vernooij [Tue, 27 Dec 2005 16:22:35 +0000 (16:22 +0000)]
r12512: Use GUID structs in API functions everywhere rather then converting back and
forth between GUID structs and strings in several places.
Jelmer Vernooij [Tue, 27 Dec 2005 14:42:29 +0000 (14:42 +0000)]
r12511: Remove authservice from binding string
Jelmer Vernooij [Tue, 27 Dec 2005 14:28:01 +0000 (14:28 +0000)]
r12510: Change the DCE/RPC interfaces to take a pointer to a
dcerpc_interface_table struct rather then a tuple of interface
name, UUID and version.
This removes the requirement for having a global list of DCE/RPC interfaces,
except for these parts of the code that use that list explicitly
(ndrdump and the scanner torture test).
This should also allow us to remove the hack that put the authservice parameter
in the dcerpc_binding struct as it can now be read directly from
dcerpc_interface_table.
I will now modify some of these functions to take a dcerpc_syntax_id
structure rather then a full dcerpc_interface_table.
Stefan Metzmacher [Tue, 27 Dec 2005 10:48:27 +0000 (10:48 +0000)]
r12509: make the output for the buildfarm nicer
metze
Andrew Bartlett [Tue, 27 Dec 2005 08:02:35 +0000 (08:02 +0000)]
r12507: This file has had my grubby paws all over it ;-)
Andrew Bartlett
Andrew Bartlett [Tue, 27 Dec 2005 07:49:34 +0000 (07:49 +0000)]
r12506: Fix up issues shown up by the expanded RPC-SAMR testsuite, and add ldb
transactions to the SAMR password change code.
Andrew Bartlett
Andrew Bartlett [Tue, 27 Dec 2005 07:48:11 +0000 (07:48 +0000)]
r12505: Cope better with NT_STATUS_PASSWORD_RESTRICTION (due to minimum
password age), and test for the incorrect password error case.
Andrew Bartlett
Andrew Bartlett [Mon, 26 Dec 2005 23:47:19 +0000 (23:47 +0000)]
r12504: Fix one more transaction cancel bail-out path, and correct comments.
Andrew Bartlett
Andrew Bartlett [Mon, 26 Dec 2005 23:14:56 +0000 (23:14 +0000)]
r12503: This function was just too simple to leave unimplemented.
Andrew Bartlett
Andrew Bartlett [Mon, 26 Dec 2005 23:06:09 +0000 (23:06 +0000)]
r12502: A bit of work on the RPC-SAMR torture test. Prove that ridToSid is
really as simple as it looks.
Andrew Bartlett
Jelmer Vernooij [Mon, 26 Dec 2005 22:47:40 +0000 (22:47 +0000)]
r12501: Merge EJSHeader.pm into EJS.pm and simplify smbcalls_rpc.c a bit,
now that it is guaranteed that the smbcalls modules are always initialized
after the EJS subsystem itself.
Jelmer Vernooij [Mon, 26 Dec 2005 21:58:31 +0000 (21:58 +0000)]
r12500: Use init functions explicitly in a few more places. 'gensec' and 'librpc'
are the only two subsystems left to convert.
Jelmer Vernooij [Mon, 26 Dec 2005 18:48:23 +0000 (18:48 +0000)]
r12499: Move smb_build.h out of includes.h
Jelmer Vernooij [Mon, 26 Dec 2005 18:03:50 +0000 (18:03 +0000)]
r12498: Eliminate INIT_OBJ_FILES and ADD_OBJ_FILES. We were not using
the difference between these at all, and in the future the
fact that INIT_OBJ_FILES include smb_build.h will be sufficient to
have recompiles at the right time.
Jelmer Vernooij [Mon, 26 Dec 2005 16:46:55 +0000 (16:46 +0000)]
r12494: Support loading modules from .so files for most subsystems.
We now use a different system for initializing the modules for a subsystem.
Most subsystems now have an init function that looks something like this:
init_module_fn static_init[] = STATIC_AUTH_MODULES;
init_module_fn *shared_init = load_samba_modules(NULL, "auth");
run_init_functions(static_init);
run_init_functions(shared_init);
talloc_free(shared_init);
I hope to eliminate the other init functions later on (the
init_programname_subsystems; defines).
Jelmer Vernooij [Mon, 26 Dec 2005 02:14:18 +0000 (02:14 +0000)]
r12490: Fix --warn-compat