ira/wip.git
12 years agor25759: catch up the samba3sam tests with the change from cn=rootdse to @ROOTDSE
Andrew Bartlett [Wed, 31 Oct 2007 00:19:20 +0000 (01:19 +0100)]
r25759: catch up the samba3sam tests with the change from cn=rootdse to @ROOTDSE

Andrew Bartlett
(This used to be commit 84a14973cee94a5f8645515cffb20ee89b5360d1)

12 years agor25756: Add missing file with quick tests.
Jelmer Vernooij [Tue, 30 Oct 2007 23:14:54 +0000 (00:14 +0100)]
r25756: Add missing file with quick tests.
(This used to be commit 83d9b49adfbd2d401a7db39e038b4b7e2d4d0aef)

12 years agor25755: Fix a couple of memory leaks, in particular a new leak onto the NULL
Andrew Bartlett [Tue, 30 Oct 2007 22:35:04 +0000 (23:35 +0100)]
r25755: Fix a couple of memory leaks, in particular a new leak onto the NULL

context caused by my objectclass module work.

Andrew Bartlett
(This used to be commit 2a835d900fee71e4461d5d18e39b4358fa6fdfba)

12 years agor25754: More work on normal forms for ldb input.
Andrew Bartlett [Tue, 30 Oct 2007 20:03:54 +0000 (21:03 +0100)]
r25754: More work on normal forms for ldb input.

This patch is to ensure that all attributes are in the same case as
the schema specifies.  In the process, I ensure that all attributes
are indeed in the schema.

This ensures we use the schema case, not the user supplied case for
future responses, which assists any (incorrect, but possible) case
sensitive processing on a client.

I've also removed more of the subtle 'schema &&' that metze objected
to in the for loops, moving to a much more explicit 'if (schema)'.

Andrew Bartlett
(This used to be commit bfc96fff063e7cc278755c043b9da0ed4b75a615)

12 years agor25753: Move cn=rootdse to @ROOTDSE to avoid being caught up in schema restrictions.
Andrew Bartlett [Tue, 30 Oct 2007 20:01:07 +0000 (21:01 +0100)]
r25753: Move cn=rootdse to @ROOTDSE to avoid being caught up in schema restrictions.

Andrew Bartlett
(This used to be commit f3390c9054244c0e4381007b36bbac9a17800570)

12 years agor25752: use EJS_CHECK() instead of NDR_CHECK()
Stefan Metzmacher [Tue, 30 Oct 2007 07:00:19 +0000 (08:00 +0100)]
r25752: use EJS_CHECK() instead of NDR_CHECK()

metze
(This used to be commit d2726e7609be4916b159c1e0ff4daea5568cf393)

12 years agor25751: use EJS_CHECK() instead of NDR_CHECK() in ejs code
Stefan Metzmacher [Tue, 30 Oct 2007 05:24:43 +0000 (06:24 +0100)]
r25751: use EJS_CHECK() instead of NDR_CHECK() in ejs code

metze
(This used to be commit 14ca6a8bf90bc73e1fdb0f510be795e28977601e)

12 years agor25750: Update the objectclass module to improve consistency in Samba4.
Andrew Bartlett [Mon, 29 Oct 2007 20:25:26 +0000 (21:25 +0100)]
r25750: Update the objectclass module to improve consistency in Samba4.

The aim here is to ensure that if we have

CN=Users,DC=samba,DC=example,DC=com

that we cannot have a DN of the form

cn=admin ,cn=useRS,DC=samba,DC=example,DC=com

This module pulls apart the DN, fixes up the relative DN part, and
searches for the parent to copy the base from.

I've used the objectclass module, as I intend to also validate the
placement of child objects, by reading the allowedChildClasses virtual
attribute.

In the future, I'll also force the attribute names to be consistant
(using the case from the schema).

Andrew Bartlett
(This used to be commit c0a0c69ac5a81cfcb7c7d5ba38db59f8686c30ab)

12 years agor25749: Add function required by linked_attributes module.
Andrew Bartlett [Mon, 29 Oct 2007 10:11:36 +0000 (11:11 +0100)]
r25749: Add function required by linked_attributes module.

Andrew Bartlett
(This used to be commit cd6409478744b9755c3a048d8d411dbe99f977f0)

12 years agor25748: Don't segfault if we don't have a schema yet.
Andrew Bartlett [Mon, 29 Oct 2007 09:58:29 +0000 (10:58 +0100)]
r25748: Don't segfault if we don't have a schema yet.

Andrew Bartlett
(This used to be commit 388e15a4c1fab55d376be956c2a7168b946bc994)

12 years agor25747: Implement linked attributes, for add operations.
Andrew Bartlett [Mon, 29 Oct 2007 09:54:06 +0000 (10:54 +0100)]
r25747: Implement linked attributes, for add operations.

Much more work is still required here, particularly to handle this
better during the provision, and to handle modifies and deletes, but
this is a start.

Andrew Bartlett
(This used to be commit 2ba99d58e9fe1f8e4b15a58a2fdfce6e876f99b4)

12 years agor25746: [selftest] make plain output more readable
Stefan Metzmacher [Sat, 27 Oct 2007 08:00:44 +0000 (10:00 +0200)]
r25746: [selftest] make plain output more readable

metze
(This used to be commit b9363755ee9f6ca7e04729519991f9ba0163ff2f)

12 years agor25745: [pidl] ndr_pull/push_error(ndr, NDR_ERR_INVALID_POINTER,..)
Stefan Metzmacher [Sat, 27 Oct 2007 07:57:09 +0000 (09:57 +0200)]
r25745: [pidl] ndr_pull/push_error(ndr, NDR_ERR_INVALID_POINTER,..)

instead NT_STATUS_INVALID_PARAMETER_MIX

metze
(This used to be commit 76b628df53d6cf028fb9f22df003ac87fe3b3c56)

12 years agor25744: add NDR_ERR_INVALID_POINTER
Stefan Metzmacher [Sat, 27 Oct 2007 06:10:14 +0000 (08:10 +0200)]
r25744: add NDR_ERR_INVALID_POINTER

metze
(This used to be commit a75a59370814c02efffbb89e014df75f5a32c04b)

12 years agor25743: Write short summary of failed tests and skipped tests to file.
Jelmer Vernooij [Fri, 26 Oct 2007 21:28:36 +0000 (23:28 +0200)]
r25743: Write short summary of failed tests and skipped tests to file.
(This used to be commit 22cb93e5c00c9bd2a9288ba13336389d45c9987f)

12 years agor25742: Start trimming down hash size for start_testsuite.
Jelmer Vernooij [Fri, 26 Oct 2007 19:25:43 +0000 (21:25 +0200)]
r25742: Start trimming down hash size for start_testsuite.
(This used to be commit f2319fbe9be76966c81f3d4279f6bc2a631a3a5a)

12 years agor25741: Simplify calls to Subunit functions.
Jelmer Vernooij [Fri, 26 Oct 2007 19:15:04 +0000 (21:15 +0200)]
r25741: Simplify calls to Subunit functions.
(This used to be commit e42de5d8346a12c3fcdb8f9af1efa650c368a442)

12 years agor25740: More consistent naming for tests, always include environment name in test...
Jelmer Vernooij [Fri, 26 Oct 2007 15:13:42 +0000 (17:13 +0200)]
r25740: More consistent naming for tests, always include environment name in test name.
(This used to be commit 9cfa44b43857df252336b6f88cfc0f7fcd557533)

12 years agor25739: We forgot to copy revision and type flags in security_descriptor_copy().
Günther Deschner [Fri, 26 Oct 2007 10:56:02 +0000 (12:56 +0200)]
r25739: We forgot to copy revision and type flags in security_descriptor_copy().

Guenther
(This used to be commit 2e028503a36acd12009a4d2f0d217b2d940c9c30)

12 years agor25738: always include config.h first.
Stefan Metzmacher [Fri, 26 Oct 2007 04:32:24 +0000 (06:32 +0200)]
r25738: always include config.h first.

this needs merging to heimdal and lorikeet-heimdal

metze
(This used to be commit c2c2c991c7f568af833f10d8cf0946d90b097fab)

12 years agor25737: Integrate more of the test recipe code into one file, use
Jelmer Vernooij [Thu, 25 Oct 2007 20:20:52 +0000 (22:20 +0200)]
r25737: Integrate more of the test recipe code into one file, use

different mechanism for determining the quicktest list.

Quicktest is a bit verbose now (reports all the tests not run as SKIP:)
(This used to be commit e99e9c167f49c5f8762c7ad16b10ff4aab98091e)

12 years agor25736: make sure we include "config.h" as first header
Stefan Metzmacher [Thu, 25 Oct 2007 18:13:06 +0000 (20:13 +0200)]
r25736: make sure we include "config.h" as first header

in code generated from et_compile

metze
(This used to be commit 8757b09052c5e07b23b8b50f7227f884201d9e98)

12 years agor25735: make sure we include "config.h" as first header in
Stefan Metzmacher [Thu, 25 Oct 2007 18:12:23 +0000 (20:12 +0200)]
r25735: make sure we include "config.h" as first header in

files generated from asn1_compile

metze
(This used to be commit 85f6b42221854618bcc6200d27693827defb13fa)

12 years agor25734: regenerate yacc output (parse.[ch] files)
Stefan Metzmacher [Thu, 25 Oct 2007 17:52:37 +0000 (19:52 +0200)]
r25734: regenerate yacc output (parse.[ch] files)

metze
(This used to be commit cb3aec0d22e87086d8f922b7d8f0a2530842053f)

12 years agor25733: fix filename substitution and bail out if yacc output isn't generated
Stefan Metzmacher [Thu, 25 Oct 2007 17:51:38 +0000 (19:51 +0200)]
r25733: fix filename substitution and bail out if yacc output isn't generated

metze
(This used to be commit 43911e40170176db48ee696c06c92f5fe71f60b8)

12 years agor25732: import updated parse.y files from lorikeet-heimdal
Stefan Metzmacher [Thu, 25 Oct 2007 17:50:34 +0000 (19:50 +0200)]
r25732: import updated parse.y files from lorikeet-heimdal

I wonder why they're not updated as the parse.[ch]
are generated from the new versions already...

metze
(This used to be commit 9735715a0f2c8ea0c6ff5ba5adde6b6a6fb43aed)

12 years agor25731: Document winreg_NotifyChangeKeyValue's notify flags.
Günther Deschner [Thu, 25 Oct 2007 09:26:02 +0000 (11:26 +0200)]
r25731: Document winreg_NotifyChangeKeyValue's notify flags.

Guenther
(This used to be commit 4468b1cc49bd4a92c08aeb76419abfe00791b2c2)

12 years agor25730: Fix IDL for incorrect winreg_SetKeySecurity.
Günther Deschner [Thu, 25 Oct 2007 09:12:02 +0000 (11:12 +0200)]
r25730: Fix IDL for incorrect winreg_SetKeySecurity.

Guenther
(This used to be commit 767867c3ee126c3832750d1b1e7de81005c4eaff)

12 years agor25729: Fix silly regression in the subtree_rename - I broke normal renames.
Andrew Bartlett [Thu, 25 Oct 2007 09:07:30 +0000 (11:07 +0200)]
r25729: Fix silly regression in the subtree_rename - I broke normal renames.

Bug 5041

Andrew Bartlett
(This used to be commit 7e68051bb7a9ac5f1b232c32b7614db61c3c1bc4)

12 years agor25728: [libreplace] define AI_NUMERICSERV as it's used in getaddrinfo.c
Stefan Metzmacher [Thu, 25 Oct 2007 07:16:11 +0000 (09:16 +0200)]
r25728: [libreplace] define AI_NUMERICSERV as it's used in getaddrinfo.c

metze
(This used to be commit 5648c8a0de7482a28a5b95410c083ac87577d482)

12 years agor25727: include "system/network.h" instead of <sys/socket.h>
Stefan Metzmacher [Thu, 25 Oct 2007 06:48:53 +0000 (08:48 +0200)]
r25727: include "system/network.h" instead of <sys/socket.h>

to make sure socklen_t is typedef'ed

metze
(This used to be commit d1fb51b1d282363e77fe6d9f61f85fec52327f6b)

12 years agor25726: [libreplace] move and fix getaddrinfo configure checks
Stefan Metzmacher [Thu, 25 Oct 2007 06:43:00 +0000 (08:43 +0200)]
r25726: [libreplace] move and fix getaddrinfo configure checks

- move getaddrinfo check into getaddrinfo.m4
- add getaddrinfo.o to LIBREPLACEOBJ so that we really build the replacements

metze
(This used to be commit b594d9c9fa86249e3d3988702a2333460cd70436)

12 years agor25725: merge commit bc9008aa1dcb66890795f0ff2d3046da7df867d9 from v3-2-test:
Stefan Metzmacher [Thu, 25 Oct 2007 04:56:27 +0000 (06:56 +0200)]
r25725: merge commit bc9008aa1dcb66890795f0ff2d3046da7df867d9 from v3-2-test:

Author:     Jeremy Allison <jra@samba.org>
AuthorDate: Wed Oct 24 14:40:24 2007 -0700

We do support name lookups for host and service in our replacement
code - remove the restrictions from the original Postgres code.

Jeremy.
(This used to be commit 25a892f2ad1b281869779686ca23f2ed29b46a5c)

12 years agor25724: - include getaddrinfo.h after we have defined struct addrinfo
Stefan Metzmacher [Thu, 25 Oct 2007 04:53:38 +0000 (06:53 +0200)]
r25724: - include getaddrinfo.h after we have defined struct addrinfo

- use rep_ instead of pg_ as prefix in getaddrinfo.[ch]
- define HAVE_<name> macros when we replace functions

metze
(This used to be commit 57d5cf4b5fe8885b1375059aa143c9c71d2503b4)

12 years agor25723: Add a check to prevent deletion of entries with children. Sadly MMC
Andrew Bartlett [Thu, 25 Oct 2007 03:04:55 +0000 (05:04 +0200)]
r25723: Add a check to prevent deletion of entries with children. Sadly MMC

doesn't trigger it's recursive delete correctly, but the error return
is correct (but perhaps needs a different LDAP wire format).

Andrew Bartlett
(This used to be commit 10ba3ae6990098e772683de9144b13b3f1d45a36)

12 years agor25722: Start merging the various test plan files for Samba 4 into one, so that it'll
Jelmer Vernooij [Wed, 24 Oct 2007 17:16:10 +0000 (19:16 +0200)]
r25722: Start merging the various test plan files for Samba 4 into one, so that it'll

be easier to split selftest/ into a generic, a Samba 3 and a Samba 4-specific
bit.
(This used to be commit 5deb3a6fab6d1b4197b8a019ad5602055b50f9d3)

12 years agor25721: remove unused var
Stefan Metzmacher [Wed, 24 Oct 2007 12:19:47 +0000 (14:19 +0200)]
r25721: remove unused var

metze
(This used to be commit d878351e820957451b1130d0e5724faf7a4c0370)

12 years agor25720: update .gitignore
Stefan Metzmacher [Wed, 24 Oct 2007 11:53:48 +0000 (13:53 +0200)]
r25720: update .gitignore

metze
(This used to be commit b7899faf97d818a0c0457799c33ee8b8a1df7b87)

12 years agor25719: let "system/network.h" do the replacements first, then
Stefan Metzmacher [Wed, 24 Oct 2007 11:50:30 +0000 (13:50 +0200)]
r25719: let "system/network.h" do the replacements first, then

roken.h.in can do the missing heimdal bits.

this removes to redifinition of 'struct addrinfo' on some platforms

metze
(This used to be commit 317b6494452f6162465000fe71e5c40c260f735a)

12 years agor25718: [libreplace] if we replace types define the HAVE_<type> macro
Stefan Metzmacher [Wed, 24 Oct 2007 11:01:03 +0000 (13:01 +0200)]
r25718: [libreplace] if we replace types define the HAVE_<type> macro

this is needed as heimdal's roken.h also tries to replace the types

metze
(This used to be commit 8b92b811015d0855efe3cf4c58cd08e3654f8e88)

12 years agor25715: [libreplace] move definition of struct addrinfo so that it can use socklen_t
Stefan Metzmacher [Wed, 24 Oct 2007 10:57:57 +0000 (12:57 +0200)]
r25715: [libreplace] move definition of struct addrinfo so that it can use socklen_t

metze
(This used to be commit 12cec014c465a55974aedf44e0e782f5fb841088)

12 years agor25714: [libreplace] move define of a constant to near to the others
Stefan Metzmacher [Wed, 24 Oct 2007 10:55:40 +0000 (12:55 +0200)]
r25714: [libreplace] move define of a constant to near to the others

metze
(This used to be commit 8bd2cf71bee1a08c3d420a330730434edbac5e28)

12 years agor25713: [libreplace] include socket_wrapper.h after we have typedef'ed socklen_t
Stefan Metzmacher [Wed, 24 Oct 2007 10:53:34 +0000 (12:53 +0200)]
r25713: [libreplace] include socket_wrapper.h after we have typedef'ed socklen_t

metze
(This used to be commit a3657a4e7175e35707e7a00330f6924833774253)

12 years agor25712: try to fix the build, perl should handle by_path as comparison function
Stefan Metzmacher [Wed, 24 Oct 2007 07:15:26 +0000 (09:15 +0200)]
r25712: try to fix the build, perl should handle by_path as comparison function

metze
(This used to be commit ee47f5dc7947cad7eed84f071112e41c4a687275)

12 years agor25711: only use sort if available
Stefan Metzmacher [Wed, 24 Oct 2007 06:34:11 +0000 (08:34 +0200)]
r25711: only use sort if available

metze
(This used to be commit 1f5a98cd91f73f8f16d941fe8bb375fec704f0dd)

12 years agor25710: Finally fix subtree renames. Untested code is broken code and in this
Andrew Bartlett [Wed, 24 Oct 2007 02:32:24 +0000 (04:32 +0200)]
r25710: Finally fix subtree renames. Untested code is broken code and in this

case an oddity of the javascript caused the test to 'pass'.

For the same oddity, we have a failure in ldb's handling of spaces in
DNs.  We need to resolve that too.

Andrew Bartlett
(This used to be commit e8cbac1a46f4d3b083e6bb5a509ef1ba47bebff1)

12 years agor25707: Move selftest makefile code to separate file.
Jelmer Vernooij [Sun, 21 Oct 2007 23:05:31 +0000 (01:05 +0200)]
r25707: Move selftest makefile code to separate file.
(This used to be commit 9714db7814fd43d2a10485c041bbb761360c0826)

12 years agor25706: Merge padding fix from Samba3.
Günther Deschner [Fri, 19 Oct 2007 12:28:26 +0000 (14:28 +0200)]
r25706: Merge padding fix from Samba3.

Guenther
(This used to be commit d33667f914d8f292f008c1e6288868bcd3392da8)

12 years agor25705: Ensure we return the out value to the caller.
Andrew Bartlett [Fri, 19 Oct 2007 04:57:19 +0000 (06:57 +0200)]
r25705: Ensure we return the out value to the caller.

Andrew Bartlett
(This used to be commit 3434262ad74c366ac58319c70880ca50898fa78c)

12 years agor25704: Handle the chicken-and-egg problem of setting up the LDB before we get
Andrew Bartlett [Fri, 19 Oct 2007 04:47:54 +0000 (06:47 +0200)]
r25704: Handle the chicken-and-egg problem of setting up the LDB before we get

a schema.  perhaps i need to look into metze's 'load a schema from
ldif' code.

Andrew Bartlett
(This used to be commit f350ef5f19ec755c93c6c09210cdf276d1b66877)

12 years agor25703: Use less entropy by using the pointer value as a process-unique token.
Andrew Bartlett [Fri, 19 Oct 2007 03:41:32 +0000 (05:41 +0200)]
r25703: Use less entropy by using the pointer value as a process-unique token.

Andrew Bartlett
(This used to be commit 3480dc71a9f969909b984855d546a1974593368f)

12 years agor25702: Clarify comments and make this module more strict on objectclasses.
Andrew Bartlett [Fri, 19 Oct 2007 03:40:00 +0000 (05:40 +0200)]
r25702: Clarify comments and make this module more strict on objectclasses.

This is becoming the schema module...

Andrew Bartlett
(This used to be commit ecea817a3e793f8ac0187dd83a29e62a7d645868)

12 years agor25701: Clarify comment
Andrew Bartlett [Fri, 19 Oct 2007 03:39:08 +0000 (05:39 +0200)]
r25701: Clarify comment
(This used to be commit cea496d2163db6dde371526dd5a79d4c090839ef)

12 years agor25700: Now BOOL no longer exists in Samba 3.2, use bool instead.
Jeremy Allison [Thu, 18 Oct 2007 22:40:51 +0000 (00:40 +0200)]
r25700: Now BOOL no longer exists in Samba 3.2, use bool instead.

Jeremy.
(This used to be commit ad0b9792f2dc91208a199060585c83ed7f622451)

12 years agor25699: Add ForceReplication test.
Günther Deschner [Thu, 18 Oct 2007 19:23:25 +0000 (21:23 +0200)]
r25699: Add ForceReplication test.

Guenther
(This used to be commit 0bab602b8e38ca758d3795db3d33a92eb162bb92)

12 years agor25697: make *clean doesn't work after a svn up when some *.mk files were removed
Stefan Metzmacher [Thu, 18 Oct 2007 11:27:48 +0000 (13:27 +0200)]
r25697: make *clean doesn't work after a svn up when some *.mk files were removed

the error is:
SAMBA_4_0/source> make clean
make: *** No rule to make target `lib/ldb/samba/config.mk', needed by `Makefile'.  Stop.

the problem is:
Makefile: config.status $(MK_FILES)
./config.status

so now we let the MK_FILES variable empty for the *clean targets
if gnu make is detected, we should later test if this construct
is portable to other make implementations and remove the check for gnu make.

metze
(This used to be commit 4c8e539af1e8f14bb449c92db3376dec12344e5b)

12 years agor25696: Fix pipe name for dfs.
Günther Deschner [Thu, 18 Oct 2007 07:44:25 +0000 (09:44 +0200)]
r25696: Fix pipe name for dfs.

Guenther
(This used to be commit 7a0441948977bd97508ab662a550b8664e87c724)

12 years agor25695: [libreplace] fix the standalone build of libreplace
Stefan Metzmacher [Thu, 18 Oct 2007 06:34:19 +0000 (08:34 +0200)]
r25695: [libreplace] fix the standalone build of libreplace

all configure results which are used in replace.h
or any system/*.h should be in the in the libreplace
*.m4 files!

metze
(This used to be commit 95462d614d68a93e85232e3a779f8bfa86fba4d1)

12 years agor25694: Move subtree_rename above the partitions module. The next step is to
Andrew Bartlett [Thu, 18 Oct 2007 03:47:11 +0000 (05:47 +0200)]
r25694: Move subtree_rename above the partitions module. The next step is to

built a linked_attributes module under this.

Andrew Bartlett
(This used to be commit 4f47e687e579feeb10bb866d62f0c757e5389709)

12 years agor25693: Implement the rest of subtree renames, now that tridge waved his magic
Andrew Bartlett [Thu, 18 Oct 2007 03:39:55 +0000 (05:39 +0200)]
r25693: Implement the rest of subtree renames, now that tridge waved his magic

over the ldb_tdb part of the problem.

Andrew Bartlett
(This used to be commit daca0cfd2fc2ec3344415d2d31f399ee3bf16151)

12 years agor25692: fixed another example where the free of fde and the free of the socket
Andrew Tridgell [Thu, 18 Oct 2007 01:32:07 +0000 (03:32 +0200)]
r25692: fixed another example where the free of fde and the free of the socket

causes the fd to be closed before epoll is told
(This used to be commit d19686cf8a3aba0c6601c5fa58cbf74461055c1c)

12 years agor25691: make "server role" case insensitive
Andrew Tridgell [Thu, 18 Oct 2007 01:14:10 +0000 (03:14 +0200)]
r25691: make "server role" case insensitive
(This used to be commit f61a9b706894de4fa8916b55a24f330eed9f5b0c)

12 years agor25690: - only use a readonly traverse in ldb_search when not in a transaction. When...
Andrew Tridgell [Thu, 18 Oct 2007 00:03:21 +0000 (02:03 +0200)]
r25690: - only use a readonly traverse in ldb_search when not in a transaction. When we are in a transaction then we could be in a top level modify operation (such as rename), so we must use a writeable traverse so that the async callbacks can do the modifies while the search is progressing.

- don't do the lockall operation on the tdb during a ldb search if in
  a transaction, as this would prevent modifies by callbacks as well
(This used to be commit aa9ab431e071882f42ebc882e809ae1d4b8778d4)

12 years agor25689: test with a non-zero size file
Andrew Tridgell [Wed, 17 Oct 2007 23:37:46 +0000 (01:37 +0200)]
r25689: test with a non-zero size file
(This used to be commit 2a6713aa239d07f6898f507ddb3631504c379792)

12 years agor25688: Add a simple test for a samba3 regression
Volker Lendecke [Wed, 17 Oct 2007 16:26:40 +0000 (18:26 +0200)]
r25688: Add a simple test for a samba3 regression

When trying an reqchal/auth2 for an unknown workstation account, we have
to return NT_STATUS_NO_TRUST_SAM_ACCOUNT to the auth2. v3-2-test right
now returns NT_STATUS_ACCESS_DENIED, which seems to prevent XP from
joining a Samba3 PDC.
(This used to be commit 99cc861238a33d43ccc4e97cb5ab756c0a097e1d)

12 years agor25687: Move #defined for getaddrinfo into network.h (as other
Stefan Metzmacher [Wed, 17 Oct 2007 12:02:33 +0000 (14:02 +0200)]
r25687: Move #defined for getaddrinfo into network.h (as other

defines). Allows RHEL4 compile to work.
Jeremy.
(cherry picked from commit 0ffdf4fdeea88c21880c8bf69d8db56fb49effa7)
(This used to be commit facb811bb3c77a0b98089c283fe0707c5f486c88)

12 years agor25686: Added in missing def for AI_ADDRCONFIG.
Stefan Metzmacher [Wed, 17 Oct 2007 12:02:20 +0000 (14:02 +0200)]
r25686: Added in missing def for AI_ADDRCONFIG.

Jeremy.
(cherry picked from commit 3ef3c3afc3f56b0f4fdb384d55d2e712060fbedf)
(This used to be commit 5d2995c413ff3da801c40fc6d631e2cd443695e3)

12 years agor25685: rename getsmbpass -> rep_getpass and provide the function prototype
Stefan Metzmacher [Wed, 17 Oct 2007 12:02:06 +0000 (14:02 +0200)]
r25685: rename getsmbpass -> rep_getpass and provide the function prototype

metze
(cherry picked from commit 96820f8d8f6522fc264efda0f069e2f6a420ac2e)
(This used to be commit cd5069a8ca17a3a14814c0fbf55f113690291165)

12 years agor25684: use "system/*.h" to get the system includes
Stefan Metzmacher [Wed, 17 Oct 2007 12:01:49 +0000 (14:01 +0200)]
r25684: use "system/*.h" to get the system includes

metze
(cherry picked from commit d20c2fa274297e9577ed28b8ed04806a425bdc57)
(This used to be commit ee8557783534ac5b075a8a4655a12b33b854c050)

12 years agor25683: fix the compilation of getpass.c and it's configure test
Stefan Metzmacher [Wed, 17 Oct 2007 12:01:34 +0000 (14:01 +0200)]
r25683: fix the compilation of getpass.c and it's configure test

metze
(cherry picked from commit f4c0961a16a84dcdfe6e2faafb75c76983e6d466)
(This used to be commit 5d747fcad0b0ac66584da500148e7647122e0544)

12 years agor25682: r16320: Ensure variable is not null before calling fclose. Klocwork #412...
Stefan Metzmacher [Wed, 17 Oct 2007 12:01:15 +0000 (14:01 +0200)]
r25682: r16320: Ensure variable is not null before calling fclose. Klocwork #412. Jeremy.

(cherry picked from commit 33ee0cfb190a883229d0824d7194898fd8966ceb)
(This used to be commit 3910d069413834744b17175bb29775a69002712e)

12 years agor25681: r16245: Cope with string being zero len. Klocwork bug #410. Jeremy.
Stefan Metzmacher [Wed, 17 Oct 2007 12:00:57 +0000 (14:00 +0200)]
r25681: r16245: Cope with string being zero len. Klocwork bug #410. Jeremy.

(cherry picked from commit 46c12de07fe6f44bcf58ca9de276e7932384843d)
(This used to be commit 7099dde3fd8962e752451ebe2d5d79de4d7caee9)

12 years agor25680: Volker's fix for bug #668. Change the \n after the password prompt to go...
Stefan Metzmacher [Wed, 17 Oct 2007 12:00:42 +0000 (14:00 +0200)]
r25680: Volker's fix for bug #668. Change the \n after the password prompt to go to tty instead of stdout.

(cherry picked from commit 0cd1ed0424ce87f60070d43caffda41be6706d59)
(This used to be commit 249d69fd85b67657a4523ffc9244a8b4ab01270a)

12 years agor25679: reapply: Allow ^C to interrupt smbpasswd if using our getpass. from Jeremy
Stefan Metzmacher [Wed, 17 Oct 2007 12:00:23 +0000 (14:00 +0200)]
r25679: reapply: Allow ^C to interrupt smbpasswd if using our getpass. from Jeremy

metze
(cherry picked from commit d4ae42b1b2982dd786d6da16d7fa964d25fd3356)
(This used to be commit a11d21790fc2ee33998e042195ccbad73631bad8)

12 years agor25678: reformat getpass() replacement code
Stefan Metzmacher [Wed, 17 Oct 2007 12:00:09 +0000 (14:00 +0200)]
r25678: reformat getpass() replacement code

metze
(cherry picked from commit 3e8f43e3cf97f10be4717978643ef3edca8650a5)
(This used to be commit 78da4477a7ef920ff77b41abb841465511b8db31)

12 years agor25677: add missing stuff from samba3
Stefan Metzmacher [Wed, 17 Oct 2007 11:58:19 +0000 (13:58 +0200)]
r25677: add missing stuff from samba3

metze
(This used to be commit d286c0533dd2726ebc547dcaf99f45169d4a9d2f)

12 years agor25676: fixed a valgrind error in the epoll event backend. The linked list
Andrew Tridgell [Wed, 17 Oct 2007 10:00:30 +0000 (12:00 +0200)]
r25676: fixed a valgrind error in the epoll event backend. The linked list

could get mucked up.
(This used to be commit 67240f380b2828eb85463ab2d256ae601f57348f)

12 years agor25675: More frsapi IDL.
Günther Deschner [Wed, 17 Oct 2007 07:50:39 +0000 (09:50 +0200)]
r25675: More frsapi IDL.

Guenther
(This used to be commit 7ab033e8395d5284e9223618c238ff94d3948ac8)

12 years agor25674: fix crash bug in pidl generated client code, this
Stefan Metzmacher [Wed, 17 Oct 2007 06:26:55 +0000 (08:26 +0200)]
r25674: fix crash bug in pidl generated client code, this

could have happend with [in,out,unique] pointers
when the clients sends a valid pointer, but the server
reponse with a NULL pointer (as samba-3.0.26a do for some calls).

I've tested with midl to see how windows handles this situation
and also the reverse case where the client sends NULL and
the server reposnse with non-NULL.

It appears that midl generated code just ignores this
and only copies the result if both pointers are non-NULL.

metze
(This used to be commit 7203f717a676a741e49f96f2d477f4f459575caf)

12 years agor25673: Ignore RPC-FRSAPI for samba4.
Günther Deschner [Tue, 16 Oct 2007 15:23:34 +0000 (17:23 +0200)]
r25673: Ignore RPC-FRSAPI for samba4.

Guenther
(This used to be commit b9d53f1eea8c1840e24edcbcbc3a284123ecfa36)

12 years agor25672: Some more FRS werrors.
Günther Deschner [Tue, 16 Oct 2007 15:22:03 +0000 (17:22 +0200)]
r25672: Some more FRS werrors.

Guenther
(This used to be commit 8fa3de8dca9e9d0d9f7fc79e4fc78b85313f870b)

12 years agor25671: Add stub FRSAPI_FORCE_REPLICATION.
Günther Deschner [Tue, 16 Oct 2007 15:12:04 +0000 (17:12 +0200)]
r25671: Add stub FRSAPI_FORCE_REPLICATION.

Guenther
(This used to be commit a7ebef8dd744104da7216344867d8d2bd5463d1f)

12 years agor25670: Add torture test for frsapi_IsPathReplicated().
Günther Deschner [Tue, 16 Oct 2007 12:33:34 +0000 (14:33 +0200)]
r25670: Add torture test for frsapi_IsPathReplicated().

Guenther
(This used to be commit e7fc3c1da9764a2e7c103e05f3d774b540334f75)

12 years agor25669: Real build fix.
Günther Deschner [Tue, 16 Oct 2007 12:09:49 +0000 (14:09 +0200)]
r25669: Real build fix.

Guenther
(This used to be commit 1b9e526bf60372e5b3731e98dbfcc029b04e4b01)

12 years agor25668: Hopefully fix the build, sorry...
Günther Deschner [Tue, 16 Oct 2007 11:50:40 +0000 (13:50 +0200)]
r25668: Hopefully fix the build, sorry...

Guenther
(This used to be commit df94fbfe96200ed521fd377a01b6b7b7a7ef88d8)

12 years agor25667: Start on frsapi testsuite.
Günther Deschner [Tue, 16 Oct 2007 11:44:43 +0000 (13:44 +0200)]
r25667: Start on frsapi testsuite.

Guenther
(This used to be commit ebcbdb5fbdb30005a60431687a738df5f26d3472)

12 years agor25666: Add frsapi_IsPathReplicated IDL.
Günther Deschner [Tue, 16 Oct 2007 10:55:05 +0000 (12:55 +0200)]
r25666: Add frsapi_IsPathReplicated IDL.

Guenther
(This used to be commit d8fe7652bda2a984d830b83762950377a4849d64)

12 years agor25665: Add some more WERR codes.
Günther Deschner [Tue, 16 Oct 2007 09:39:40 +0000 (11:39 +0200)]
r25665: Add some more WERR codes.

Guenther
(This used to be commit 846d81c0ade7a1b56366feb4338312c24dc4351b)

12 years agor25664: Use [out] pointers in frsapi idl.
Günther Deschner [Tue, 16 Oct 2007 09:30:58 +0000 (11:30 +0200)]
r25664: Use [out] pointers in frsapi idl.

Guenther
(This used to be commit 2114103aedbe2134624caa3aba42b6f7721e6d45)

12 years agor25663: Add frsapi_SetDsPollingIntervalW and frsapi_GetDsPollingIntervalW idl.
Günther Deschner [Tue, 16 Oct 2007 09:16:35 +0000 (11:16 +0200)]
r25663: Add frsapi_SetDsPollingIntervalW and frsapi_GetDsPollingIntervalW idl.

Guenther
(This used to be commit 109e05b5117b1722a190765f84563cea24273de1)

12 years agor25662: While watching traces, learned the frsapi_InfoEnum enum types.
Günther Deschner [Tue, 16 Oct 2007 09:12:41 +0000 (11:12 +0200)]
r25662: While watching traces, learned the frsapi_InfoEnum enum types.

Guenther
(This used to be commit 5922a1228653709e1ff99be50e902663e152c706)

12 years agor25661: We don't actually need to know with DEBUG(0, ... every time we ask for
Andrew Bartlett [Tue, 16 Oct 2007 03:26:15 +0000 (05:26 +0200)]
r25661: We don't actually need to know with DEBUG(0, ... every time we ask for

some random bytes.

Andrew Bartlett
(This used to be commit 606c82f6254b8dc6fb32740a7bb55a1989081fe7)

12 years agor25660: Add a new interface 'generate_secret_buffer()', to be used when we
Andrew Bartlett [Mon, 15 Oct 2007 23:27:15 +0000 (01:27 +0200)]
r25660: Add a new interface 'generate_secret_buffer()', to be used when we

require top-quality entropy.  We don't want to waste system enropy
generating challenges (which simply need to be unpredictable, not
secret) or when generating UUIDs.

Rework generate_random_buffer() to use /dev/urandom less often, only
to seed the existing RC4 based PRNG.  (With an exception to ensure we
don't waste this setup cost for very small entropy requests).

Perhaps we should be using heimdal's code for this instead?

This should drasticly reduce our entropy use, particularly in the
build farm (automated Samba build on hosts without much other source
of entropy).

Andrew Bartlett
(This used to be commit 6a5630d37191542022f02fae519227b7829ef620)

12 years agor25642: Fix a small typo.
Kai Blin [Mon, 15 Oct 2007 06:35:24 +0000 (08:35 +0200)]
r25642: Fix a small typo.
(This used to be commit 7416a1d606a315174b782d67463f8cec878d18bb)

12 years agor25630: Allow "NULL" as memory context, for consistency with the rest of the code,
Jelmer Vernooij [Sun, 14 Oct 2007 13:12:21 +0000 (15:12 +0200)]
r25630: Allow "NULL" as memory context, for consistency with the rest of the code,

which also does.
(This used to be commit 083b606496308741958bb9fc6b3e50a582857677)

12 years agor25628: Fix formatting, missing include.
Jelmer Vernooij [Sun, 14 Oct 2007 11:28:01 +0000 (13:28 +0200)]
r25628: Fix formatting, missing include.
(This used to be commit aafd3ea03f52b08b6697f3778728659c790d03b4)

12 years agor25627: Remove unused global.
Jelmer Vernooij [Sun, 14 Oct 2007 11:00:12 +0000 (13:00 +0200)]
r25627: Remove unused global.
(This used to be commit b0b4668333b53991b04cae8905836c766e50aa10)

12 years agor25626: Move some debug-specific prototypes to debug.h.
Jelmer Vernooij [Sun, 14 Oct 2007 10:52:32 +0000 (12:52 +0200)]
r25626: Move some debug-specific prototypes to debug.h.
(This used to be commit 84a202754004ec618aa2663a4614d80eb2c7ce60)

12 years agor25624: Remove ipv4_addr hack. Only causes 4 extra includes of system/network.h becau...
Jelmer Vernooij [Sat, 13 Oct 2007 18:24:37 +0000 (20:24 +0200)]
r25624: Remove ipv4_addr hack. Only causes 4 extra includes of system/network.h because we stripped down includes.
(This used to be commit 262c1c23a61f1f4fae13e0a61179fe98b682cecf)

12 years agor25623: add 'make test-swrap-pcap' and 'make test-swrap-keep-pcap'
Stefan Metzmacher [Fri, 12 Oct 2007 06:10:12 +0000 (08:10 +0200)]
r25623: add 'make test-swrap-pcap' and 'make test-swrap-keep-pcap'

metze
(This used to be commit 398940031ba4b8208d80c0e589b7235120cf3594)