kamenim/samba.git
13 years agowaf: Move logic to check for man pages generation in single function no-manpages
Kamen Mazdrashki [Fri, 18 Jun 2010 14:53:20 +0000 (17:53 +0300)]
waf: Move logic to check for man pages generation in single function

13 years agopidl/wscript: skip manpage generation if --no-manpages was configured
Stefan Metzmacher [Fri, 18 Jun 2010 07:21:43 +0000 (09:21 +0200)]
pidl/wscript: skip manpage generation if --no-manpages was configured

metze

13 years agowaf: Add '--no-manpages' option
Kamen Mazdrashki [Fri, 18 Jun 2010 10:46:27 +0000 (13:46 +0300)]
waf: Add '--no-manpages' option

It is very annoying for me to wait 20 minutes anytime
I need to make a clean build

13 years agoECLIPSE + PyDev Project
Kamen Mazdrashki [Wed, 6 Jan 2010 11:36:27 +0000 (13:36 +0200)]
ECLIPSE + PyDev Project

13 years agounittest: Change the name of the base ldb test so that it can be easily called separatly
Matthieu Patou [Wed, 16 Jun 2010 08:39:16 +0000 (12:39 +0400)]
unittest: Change the name of the base ldb test so that it can be easily called separatly

13 years agos4:ldap_backend.c - fix crash bugs when we got in error situations with "res" still...
Matthias Dieter Wallnöfer [Thu, 17 Jun 2010 14:35:55 +0000 (16:35 +0200)]
s4:ldap_backend.c - fix crash bugs when we got in error situations with "res" still set to "NULL"

13 years agos4:ldap_backend.c - fix a small error (use "ModifyResponse" rather than "AddResponse")
Matthias Dieter Wallnöfer [Thu, 17 Jun 2010 14:00:13 +0000 (16:00 +0200)]
s4:ldap_backend.c - fix a small error (use "ModifyResponse" rather than "AddResponse")

13 years agos4:objectclass LDB module - move "mem_ctx" initialisation lower
Matthias Dieter Wallnöfer [Thu, 17 Jun 2010 13:27:50 +0000 (15:27 +0200)]
s4:objectclass LDB module - move "mem_ctx" initialisation lower

Saves us some "talloc_free"s on error cases

13 years agos4:dcesrv_netr_DsRAddressToSitenamesExW - fix the detection of the address family...
Matthias Dieter Wallnöfer [Thu, 17 Jun 2010 07:42:17 +0000 (09:42 +0200)]
s4:dcesrv_netr_DsRAddressToSitenamesExW - fix the detection of the address family in a better way

Obviously the last attempt wasn't enough. Now we do really only read the first
byte in the address buffer which on little endian transmission does always
contain the address family (MS-NRPC 2.2.1.2.4.1).
This should now be working platform-independently.

13 years agos4:torture/rpc/netlogon.c - make sure that the address family is set in little endian...
Matthias Dieter Wallnöfer [Thu, 17 Jun 2010 07:33:10 +0000 (09:33 +0200)]
s4:torture/rpc/netlogon.c - make sure that the address family is set in little endian in the "AddressToSitenames" tests

13 years agos4:torture/rpc/netlogon.c - activate "AddressToSitenames" tests which do run against s4
Matthias Dieter Wallnöfer [Thu, 17 Jun 2010 07:23:00 +0000 (09:23 +0200)]
s4:torture/rpc/netlogon.c - activate "AddressToSitenames" tests which do run against s4

13 years agoUse #defined constant instead of "false" to be clearer about intent.
Jeremy Allison [Thu, 17 Jun 2010 19:34:15 +0000 (12:34 -0700)]
Use #defined constant instead of "false" to be clearer about intent.

13 years agos3-selftest: fix locktest9 in make selftest.
Günther Deschner [Thu, 17 Jun 2010 13:01:01 +0000 (15:01 +0200)]
s3-selftest: fix locktest9 in make selftest.

Guenther

13 years agos3:configure: use cc for linking on IRIX and fix shlib usage
Björn Jacke [Wed, 16 Jun 2010 21:36:38 +0000 (23:36 +0200)]
s3:configure: use cc for linking on IRIX and fix shlib usage

13 years agos4:torture/rpc/remote_pac: use dcerpc_netr_LogonSamLogon_r() instead of dcerpc_netr_L...
Stefan Metzmacher [Wed, 16 Jun 2010 21:11:05 +0000 (23:11 +0200)]
s4:torture/rpc/remote_pac: use dcerpc_netr_LogonSamLogon_r() instead of dcerpc_netr_LogonSamLogon()

metze

13 years agoselftest/Samba4: make the naming of passwords more consistent
Stefan Metzmacher [Wed, 16 Jun 2010 09:22:30 +0000 (11:22 +0200)]
selftest/Samba4: make the naming of passwords more consistent

metze

13 years agoselftest/Samba4: let localfl2000dc use 127.0.0.5
Stefan Metzmacher [Wed, 16 Jun 2010 09:14:46 +0000 (11:14 +0200)]
selftest/Samba4: let localfl2000dc use 127.0.0.5

Now we have 127.0.0.6-10 available for more servers.

metze

13 years agoselftest/Samba4: let localvampiredc use 127.0.0.2
Stefan Metzmacher [Wed, 16 Jun 2010 09:13:28 +0000 (11:13 +0200)]
selftest/Samba4: let localvampiredc use 127.0.0.2

metze

13 years agoselftest: use 127.0.0.11-16 for the client
Stefan Metzmacher [Wed, 16 Jun 2010 09:02:48 +0000 (11:02 +0200)]
selftest: use 127.0.0.11-16 for the client

This gives more room for servers.

Note: socket_wrapper currently only supports 127.0.0.1-16
      see MAX_WRAPPED_INTERFACES.

metze

13 years agoselftest/Samba3: remove unused create_clientconf() function
Stefan Metzmacher [Wed, 16 Jun 2010 09:00:29 +0000 (11:00 +0200)]
selftest/Samba3: remove unused create_clientconf() function

metze

13 years agopidl/wscript: build manpages in build group 'final'
Stefan Metzmacher [Thu, 17 Jun 2010 06:55:10 +0000 (08:55 +0200)]
pidl/wscript: build manpages in build group 'final'

So that waf --target=smbtorture doesn't build them

metze

13 years agopidl/wscript: only try to build pidl manpages if pod2man is available
Stefan Metzmacher [Thu, 17 Jun 2010 06:49:36 +0000 (08:49 +0200)]
pidl/wscript: only try to build pidl manpages if pod2man is available

metze

13 years agopidl/wscript: call pod2man with the detected perl version
Stefan Metzmacher [Thu, 17 Jun 2010 06:44:53 +0000 (08:44 +0200)]
pidl/wscript: call pod2man with the detected perl version

Some systems like SLES11 have a broken perl path in pod2man.

metze

13 years agos3-waf: Fix the OSX 10.4 build by adding an explicit resolv dep on smbclient
Kai Blin [Thu, 17 Jun 2010 06:09:41 +0000 (08:09 +0200)]
s3-waf: Fix the OSX 10.4 build by adding an explicit resolv dep on smbclient

13 years agos3-waf: Add check for iconv
Kai Blin [Tue, 15 Jun 2010 04:53:11 +0000 (06:53 +0200)]
s3-waf: Add check for iconv

13 years agos3-waf: Work around missing *netgrent prototypes on OSX 10.4
Kai Blin [Tue, 15 Jun 2010 04:52:42 +0000 (06:52 +0200)]
s3-waf: Work around missing *netgrent prototypes on OSX 10.4

13 years agos4:dcesrv_netr_DsRAddressToSitenamesExW - fix the read of the IP packet version
Matthias Dieter Wallnöfer [Wed, 16 Jun 2010 19:47:22 +0000 (21:47 +0200)]
s4:dcesrv_netr_DsRAddressToSitenamesExW - fix the read of the IP packet version

This should make it clearer by the use of the standardised "sa_family_t" type
and hopefully fixes the problems on platforms other than Linux (NetBSD in the
buildfarm for example).

13 years agos4:ldif_handlers.c - fix warning
Matthias Dieter Wallnöfer [Wed, 16 Jun 2010 19:45:15 +0000 (21:45 +0200)]
s4:ldif_handlers.c - fix warning

13 years agoRemove an unused chunk of code (will make it easier to talloc'ize prs_XXX).
Jeremy Allison [Wed, 16 Jun 2010 17:27:54 +0000 (10:27 -0700)]
Remove an unused chunk of code (will make it easier to talloc'ize prs_XXX).

Jeremy.

13 years agoRemove two unused functions (prs_force_dynamic, prs_set_session_key).
Jeremy Allison [Wed, 16 Jun 2010 17:26:47 +0000 (10:26 -0700)]
Remove two unused functions (prs_force_dynamic, prs_set_session_key).

Jeremy.

13 years agocodepages-waf: When built with --with-fhs, install to
Jelmer Vernooij [Wed, 16 Jun 2010 17:14:08 +0000 (19:14 +0200)]
codepages-waf: When built with --with-fhs, install to
$prefix/share/samba, not $prefix/share.

13 years agolib/crypto: only include what is needed.
Günther Deschner [Tue, 15 Jun 2010 10:01:09 +0000 (12:01 +0200)]
lib/crypto: only include what is needed.

Guenther

13 years agopidl-waf: Avoid relying on MakeMaker when installing pidl manpages.
Jelmer Vernooij [Wed, 16 Jun 2010 16:25:04 +0000 (18:25 +0200)]
pidl-waf: Avoid relying on MakeMaker when installing pidl manpages.

13 years agos4: Fix build when there is a system-provided ldb.
Jelmer Vernooij [Wed, 16 Jun 2010 16:13:18 +0000 (18:13 +0200)]
s4: Fix build when there is a system-provided ldb.

13 years agos4-smbtorture: Remind myself we need to add a test for SMBsplretq in RAP-PRINTING.
Günther Deschner [Wed, 16 Jun 2010 15:09:47 +0000 (17:09 +0200)]
s4-smbtorture: Remind myself we need to add a test for SMBsplretq in RAP-PRINTING.

Guenther

13 years agos3-docs: Fix some of ntlm_auth ntlm-server-1 protocol documentation.
Günther Deschner [Wed, 16 Jun 2010 15:08:36 +0000 (17:08 +0200)]
s3-docs: Fix some of ntlm_auth ntlm-server-1 protocol documentation.

Guenther

13 years agoMerge branch 'master' of git+ssh://git.samba.org/data/git/samba
John H Terpstra [Wed, 16 Jun 2010 13:57:44 +0000 (08:57 -0500)]
Merge branch 'master' of git+ssh://git.samba.org/data/git/samba

13 years agoFix typo reported by Söderlund David <david.soderlund@baesystems.se>.
John H Terpstra [Wed, 16 Jun 2010 13:56:42 +0000 (08:56 -0500)]
Fix typo reported by Söderlund David <david.soderlund@baesystems.se>.

13 years agos4:ldap.py - add another test about linked attributes
Matthias Dieter Wallnöfer [Wed, 16 Jun 2010 12:51:05 +0000 (14:51 +0200)]
s4:ldap.py - add another test about linked attributes

In addition this test makes sure that the bug regarding the search with deleted
linked attributes in the filter has been fixed.

13 years agos4:ldif-handlers Add a custom handler for DNs that knows about deleted values
Andrew Bartlett [Mon, 14 Jun 2010 05:52:01 +0000 (15:52 +1000)]
s4:ldif-handlers Add a custom handler for DNs that knows about deleted values

In Samba we my store a deleted DN for a linked attribute.  We must
ensure that we can't match on it, or else searches for member= will
still reveal it.

Andrew Bartlett

13 years agos4:provision.py - we do now support the "Windows 2000 Native" domain function level
Matthias Dieter Wallnöfer [Wed, 16 Jun 2010 13:18:34 +0000 (15:18 +0200)]
s4:provision.py - we do now support the "Windows 2000 Native" domain function level

13 years agos4:linked attributes LDB module - strip trailing whitespaces
Matthias Dieter Wallnöfer [Wed, 16 Jun 2010 13:15:39 +0000 (15:15 +0200)]
s4:linked attributes LDB module - strip trailing whitespaces

13 years agos4:linked_attributes LDB module - cosmetics
Matthias Dieter Wallnöfer [Wed, 16 Jun 2010 12:49:08 +0000 (14:49 +0200)]
s4:linked_attributes LDB module - cosmetics

- unsigned counters for LDB objects
- we tend to have the "ret" variable always as the last declaration to see
  which type of error a function returns

13 years agos3-auth: in make_user_info_for_reply_enc make sure to check length and data
Günther Deschner [Wed, 16 Jun 2010 12:18:45 +0000 (14:18 +0200)]
s3-auth: in make_user_info_for_reply_enc make sure to check length and data
pointer of nt and lm hash.

This fixes kernel cifs client with sec=ntlmv2.

Guenther

13 years agos3-build: allow to build bin/ndrdump4 (just as bin/smbtorture4)
Günther Deschner [Wed, 16 Jun 2010 12:17:44 +0000 (14:17 +0200)]
s3-build: allow to build bin/ndrdump4 (just as bin/smbtorture4)

Jelmer, please check.

Guenther

13 years agontlmssp: add decode_NTLMv2_RESPONSE to IDL.
Günther Deschner [Wed, 16 Jun 2010 12:16:57 +0000 (14:16 +0200)]
ntlmssp: add decode_NTLMv2_RESPONSE to IDL.

Guenther

13 years agos3-auth: fix debug message in check_winbind_security().
Günther Deschner [Wed, 16 Jun 2010 10:31:11 +0000 (12:31 +0200)]
s3-auth: fix debug message in check_winbind_security().

Guenther

13 years agos3-tdb: Added missing out of memory check in rename_file_with_suffix().
Andreas Schneider [Tue, 15 Jun 2010 12:25:12 +0000 (14:25 +0200)]
s3-tdb: Added missing out of memory check in rename_file_with_suffix().

13 years agos4:lib: merge LDB_WRAP and LDBSAMBA and make LDBSAMBA a library.
Stefan Metzmacher [Wed, 16 Jun 2010 11:43:38 +0000 (13:43 +0200)]
s4:lib: merge LDB_WRAP and LDBSAMBA and make LDBSAMBA a library.

This is needed to remove samba specifc symbols from the bundled
ldb, in order to get the ABI right.

metze

Signed-off-by: Andreas Schneider <asn@samba.org>
13 years agos4-smbtorture: only pull info when status code indicates success in smbcli_rap_netpri...
Günther Deschner [Wed, 16 Jun 2010 09:03:31 +0000 (11:03 +0200)]
s4-smbtorture: only pull info when status code indicates success in smbcli_rap_netprintqgetinfo().

Guenther

13 years agoRevert "s4-smbtorture: only pull info when status code indicates success in smbcli_ra...
Günther Deschner [Wed, 16 Jun 2010 10:18:32 +0000 (12:18 +0200)]
Revert "s4-smbtorture: only pull info when status code indicates success in smbcli_rap_netprintqgetinfo()."

This reverts commit 1f1c04010a55e67d8dc2110276eed4cf2a8a0afa.

13 years agopidl: make sure to fill in cli->pipes_struct->hdr_req.opnum in s3 server dispatch...
Günther Deschner [Wed, 16 Jun 2010 10:07:43 +0000 (12:07 +0200)]
pidl: make sure to fill in cli->pipes_struct->hdr_req.opnum in s3 server dispatch tables.

Guenther

13 years agos3-lanman: Fix return code for "" printqname in api_DosPrintQGetInfo().
Günther Deschner [Wed, 16 Jun 2010 09:04:34 +0000 (11:04 +0200)]
s3-lanman: Fix return code for "" printqname in api_DosPrintQGetInfo().

Guenther

13 years agos4-smbtorture: test smbcli_rap_netprintqgetinfo() with "" printqname.
Günther Deschner [Wed, 16 Jun 2010 09:04:12 +0000 (11:04 +0200)]
s4-smbtorture: test smbcli_rap_netprintqgetinfo() with "" printqname.

Guenther

13 years agos4-smbtorture: only pull info when status code indicates success in smbcli_rap_netpri...
Günther Deschner [Wed, 16 Jun 2010 09:03:31 +0000 (11:03 +0200)]
s4-smbtorture: only pull info when status code indicates success in smbcli_rap_netprintqgetinfo().

Guenther

13 years agos3-printing: add BUILTIN\Print Operators as FULL CONTROL to default sd.
Günther Deschner [Fri, 11 Jun 2010 09:24:06 +0000 (11:24 +0200)]
s3-printing: add BUILTIN\Print Operators as FULL CONTROL to default sd.

Guenther

13 years agos3-spoolss: Provide a memory context for clean_up_driver_struct().
Andreas Schneider [Wed, 16 Jun 2010 09:44:36 +0000 (11:44 +0200)]
s3-spoolss: Provide a memory context for clean_up_driver_struct().

If we use a stack variable to setup spoolss_AddDriverInfoCtr this would
segfault with a talloc bad magic value.

13 years agos4:dsdb Allow renames with (now removed) linked attributes
Andrew Bartlett [Wed, 16 Jun 2010 02:01:10 +0000 (12:01 +1000)]
s4:dsdb Allow renames with (now removed) linked attributes

It is important to allow the rename, even if we just have one-way
links, as this happens on deleted objects, which have the backlinks
alredy removed by repl_meta_data.

Andrew Bartlett

13 years agos4:selftest Change domain name for functional level 2000 DC
Andrew Bartlett [Tue, 15 Jun 2010 23:16:05 +0000 (09:16 +1000)]
s4:selftest Change domain name for functional level 2000 DC

13 years agos4:libnet Remove 'ads min function level' checks.
Andrew Bartlett [Tue, 15 Jun 2010 13:01:51 +0000 (23:01 +1000)]
s4:libnet Remove 'ads min function level' checks.

We support Windows 2000 native now.

Andrew Bartlett

13 years agos4:dsdb Fix linked_attributes to cope with the Feb 2010 changes to DLIST
Andrew Bartlett [Tue, 15 Jun 2010 12:57:14 +0000 (22:57 +1000)]
s4:dsdb Fix linked_attributes to cope with the Feb 2010 changes to DLIST

The DLIST macros changed in behaviour in Feb 2010, and walking the
lists backwards is no longer safe if you don't use the macros.

Andrew Bartlett

13 years agos4:dsdb Assert that we can't get backlinks as input in linked_attributes
Andrew Bartlett [Tue, 15 Jun 2010 12:26:22 +0000 (22:26 +1000)]
s4:dsdb Assert that we can't get backlinks as input in linked_attributes

The objectclass_attr module should prevent users creating such links,
and the mrepl_meta_data module should only create them in functional
level 2003 or above.

Andrew Bartlett

13 years agos4:selftest Add test environment for functional level 2000
Andrew Bartlett [Tue, 15 Jun 2010 12:24:36 +0000 (22:24 +1000)]
s4:selftest Add test environment for functional level 2000

This required that we pass the name of the realm down as a parameter,
so we can start up two different realms.

Andrew Bartlett

13 years agos4:provision Add import for DS_DOMAIN_FUNCTION_2000
Andrew Bartlett [Tue, 15 Jun 2010 10:45:25 +0000 (20:45 +1000)]
s4:provision Add import for DS_DOMAIN_FUNCTION_2000

13 years agos4:provision Allow functional level 2000 to be chosen
Andrew Bartlett [Tue, 15 Jun 2010 09:52:58 +0000 (19:52 +1000)]
s4:provision Allow functional level 2000 to be chosen

13 years agos4:selftest Add vampire_dc test environment
Andrew Bartlett [Thu, 11 Mar 2010 23:36:12 +0000 (10:36 +1100)]
s4:selftest Add vampire_dc test environment

This starts a domain controller, after running 'net vampire' to
populate it.  We don't use it as the 'all' environment yet, as the
rest of the code isn't quite ready to handle it.

Andrew Bartlett

13 years agos4:dsdb use dsdb_module_modify() rather than ldb_next_request()
Andrew Bartlett [Mon, 14 Jun 2010 05:50:13 +0000 (15:50 +1000)]
s4:dsdb use dsdb_module_modify() rather than ldb_next_request()

This does exactly the same thing, but with less code.

Andrew Bartlett

13 years agos4:dsdb Handle backlinks for Windows 2000 level linked attributes
Andrew Bartlett [Sun, 13 Jun 2010 05:54:23 +0000 (15:54 +1000)]
s4:dsdb Handle backlinks for Windows 2000 level linked attributes

This revives the code from 5964acfa741d691c0196f91c0796122ec025f177,
before tridge and I simplified this too much, and removed the Windows
2000 functional level linked attribute support.

By telling the linked_attributes module that repl_meta_data has
handled the links, we avoid a conflict for the new style (functional
level 2003 and above) linked attributes.  However, we still need
backlinks for 2000 style linked attributes, so this allows that code
in the linked_attributes module to be revived to handle those.

Andrew Bartlett

13 years agos4:dsdb Add control for signaling between repl_meta_data and linked_attributes
Andrew Bartlett [Mon, 14 Jun 2010 05:30:36 +0000 (15:30 +1000)]
s4:dsdb Add control for signaling between repl_meta_data and linked_attributes

This control will allow the linked_attributes module to know if
repl_meta_data has already handled the creation of forward and back
links.

Andrew Bartlett

13 years agoRemove unused function.
Jeremy Allison [Tue, 15 Jun 2010 22:33:44 +0000 (15:33 -0700)]
Remove unused function.

13 years agowaf: Fix installation of pidl manapges.
Jelmer Vernooij [Tue, 15 Jun 2010 22:00:01 +0000 (00:00 +0200)]
waf: Fix installation of pidl manapges.

13 years agos4 torture: RAW-SEARCH: break out some of the old search levels
Aravind Srinivasan [Tue, 15 Jun 2010 18:21:34 +0000 (11:21 -0700)]
s4 torture: RAW-SEARCH: break out some of the old search levels

* Added two new parameters: raw_search_search and raw_ea_size which
  can be enabled/disabled based on whether the server supports
  RAW_SEARCH_SEARCH and/or RAW_SEARCH_EA_SIZE levels

* Skip unsupported levels from the server and give a warning rather
  than failing.

Signed-off-by: Tim Prouty <tprouty@samba.org>
13 years agos4 torture: RAW-SEARCH: Only test supported info levels
Tim Prouty [Mon, 14 Jun 2010 23:50:29 +0000 (16:50 -0700)]
s4 torture: RAW-SEARCH: Only test supported info levels

13 years agos4-waf: Fix build of libldb_ildap against system ldb.
Jelmer Vernooij [Tue, 15 Jun 2010 18:52:01 +0000 (20:52 +0200)]
s4-waf: Fix build of libldb_ildap against system ldb.

13 years agowafsamba: Fix include path inheritance from module subsystems.
Jelmer Vernooij [Tue, 15 Jun 2010 18:35:22 +0000 (20:35 +0200)]
wafsamba: Fix include path inheritance from module subsystems.

13 years agodcerpc-samr: Fix library name.
Jelmer Vernooij [Tue, 15 Jun 2010 14:38:15 +0000 (16:38 +0200)]
dcerpc-samr: Fix library name.

13 years agoAttempt to fix SamDB test infrastructure (not used in Samba anywhere, only in OpenCha...
Jelmer Vernooij [Mon, 14 Jun 2010 00:15:32 +0000 (02:15 +0200)]
Attempt to fix SamDB test infrastructure (not used in Samba anywhere, only in OpenChange).

13 years agoldb: Bump version number, use same ABI version for Samba4 and non-Samba 4 versions.s
Jelmer Vernooij [Tue, 15 Jun 2010 11:12:23 +0000 (13:12 +0200)]
ldb: Bump version number, use same ABI version for Samba4 and non-Samba 4 versions.s

13 years agoldb: Fix included ldb build.
Jelmer Vernooij [Tue, 15 Jun 2010 00:46:16 +0000 (02:46 +0200)]
ldb: Fix included ldb build.

13 years agowafsamba: Fix filenames for ldb modules.
Jelmer Vernooij [Mon, 14 Jun 2010 23:35:42 +0000 (01:35 +0200)]
wafsamba: Fix filenames for ldb modules.

13 years agowafsamba: Fix building of modules as shared libraries.
Jelmer Vernooij [Mon, 14 Jun 2010 23:24:20 +0000 (01:24 +0200)]
wafsamba: Fix building of modules as shared libraries.

13 years agowafsamba: Improve assertion error message to include the module.
Jelmer Vernooij [Mon, 14 Jun 2010 23:00:40 +0000 (01:00 +0200)]
wafsamba: Improve assertion error message to include the module.

13 years agoldb: Only build standard ldb modules when building bundled ldb.
Jelmer Vernooij [Mon, 14 Jun 2010 22:59:49 +0000 (00:59 +0200)]
ldb: Only build standard ldb modules when building bundled ldb.

13 years agodsdb: Fix includes when building against system ldb.
Jelmer Vernooij [Mon, 14 Jun 2010 22:55:03 +0000 (00:55 +0200)]
dsdb: Fix includes when building against system ldb.

13 years agowafsamba: Only add init function if not building module as shared library.
Jelmer Vernooij [Thu, 10 Jun 2010 11:02:59 +0000 (13:02 +0200)]
wafsamba: Only add init function if not building module as shared library.

13 years agodsdb: Build modules as external modules when using system ldb.
Jelmer Vernooij [Wed, 2 Jun 2010 11:37:15 +0000 (13:37 +0200)]
dsdb: Build modules as external modules when using system ldb.

13 years agoldb-samba: Add missing dependency on credentials code.
Jelmer Vernooij [Tue, 1 Jun 2010 11:28:50 +0000 (13:28 +0200)]
ldb-samba: Add missing dependency on credentials code.

13 years agos3-waf: fix the build.
Günther Deschner [Tue, 15 Jun 2010 09:43:30 +0000 (11:43 +0200)]
s3-waf: fix the build.

Guenther

13 years agos4:dsdb Move linked attribute restrictions to objectclass_attrs
Andrew Bartlett [Mon, 14 Jun 2010 03:19:43 +0000 (13:19 +1000)]
s4:dsdb Move linked attribute restrictions to objectclass_attrs

This puts more of the schema restrictions in one place.

Andrew Bartlett

13 years agos4:dsdb Add const to dsdb_dn functions that operate on an ldb_val.
Andrew Bartlett [Mon, 14 Jun 2010 03:27:59 +0000 (13:27 +1000)]
s4:dsdb Add const to dsdb_dn functions that operate on an ldb_val.

Andrew Bartlett

13 years agos4:selftest Remove unused basedn specification in selftest env setup
Andrew Bartlett [Tue, 15 Jun 2010 00:20:37 +0000 (10:20 +1000)]
s4:selftest Remove unused basedn specification in selftest env setup

13 years agos4:selftest Remove becomedc tests from knownfail, these should now pass
Andrew Bartlett [Sat, 12 Jun 2010 03:24:57 +0000 (13:24 +1000)]
s4:selftest Remove becomedc tests from knownfail, these should now pass

Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
13 years agos4:dsdb Rework the vampire schema handling to convert 3 times.
Andrew Bartlett [Sat, 12 Jun 2010 01:05:47 +0000 (11:05 +1000)]
s4:dsdb Rework the vampire schema handling to convert 3 times.

This seems like a lot of duplicate work, but by the end we should
have, in normal LDB format, the remote DRS schema, having bootstrapped
it with the locally loaded schema.

The multiple steps are to resolve the problems with references to
schema items that we don't 'yet' know about.

Andrew Bartlett

Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
13 years agos4:provision Allow a specific prefix map to be loaded into a new schema provision
Andrew Bartlett [Thu, 10 Jun 2010 11:33:45 +0000 (21:33 +1000)]
s4:provision Allow a specific prefix map to be loaded into a new schema provision

This allows the prefixMap from a DRS server to be used when loading
the schema from the local files.  This helps us then import other
schema with this map in place.

Andrew Bartlett

Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
13 years agos4:dsdb Keep the DRS-based prefix map for use in provision-based schema
Andrew Bartlett [Wed, 9 Jun 2010 11:53:01 +0000 (21:53 +1000)]
s4:dsdb Keep the DRS-based prefix map for use in provision-based schema

We need to use the remote prefix map for the provision schema, or else
we can't decode new, non-standard attributes into OIDs.  Then once we
decode that schema, we can try again and get them properly translated.

Andrew Bartlett

Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
13 years agos4:dsdb Allow the setting an override on the schema
Andrew Bartlett [Wed, 9 Jun 2010 10:52:02 +0000 (20:52 +1000)]
s4:dsdb Allow the setting an override on the schema

The change here is to try and convert a per the previous rules, but if
we don't know a particular OID as a attributeID, then store it as an
OID (for example).  This allows known values to be converted as
before, but still copes with unknown values.

Andrew Bartlett

Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
13 years agos4:dsdb Use the schema from our local provision to decode the schema
Andrew Bartlett [Wed, 9 Jun 2010 08:57:52 +0000 (18:57 +1000)]
s4:dsdb Use the schema from our local provision to decode the schema

This works on the assumption that the schema partition can only
contain schema objects.

We may need to pass down some kind of 'relax' to the DRS -> LDB
conversion code, so that it allows incomplete conversions, so that we
don't fail if a new attribute is present, and we can't decode it.
This would then be resolved the second time we do the conversion.

Andrew Bartlett

Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
13 years agos4:torture Rework NET-API-BECOMEDC test to use libnet_vampire callbacks.
Andrew Bartlett [Sat, 12 Jun 2010 07:24:26 +0000 (17:24 +1000)]
s4:torture Rework NET-API-BECOMEDC test to use libnet_vampire callbacks.

The libnet_vampire code was derived from this code in the first place,
but has continued to evolve, while this code has often bitrotted.
This avoids the needless duplication of the callbacks, while keeping
the toture wrapper.

Andrew Bartlett

Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
13 years agos4:libnet Steal ldb and lp_ctx from python result into correct structures.
Andrew Bartlett [Sat, 12 Jun 2010 07:23:32 +0000 (17:23 +1000)]
s4:libnet Steal ldb and lp_ctx from python result into correct structures.

Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
13 years agos4:libnet Make the libnet_vampire default callbacks non-static
Andrew Bartlett [Sat, 12 Jun 2010 07:22:20 +0000 (17:22 +1000)]
s4:libnet Make the libnet_vampire default callbacks non-static

These are intended to be called from the NET-API-BECOMEDC torture test
to avoid duplication of code.

Andrew Bartlett

Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>