metze/old/v4-0-wb-ndr.git
16 years agondr: remove ndr_push/pull_save v4-0-build
Stefan Metzmacher [Fri, 16 Nov 2007 16:10:28 +0000 (17:10 +0100)]
ndr: remove ndr_push/pull_save

Using a uint32_t offset is all we need

metze

16 years agoIPC_RAP: don't use ndr_pull_save anymore
Stefan Metzmacher [Fri, 16 Nov 2007 16:04:29 +0000 (17:04 +0100)]
IPC_RAP: don't use ndr_pull_save anymore

metze

16 years agondr_krb5pac: don't use ndr_pull_save anymore
Stefan Metzmacher [Fri, 16 Nov 2007 16:05:09 +0000 (17:05 +0100)]
ndr_krb5pac: don't use ndr_pull_save anymore

metze

16 years agondr_string: don't use ndr_pull_save anymore
Stefan Metzmacher [Fri, 16 Nov 2007 16:05:32 +0000 (17:05 +0100)]
ndr_string: don't use ndr_pull_save anymore

metze

16 years agondr: don't use ndr_push_save anymore
Stefan Metzmacher [Fri, 16 Nov 2007 16:06:04 +0000 (17:06 +0100)]
ndr: don't use ndr_push_save anymore

metze

16 years agopidl: don't use ndr_pull_save anymore
Stefan Metzmacher [Fri, 16 Nov 2007 16:02:41 +0000 (17:02 +0100)]
pidl: don't use ndr_pull_save anymore

metze

16 years agolibreplace: rename AC_LIBREPLACE_LD_ALLOW_SHLIB_UNDEF_FLAG into AC_LIBREPLACE_LD_SHLI...
metze [Mon, 19 Nov 2007 12:12:13 +0000 (12:12 +0000)]
libreplace: rename AC_LIBREPLACE_LD_ALLOW_SHLIB_UNDEF_FLAG into AC_LIBREPLACE_LD_SHLIB_ALLOW_UNDEF_FLAG

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26027 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agolibreplace: split some linker macros
metze [Mon, 19 Nov 2007 11:34:26 +0000 (11:34 +0000)]
libreplace: split some linker macros

create:
AC_LIBREPLACE_LD_SHLIB_LINKER
AC_LIBREPLACE_LD_SHLIB_FLAGS
AC_LIBREPLACE_LD_SHLIB_DISALLOW_UNDEF_FLAG

and prerequire them for:
AC_LIBREPLACE_SHLD
AC_LIBREPLACE_SHLD_FLAGS
AC_LIBREPLACE_MDLD
AC_LIBREPLACE_MDLD_FLAGS

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26026 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agolibreplace: AC_LIBREPLACE_LD_ALLOW_SHLIB_UNDEF_FLAG should fill LD_ALLOW_SHLIB_UNDEF_FLAG
metze [Mon, 19 Nov 2007 10:07:29 +0000 (10:07 +0000)]
libreplace: AC_LIBREPLACE_LD_ALLOW_SHLIB_UNDEF_FLAG should fill LD_ALLOW_SHLIB_UNDEF_FLAG

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26025 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agofix make install
metze [Mon, 19 Nov 2007 07:02:33 +0000 (07:02 +0000)]
fix make install

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26024 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoGENCACHE depends on TDB_WRAP
metze [Sat, 17 Nov 2007 22:50:13 +0000 (22:50 +0000)]
GENCACHE depends on TDB_WRAP

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26020 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agouse <tdb.h> instead of "tdb.h"
metze [Sat, 17 Nov 2007 22:49:24 +0000 (22:49 +0000)]
use <tdb.h> instead of "tdb.h"

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26019 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agodsdb/schema/proto.h doesn't exist anymore
metze [Sat, 17 Nov 2007 22:48:01 +0000 (22:48 +0000)]
dsdb/schema/proto.h doesn't exist anymore

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26018 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agodb_wrap.h doesn't exist anymore and we now need tdb_wrap.h
metze [Sat, 17 Nov 2007 22:46:39 +0000 (22:46 +0000)]
db_wrap.h doesn't exist anymore and we now need tdb_wrap.h

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26017 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoremove unneeded include
metze [Sat, 17 Nov 2007 22:45:36 +0000 (22:45 +0000)]
remove unneeded include

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26016 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agofix dependecies
metze [Sat, 17 Nov 2007 22:44:57 +0000 (22:44 +0000)]
fix dependecies

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26015 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoImprove some dependencies.
jelmer [Fri, 16 Nov 2007 23:24:23 +0000 (23:24 +0000)]
Improve some dependencies.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26006 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoNotice the user about LD_LIBRARY_PATH or equivalent when building with shared libs.
jelmer [Fri, 16 Nov 2007 21:50:31 +0000 (21:50 +0000)]
Notice the user about LD_LIBRARY_PATH or equivalent when building with shared libs.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26005 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoAdd some simple credentials tests.
jelmer [Fri, 16 Nov 2007 20:54:13 +0000 (20:54 +0000)]
Add some simple credentials tests.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26004 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoSplit up DB_WRAP, as first step in an attempt to sanitize dependencies.
jelmer [Fri, 16 Nov 2007 20:12:00 +0000 (20:12 +0000)]
Split up DB_WRAP, as first step in an attempt to sanitize dependencies.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26003 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoUse osf rather than tru64 - pointed out by metze.
jelmer [Fri, 16 Nov 2007 20:11:53 +0000 (20:11 +0000)]
Use osf rather than tru64 - pointed out by metze.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26002 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoShare some code between macros, add macro specifically for testing the ld flag that...
jelmer [Fri, 16 Nov 2007 20:11:48 +0000 (20:11 +0000)]
Share some code between macros, add macro specifically for testing the ld flag that allows undefined symbols.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26001 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agobuild: use AC_LIBREPLACE_STLD_* macros
metze [Fri, 16 Nov 2007 11:50:11 +0000 (11:50 +0000)]
build: use AC_LIBREPLACE_STLD_* macros

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@26000 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agolibreplace: add AC_LIBREPLACE_STLD and AC_LIBREPLACE_STLD_FLAGS
metze [Fri, 16 Nov 2007 11:48:59 +0000 (11:48 +0000)]
libreplace: add AC_LIBREPLACE_STLD and AC_LIBREPLACE_STLD_FLAGS

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25999 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoAdd test for run time library path environment variable.
jelmer [Fri, 16 Nov 2007 11:40:52 +0000 (11:40 +0000)]
Add test for run time library path environment variable.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25998 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agotorture: fix variables passed by make gcov
metze [Fri, 16 Nov 2007 11:29:16 +0000 (11:29 +0000)]
torture: fix variables passed by make gcov

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25997 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agobuild: rename LD -> BNLD and LDFLAGS -> BNLD_FLAGS
metze [Fri, 16 Nov 2007 11:27:48 +0000 (11:27 +0000)]
build: rename LD -> BNLD and LDFLAGS -> BNLD_FLAGS

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25996 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agobuild: print out MDLD and MDLD_FLAGS with make showflags
metze [Fri, 16 Nov 2007 10:53:16 +0000 (10:53 +0000)]
build: print out MDLD and MDLD_FLAGS with make showflags

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25995 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agobuild: use HOSTCC, HOSTCC_FLAGS, HOSTLD and HOSTLD_FLAGS
metze [Fri, 16 Nov 2007 10:41:35 +0000 (10:41 +0000)]
build: use HOSTCC, HOSTCC_FLAGS, HOSTLD and HOSTLD_FLAGS

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25994 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agobuild: HOSTLD should always match HOSTCC if not specified
metze [Fri, 16 Nov 2007 10:39:52 +0000 (10:39 +0000)]
build: HOSTLD should always match HOSTCC if not specified

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25993 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoldb: use AC_LIBREPLACE_SHLD and use it for linking shared libraries
metze [Fri, 16 Nov 2007 10:21:57 +0000 (10:21 +0000)]
ldb: use AC_LIBREPLACE_SHLD and use it for linking shared libraries

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25992 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agotdb: use AC_LIBREPLACE_SHLD and use it for linking the shared library
metze [Fri, 16 Nov 2007 10:19:46 +0000 (10:19 +0000)]
tdb: use AC_LIBREPLACE_SHLD and use it for linking the shared library

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25991 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agotalloc: use AC_LIBREPLACE_SHLD and use it for linking the shared library
metze [Fri, 16 Nov 2007 10:17:26 +0000 (10:17 +0000)]
talloc: use AC_LIBREPLACE_SHLD and use it for linking the shared library

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25990 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agobuild: use AC_LIBREPLACE_SHLD
metze [Fri, 16 Nov 2007 10:15:26 +0000 (10:15 +0000)]
build: use AC_LIBREPLACE_SHLD

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25989 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agolibreplace: add AC_LIBREPLACE_SHLD
metze [Fri, 16 Nov 2007 10:14:48 +0000 (10:14 +0000)]
libreplace: add AC_LIBREPLACE_SHLD

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25988 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agolibreplace: rename AC_LD_SHLDFLAGS into AC_LIBREPLACE_SHLD_FLAGS
metze [Fri, 16 Nov 2007 10:10:58 +0000 (10:10 +0000)]
libreplace: rename AC_LD_SHLDFLAGS into AC_LIBREPLACE_SHLD_FLAGS

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25987 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agolibreplace: warn about unresolved symbols when link shared libraries
metze [Fri, 16 Nov 2007 09:31:49 +0000 (09:31 +0000)]
libreplace: warn about unresolved symbols when link shared libraries

On Tru64 and Mac OS X this hopefully works

Note: -Wl,--no-allow-shlib-undefined doesn't tests what we want
      on Linux.

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25986 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agobuild: SHLD_UNDEF_FLAGS isn't used anymore
metze [Fri, 16 Nov 2007 08:38:32 +0000 (08:38 +0000)]
build: SHLD_UNDEF_FLAGS isn't used anymore

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25985 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoldb: use MDLD macros from libreplace and use results to build share modules
metze [Fri, 16 Nov 2007 08:35:48 +0000 (08:35 +0000)]
ldb: use MDLD macros from libreplace and use results to build share modules

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25984 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoldb: link shared library against $(LDAP_LIBS)
metze [Fri, 16 Nov 2007 08:31:42 +0000 (08:31 +0000)]
ldb: link shared library against $(LDAP_LIBS)

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25983 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agolibreplace: try to ignore unresolved symbols in modules on Tru64
metze [Fri, 16 Nov 2007 08:30:32 +0000 (08:30 +0000)]
libreplace: try to ignore unresolved symbols in modules on Tru64

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25982 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoDon't create an ldb_request on NULL.
abartlet [Fri, 16 Nov 2007 04:18:22 +0000 (04:18 +0000)]
Don't create an ldb_request on NULL.

A re-arrangment of the code due to the base DN checking meant that the
ac->down_req array wasn't started, so was NULL

Andrew Bartlett

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25981 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agobuild: use AC_LIBREPLACE_MDLD_* macros and use the result to build modules
metze [Thu, 15 Nov 2007 16:46:57 +0000 (16:46 +0000)]
build: use AC_LIBREPLACE_MDLD_* macros and use the result to build modules

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25978 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agolibreplace: add AC_LIBREPLACE_MDLD and AC_LIBREPLACE_MDLD_FLAGS macros
metze [Thu, 15 Nov 2007 16:44:28 +0000 (16:44 +0000)]
libreplace: add AC_LIBREPLACE_MDLD and AC_LIBREPLACE_MDLD_FLAGS macros

They define the linker and link flags for building shared modules

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25977 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agolibreplace: not all platforms like _XOPEN_SOURCE=600
metze [Thu, 15 Nov 2007 16:40:32 +0000 (16:40 +0000)]
libreplace: not all platforms like _XOPEN_SOURCE=600

- Only use _XOPEN_SOURCE=600 on Tru64
- _OSF_SOURCE is also Tru64 specific

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25976 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agobuild: split SharedModule from SharedLibrary
metze [Thu, 15 Nov 2007 15:44:17 +0000 (15:44 +0000)]
build: split SharedModule from SharedLibrary

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25975 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agolibreplace: see what the build-farm says if we use _XOPEN_SOURCE=600
metze [Thu, 15 Nov 2007 15:43:14 +0000 (15:43 +0000)]
libreplace: see what the build-farm says if we use _XOPEN_SOURCE=600

On Tru64 this brings in socklen_t and some other socket stuff

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25974 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agotalloc: fix usage of SONAMEFLAG
metze [Thu, 15 Nov 2007 15:41:03 +0000 (15:41 +0000)]
talloc: fix usage of SONAMEFLAG

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25973 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agotdb: fix usage of SONAMEFLAG
metze [Thu, 15 Nov 2007 15:40:39 +0000 (15:40 +0000)]
tdb: fix usage of SONAMEFLAG

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25972 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agolibreplace: remove AC_EXTENSION_FLAG as it's the same as AC_N_DEFINE
metze [Thu, 15 Nov 2007 14:55:48 +0000 (14:55 +0000)]
libreplace: remove AC_EXTENSION_FLAG as it's the same as AC_N_DEFINE

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25971 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agolibreplace: fix AC_N_DEFINE() so that some appears in config.h
metze [Thu, 15 Nov 2007 14:46:47 +0000 (14:46 +0000)]
libreplace: fix AC_N_DEFINE() so that some appears in config.h

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25970 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoldb: link libnss_ldb.so.2 against the shared library
metze [Thu, 15 Nov 2007 13:16:31 +0000 (13:16 +0000)]
ldb: link libnss_ldb.so.2 against the shared library

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25969 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoldb: we need to use @SONAMEFLAG@ directly so that the '#' trick can work
metze [Thu, 15 Nov 2007 13:11:50 +0000 (13:11 +0000)]
ldb: we need to use @SONAMEFLAG@ directly so that the '#' trick can work

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25968 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoldb: a module doesn't need to link against $(LIBS)
metze [Thu, 15 Nov 2007 13:07:08 +0000 (13:07 +0000)]
ldb: a module doesn't need to link against $(LIBS)

As the main library already links to it.

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25967 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoDon't force an 8 byte width to generated SIDs, as this can actually
abartlet [Thu, 15 Nov 2007 11:37:41 +0000 (11:37 +0000)]
Don't force an 8 byte width to generated SIDs, as this can actually
end up with a SID with a space in it.

Andrew Bartlett

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25966 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoRemove duplicate block - thanks metze!
abartlet [Thu, 15 Nov 2007 11:05:22 +0000 (11:05 +0000)]
Remove duplicate block - thanks metze!

Andrew Bartlett

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25965 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoFix comment and use talloc hirachy in ldb_tdb initialisation.
abartlet [Thu, 15 Nov 2007 11:01:14 +0000 (11:01 +0000)]
Fix comment and use talloc hirachy in ldb_tdb initialisation.

Andrew Bartlett

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25964 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agolibreplace: samba3 doesn't use SONAMEFLAG on Mac OS 10, so also try this
metze [Thu, 15 Nov 2007 10:20:55 +0000 (10:20 +0000)]
libreplace: samba3 doesn't use SONAMEFLAG on Mac OS 10, so also try this

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25963 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoMove to more modern ldb functions loading module list.
abartlet [Thu, 15 Nov 2007 05:54:51 +0000 (05:54 +0000)]
Move to more modern ldb functions loading module list.

Andrew Bartlett

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25962 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoAdd new tests to verify basedn validation in LDAP searches.
abartlet [Thu, 15 Nov 2007 02:46:13 +0000 (02:46 +0000)]
Add new tests to verify basedn validation in LDAP searches.

Andrew Bartlett

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25961 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoEnable checks on the validity of the search base on sam.ldb in Samba4.
abartlet [Thu, 15 Nov 2007 02:45:31 +0000 (02:45 +0000)]
Enable checks on the validity of the search base on sam.ldb in Samba4.

Remove bogus check to return NO_SUCH_ENTRY in ldap_backend.c, as this
error is now correctly emited from ldb.

Andrew Bartlett

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25960 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoAdd a new special DN to LDB: @OPTIONS
abartlet [Thu, 15 Nov 2007 01:53:44 +0000 (01:53 +0000)]
Add a new special DN to LDB: @OPTIONS

Use the checkBaseOnSearch attribute to control if we should check the
base DN on search requests.

Also ensure we honour any errors in searching, not just errors in the
supplied 'done' callback.

Andrew Bartlett

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25959 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoCallers of gendb_search_dn() don't expect to get
abartlet [Thu, 15 Nov 2007 01:13:24 +0000 (01:13 +0000)]
Callers of gendb_search_dn() don't expect to get
LDB_ERR_NO_SUCH_OBJECT for base searches.  Return 0 in this case.

Andrew Bartlett

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25958 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoRework the cracknames code to use less gendb_search() and instead call
abartlet [Thu, 15 Nov 2007 01:12:10 +0000 (01:12 +0000)]
Rework the cracknames code to use less gendb_search() and instead call
ldb_search_exp_fmt().  While it is a bit more verbose to code with, it
returns better error codes, and allows us to handle the case where the
base DN doesn't exist better.

Andrew Bartlett

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25957 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoTry metze's suggestion for Mac OS X shld flags.
jelmer [Wed, 14 Nov 2007 22:46:29 +0000 (22:46 +0000)]
Try metze's suggestion for Mac OS X shld flags.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25956 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agolibreplace: add a useful link about linking shared libraries
metze [Wed, 14 Nov 2007 11:42:03 +0000 (11:42 +0000)]
libreplace: add a useful link about linking shared libraries

http://www.fortran-2000.com/ArnaudRecipes/sharedlib.html

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25955 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agowe don't need this twice
metze [Wed, 14 Nov 2007 10:52:47 +0000 (10:52 +0000)]
we don't need this twice

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25954 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoAIX make doesn't support $^.
jelmer [Wed, 14 Nov 2007 10:51:32 +0000 (10:51 +0000)]
AIX make doesn't support $^.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25953 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoAdd in new data file required by samba3sam test.
abartlet [Wed, 14 Nov 2007 10:40:58 +0000 (10:40 +0000)]
Add in new data file required by samba3sam test.

Andrew Bartlett

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25952 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoAdd missing DS_SERVER_NDNC bit to netr_DsR_DcFlags.
gd [Wed, 14 Nov 2007 09:48:12 +0000 (09:48 +0000)]
Add missing DS_SERVER_NDNC bit to netr_DsR_DcFlags.

Guenther

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25951 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoEnable seperate module to prevent subtree deletes.
abartlet [Wed, 14 Nov 2007 03:55:05 +0000 (03:55 +0000)]
Enable seperate module to prevent subtree deletes.

Andrew Bartlett

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25950 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoMake error messages clearer and more correct.
abartlet [Wed, 14 Nov 2007 03:52:39 +0000 (03:52 +0000)]
Make error messages clearer and more correct.

Andrew Bartlett

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25949 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoFix up the samba3sam test (which is very fragile) to work with the new
abartlet [Wed, 14 Nov 2007 03:51:02 +0000 (03:51 +0000)]
Fix up the samba3sam test (which is very fragile) to work with the new
restrictions imposed by the samldb module.

This module is worth keeping, because when we go back to do more
extensive backend mapping, the testing of this module shows it is
still possible.

Andrew Bartlett

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25948 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoFix flags for MacOS X.
jelmer [Wed, 14 Nov 2007 01:07:39 +0000 (01:07 +0000)]
Fix flags for MacOS X.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25945 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoFix handling of sonameflag on AIX, which doesn't have anything like that.
jelmer [Wed, 14 Nov 2007 01:01:31 +0000 (01:01 +0000)]
Fix handling of sonameflag on AIX, which doesn't have anything like that.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25944 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoFix soname on hpux.
jelmer [Wed, 14 Nov 2007 00:22:31 +0000 (00:22 +0000)]
Fix soname on hpux.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25943 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoMake various ldb modules handle an LDB backend that enforces validity
abartlet [Tue, 13 Nov 2007 22:54:52 +0000 (22:54 +0000)]
Make various ldb modules handle an LDB backend that enforces validity
of Base DNs in searches (returning an error of LDB_ERR_NO_SUCH_ENTRY).

We need to handle this if ldb_tdb is to behave correctly compared with
LDAP, as well as if we are using an LDAP backend.

In doing so, I realised that subtree_rename and subtree_delete
(prevention) need rather different wait loops, so it seemed easier to
split it out into it's own module.

I've fixed the licence on both of these modules to be GPLv3.

Andrew Bartlett

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25942 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoUse samdb_relative_path() (new function in samdb.c) in the partitions
abartlet [Tue, 13 Nov 2007 22:40:42 +0000 (22:40 +0000)]
Use samdb_relative_path() (new function in samdb.c) in the partitions
module.

Andrew Bartlett

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25941 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoRework the samldb and templates handling.
abartlet [Tue, 13 Nov 2007 22:38:55 +0000 (22:38 +0000)]
Rework the samldb and templates handling.

Templates just don't belong in the sam.ldb, as they don't obey any of
the other rules.  This moves them to a seperate templates.ldb.

In samldb, this patch reworks the duplicate SID and Name detection
code, to use ldb_search_exp_fmt() rather than gendb_search.  This
returns far more useful errors, which we now handle and report better.

The call to samdb_search_for_parent_domain() has been moved in samldb,
to allow both the account and SID uniqueness checks to be in the same
domain.  This function also returns better errors.

dcesrv_drsuapi.c is updated for the new prototype of
samdb_search_for_parent_domain()

Andrew Bartlett

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25940 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoRework the CLDAP server not to use gendb_search but to call ldb_search
abartlet [Tue, 13 Nov 2007 22:30:33 +0000 (22:30 +0000)]
Rework the CLDAP server not to use gendb_search but to call ldb_search
directly.

Handle the errors from ldb_search (now that we get more than just -1),
including NO_SUCH_ENTRY when the base DN doesn't exist.

Andrew Bartlett

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25939 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoWe don't need the CLDAP server unless we are a DC.
abartlet [Tue, 13 Nov 2007 22:26:24 +0000 (22:26 +0000)]
We don't need the CLDAP server unless we are a DC.

Andrew Bartlett

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25938 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoprovision/newuser: don't try to set the 'memberOf' attribute
metze [Tue, 13 Nov 2007 08:48:29 +0000 (08:48 +0000)]
provision/newuser: don't try to set the 'memberOf' attribute

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25936 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoFix registry tests.
jelmer [Tue, 13 Nov 2007 04:57:09 +0000 (04:57 +0000)]
Fix registry tests.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25935 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoHandle a LDB_ERR_NO_SUCH_OBJECT return value when looking for the
abartlet [Tue, 13 Nov 2007 04:32:36 +0000 (04:32 +0000)]
Handle a LDB_ERR_NO_SUCH_OBJECT return value when looking for the
modules.

This will be useful when we start enforcing validity in base DNs.

Andrew Bartlett

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25934 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoLDB: Don't free errstring until after the printf, in case it is one of
abartlet [Tue, 13 Nov 2007 04:31:28 +0000 (04:31 +0000)]
LDB: Don't free errstring until after the printf, in case it is one of
the arguments.

Andrew Bartlett

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25933 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoRemove unnecessary include - should fix the build on hosts without popt.
jelmer [Mon, 12 Nov 2007 17:22:12 +0000 (17:22 +0000)]
Remove unnecessary include - should fix the build on hosts without popt.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25932 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoAdd config .mk file for crypto lib.
jelmer [Mon, 12 Nov 2007 00:05:10 +0000 (00:05 +0000)]
Add config .mk file for crypto lib.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25931 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agofix test name
jelmer [Sun, 11 Nov 2007 23:37:01 +0000 (23:37 +0000)]
fix test name

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25930 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoAdd some help strings.
jelmer [Sun, 11 Nov 2007 23:36:57 +0000 (23:36 +0000)]
Add some help strings.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25929 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoSplit up torture-local a bit.
jelmer [Sun, 11 Nov 2007 23:36:53 +0000 (23:36 +0000)]
Split up torture-local a bit.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25928 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoMove share tests to param directory.
jelmer [Sun, 11 Nov 2007 23:36:50 +0000 (23:36 +0000)]
Move share tests to param directory.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25927 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoMove iconv test to iconv code directory.
jelmer [Sun, 11 Nov 2007 23:36:45 +0000 (23:36 +0000)]
Move iconv test to iconv code directory.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25926 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agotorture/raw: fix sending unitialized bytes in RAW-SAMBA3ROOTDIRFID
metze [Sun, 11 Nov 2007 14:06:02 +0000 (14:06 +0000)]
torture/raw: fix sending unitialized bytes in RAW-SAMBA3ROOTDIRFID

(found by make valgrindtest)

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25925 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agofix bug in UNIX_INFO2 push code found make make valgrindtest
metze [Sun, 11 Nov 2007 13:59:01 +0000 (13:59 +0000)]
fix bug in UNIX_INFO2 push code found make make valgrindtest

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25924 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoMake sure to install phpldapadmin-config.php
abartlet [Sat, 10 Nov 2007 09:29:32 +0000 (09:29 +0000)]
Make sure to install phpldapadmin-config.php

Andrew Bartlett

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25923 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoMake it easier to bind to a unix domain socket, without messing with
abartlet [Sat, 10 Nov 2007 05:48:38 +0000 (05:48 +0000)]
Make it easier to bind to a unix domain socket, without messing with
ports...

Andrew Bartlett

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25922 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agoNow also listen on ldapi by default in the LDAP server
abartlet [Sat, 10 Nov 2007 05:31:26 +0000 (05:31 +0000)]
Now also listen on ldapi by default in the LDAP server

Create a phpLDAPadmin configuration file example to use ldapi to talk
to Samba4

Andrew Bartlett

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25921 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agondr: change NTSTAUS into enum ndr_err_code (samba4 callers)
metze [Fri, 9 Nov 2007 19:24:51 +0000 (19:24 +0000)]
ndr: change NTSTAUS into enum ndr_err_code (samba4 callers)

lib/messaging/
lib/registry/
lib/ldb-samba/
librpc/rpc/
auth/auth_winbind.c
auth/gensec/
auth/kerberos/
dsdb/repl/
dsdb/samdb/
dsdb/schema/
torture/
cluster/ctdb/
kdc/
ntvfs/ipc/
torture/rap/
ntvfs/
utils/getntacl.c
ntptr/
smb_server/
libcli/wrepl/
wrepl_server/
libcli/cldap/
libcli/dgram/
libcli/ldap/
libcli/raw/
libcli/nbt/
libnet/
winbind/
rpc_server/

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25920 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agondr: change NTSTAUS into enum ndr_err_code (ndrdump)
metze [Fri, 9 Nov 2007 19:24:25 +0000 (19:24 +0000)]
ndr: change NTSTAUS into enum ndr_err_code (ndrdump)

librpc/tools/ndrdump.c

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25919 0c0555d6-39d7-0310-84fc-f1cc0bd64818

16 years agondr: change NTSTAUS into enum ndr_err_code (samba4 handwritten stuff)
metze [Fri, 9 Nov 2007 19:24:10 +0000 (19:24 +0000)]
ndr: change NTSTAUS into enum ndr_err_code (samba4 handwritten stuff)

ndr_sec_helper.c
ndr_spoolss_buf.c
ndr_compression.c
ndr_drsuapi.[ch]
ndr_krb5pac.c
ndr_orpc.c

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25918 0c0555d6-39d7-0310-84fc-f1cc0bd64818