samba.git
8 years agolsa: lsa_CreateTrustedDomainEx takes lsa_TrustDomainInfoAuthInfo, not
Günther Deschner [Fri, 15 Jul 2011 09:18:00 +0000 (11:18 +0200)]
lsa: lsa_CreateTrustedDomainEx takes lsa_TrustDomainInfoAuthInfo, not
lsa_TrustDomainInfoAuthInfoInternal.

Guenther

8 years agolsa: rename auth info argument in lsa_CreateTrustedDomainEx2
Günther Deschner [Fri, 15 Jul 2011 15:26:16 +0000 (17:26 +0200)]
lsa: rename auth info argument in lsa_CreateTrustedDomainEx2

Guenther

8 years agos4:kdc: set *_strongest_*_key to true to restore the old behavior
Stefan Metzmacher [Thu, 14 Jul 2011 19:02:20 +0000 (21:02 +0200)]
s4:kdc: set *_strongest_*_key to true to restore the old behavior

TODO: check why this is needed.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Jul 15 12:26:25 CEST 2011 on sn-devel-104

8 years agos4:auth/credentials: with the build after heimdal import
Stefan Metzmacher [Thu, 14 Jul 2011 12:15:29 +0000 (14:15 +0200)]
s4:auth/credentials: with the build after heimdal import

metze

8 years agos4:heimdal_build: define HAVE_KRB5_PDU_NONE_DECL
Stefan Metzmacher [Thu, 14 Jul 2011 12:51:15 +0000 (14:51 +0200)]
s4:heimdal_build: define HAVE_KRB5_PDU_NONE_DECL

metze

8 years agos4:heimdal: add missing files
Stefan Metzmacher [Thu, 14 Jul 2011 12:32:16 +0000 (14:32 +0200)]
s4:heimdal: add missing files

metze

8 years agos4:heimdal: import lorikeet-heimdal-201107150856 (commit 48936803fae4a2fb362c79365d31...
Stefan Metzmacher [Fri, 15 Jul 2011 07:10:30 +0000 (09:10 +0200)]
s4:heimdal: import lorikeet-heimdal-201107150856 (commit 48936803fae4a2fb362c79365d31f420c917b85b)

8 years agos3: Avoid leaking http_timestring in print_registry_key
Volker Lendecke [Fri, 15 Jul 2011 06:20:12 +0000 (08:20 +0200)]
s3: Avoid leaking http_timestring in print_registry_key

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Jul 15 09:44:05 CEST 2011 on sn-devel-104

8 years agos3:registry avoid pruning the sequencenumber while flushing the regsubkey_ctr
Gregor Beck [Wed, 13 Jul 2011 14:51:54 +0000 (16:51 +0200)]
s3:registry avoid pruning the sequencenumber while flushing the regsubkey_ctr

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Jul 15 08:34:47 CEST 2011 on sn-devel-104

8 years agos3:registry avoid leaking an old regsubkey_ctr on regsubkey_ctr_init
Gregor Beck [Thu, 14 Jul 2011 10:19:01 +0000 (12:19 +0200)]
s3:registry avoid leaking an old regsubkey_ctr on regsubkey_ctr_init

Signed-off-by: Stefan Metzmacher <metze@samba.org>
8 years agos3:clikrb5: fix the build with newer heimdal versions
Stefan Metzmacher [Thu, 14 Jul 2011 12:50:18 +0000 (14:50 +0200)]
s3:clikrb5: fix the build with newer heimdal versions

krb5_get_default_in_tkt_etypes() requires a 3rd argument
if KRB5_PDU_NONE is available.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Jul 14 21:21:13 CEST 2011 on sn-devel-104

8 years agos4:heimdal_build: we need k5crypto and gssapi_krb5 aliases also when using system...
Stefan Metzmacher [Thu, 14 Jul 2011 13:55:32 +0000 (15:55 +0200)]
s4:heimdal_build: we need k5crypto and gssapi_krb5 aliases also when using system libraries

metze

8 years agos4:heimdal_build: only maintain lib/gssapi/{spnego,krb5} file lists once
Stefan Metzmacher [Thu, 14 Jul 2011 13:26:03 +0000 (15:26 +0200)]
s4:heimdal_build: only maintain lib/gssapi/{spnego,krb5} file lists once

This also makes sure we only create private headers if we
use internal heimdal.

metze

8 years agos4:heimdal_build: provide HEIMDAL_UNUSED_ATTRIBUTE
Stefan Metzmacher [Thu, 14 Jul 2011 12:15:03 +0000 (14:15 +0200)]
s4:heimdal_build: provide HEIMDAL_UNUSED_ATTRIBUTE

metze

8 years agolib/util/attr: add _UNUSED_ marco
Stefan Metzmacher [Thu, 14 Jul 2011 12:14:12 +0000 (14:14 +0200)]
lib/util/attr: add _UNUSED_ marco

metze

8 years agos3-docs: fix a typo in rpcclient manpage
Christian Ambach [Thu, 14 Jul 2011 15:23:37 +0000 (17:23 +0200)]
s3-docs: fix a typo in rpcclient manpage

Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Thu Jul 14 20:10:12 CEST 2011 on sn-devel-104

8 years agos3-rpc_server: Pass event and messaging context to accept function.
Andreas Schneider [Fri, 8 Jul 2011 09:38:03 +0000 (11:38 +0200)]
s3-rpc_server: Pass event and messaging context to accept function.

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Thu Jul 14 17:22:16 CEST 2011 on sn-devel-104

8 years agos3-librpc: Pass messaging context to dcerpc register functions.
Andreas Schneider [Fri, 8 Jul 2011 09:34:24 +0000 (11:34 +0200)]
s3-librpc: Pass messaging context to dcerpc register functions.

8 years agos3-smbd: Pass event and messaging context to smbd_parent_housekeeping().
Andreas Schneider [Fri, 8 Jul 2011 09:28:12 +0000 (11:28 +0200)]
s3-smbd: Pass event and messaging context to smbd_parent_housekeeping().

8 years agos3-smbd: Pass ev_ctx to remove_child_pid().
Andreas Schneider [Tue, 21 Jun 2011 12:46:16 +0000 (14:46 +0200)]
s3-smbd: Pass ev_ctx to remove_child_pid().

8 years agos3-smbd: Pass msg_ctx to smbd_accept_connection.
Andreas Schneider [Tue, 21 Jun 2011 12:45:45 +0000 (14:45 +0200)]
s3-smbd: Pass msg_ctx to smbd_accept_connection.

8 years agos3-smbd: Pass ev_ctx to smbd_setup_sig_chld_handler().
Andreas Schneider [Tue, 21 Jun 2011 12:24:03 +0000 (14:24 +0200)]
s3-smbd: Pass ev_ctx to smbd_setup_sig_chld_handler().

8 years agos3-smbd: Pass ev_ctx and msg_ctx to smbd_accept_connection().
Andreas Schneider [Tue, 21 Jun 2011 12:14:18 +0000 (14:14 +0200)]
s3-smbd: Pass ev_ctx and msg_ctx to smbd_accept_connection().

8 years agos3-smbd: Pass ev_ctx and msg_ctx to open_sockets_smbd().
Andreas Schneider [Tue, 21 Jun 2011 12:11:51 +0000 (14:11 +0200)]
s3-smbd: Pass ev_ctx and msg_ctx to open_sockets_smbd().

8 years agos3-smbd: Pass ev_ctx to smbd_parent_loop().
Andreas Schneider [Tue, 21 Jun 2011 12:07:25 +0000 (14:07 +0200)]
s3-smbd: Pass ev_ctx to smbd_parent_loop().

8 years agos3-smbd: Create ev_ctx and msg_ctx and use it.
Andreas Schneider [Tue, 21 Jun 2011 11:58:54 +0000 (13:58 +0200)]
s3-smbd: Create ev_ctx and msg_ctx and use it.

8 years agos4-winbind handle all values for server role
Andrew Bartlett [Wed, 13 Jul 2011 07:26:30 +0000 (17:26 +1000)]
s4-winbind handle all values for server role

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Jul 14 08:20:13 CEST 2011 on sn-devel-104

8 years agos3-lib Remove unused get_cmdline_auth_info_copy
Andrew Bartlett [Tue, 12 Jul 2011 06:36:34 +0000 (16:36 +1000)]
s3-lib Remove unused get_cmdline_auth_info_copy

8 years agos4-param finish services hooks for s4->s3 loadparm context
Andrew Bartlett [Tue, 12 Jul 2011 06:03:11 +0000 (16:03 +1000)]
s4-param finish services hooks for s4->s3 loadparm context

8 years agos4-param cope with parameters of type char
Andrew Bartlett [Tue, 12 Jul 2011 04:55:24 +0000 (14:55 +1000)]
s4-param cope with parameters of type char

8 years agos3-param Plug 'netbios aliases' via the parameter bridge
Andrew Bartlett [Tue, 12 Jul 2011 04:53:57 +0000 (14:53 +1000)]
s3-param Plug 'netbios aliases' via the parameter bridge

8 years agoAdd intrasite code test switch
Dave Craft [Wed, 6 Jul 2011 02:39:05 +0000 (21:39 -0500)]
Add intrasite code test switch

kcc_service struct gets a intrasite_code
boolean that is filled in via parametric parameter
kccsrv:intrasite = [true/false] in smb.conf.   This
will allow us to continue to utilize old simple
KCC topology as continuing default while newer
intra-site topology matures further.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Jul 14 00:19:12 CEST 2011 on sn-devel-104

8 years agoAdd kccsrv_add_repsFrom() possibility of NULL res argument
Dave Craft [Wed, 6 Jul 2011 02:34:32 +0000 (21:34 -0500)]
Add kccsrv_add_repsFrom() possibility of NULL res argument

We need the ability to utilize this function in a different
manner.  KCC intra-site topology has already vetted the
replica as being appropriate to produce a repsFrom from.
We do not want kccsrv_add_repsFrom() to produce further
checking as was the case for simple topology.   Thus if
we pass a NULL (res) parameter this extra check will
be skipped.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
8 years agoRemove static to allow availability to other KCC files
Dave Craft [Wed, 6 Jul 2011 02:31:45 +0000 (21:31 -0500)]
Remove static to allow availability to other KCC files

kccsrv_replica_flags() and
kccsrv_add_repsFrom() need to be available to functions
outside kcc_periodic.c

Signed-off-by: Andrew Tridgell <tridge@samba.org>
8 years agokcc_connection invocation_id added to struct
Dave Craft [Wed, 6 Jul 2011 02:26:07 +0000 (21:26 -0500)]
kcc_connection invocation_id added to struct

Utilized by KCC to carry the invocation id of the NTDSDSA
that we are replicating the name context from.  Utilized
when NTDSConnection is created (much like dsa_guid tracks
the NTDSDSA objectGUID that we are replicating the name
context from).

Signed-off-by: Andrew Tridgell <tridge@samba.org>
8 years agoKCC NTDSConnection should utilize NTDSCONN_OPT_IS_GENERATED
Dave Craft [Wed, 6 Jul 2011 02:22:31 +0000 (21:22 -0500)]
KCC NTDSConnection should utilize NTDSCONN_OPT_IS_GENERATED

Previously this set an explicit (0x1) value whereas it
can now utilize NTDSCONN_OPT_IS_GENERATED from flags.h

Signed-off-by: Andrew Tridgell <tridge@samba.org>
8 years agoStandalone samdb_ntds_site_settings_options() helper
Dave Craft [Wed, 6 Jul 2011 02:19:54 +0000 (21:19 -0500)]
Standalone samdb_ntds_site_settings_options() helper

A helper function for retrieving the ntds site settings
via standalone function call.  Used within KCC

Signed-off-by: Andrew Tridgell <tridge@samba.org>
8 years agoNTDSConnection and NTDSA Site setting flags
Dave Craft [Wed, 6 Jul 2011 02:17:10 +0000 (21:17 -0500)]
NTDSConnection and NTDSA Site setting flags

Flags that were missing from flags.h or were incorrectly
defined inline to the kcc_topology.c code (and thus unusable
elsewhere).   These are the NTDSConnection and NTDSDSA Site
settings flags.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
8 years agodynconfig/wscript: use $libdir/security for PAMMODULESDIR as in config.m4
Stefan Metzmacher [Wed, 13 Jul 2011 11:06:16 +0000 (13:06 +0200)]
dynconfig/wscript: use $libdir/security for PAMMODULESDIR as in config.m4

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Jul 13 17:44:01 CEST 2011 on sn-devel-104

8 years agos3:configure: use the same dynconfig options and default values as the toplevel build
Stefan Metzmacher [Wed, 13 Jul 2011 09:26:12 +0000 (11:26 +0200)]
s3:configure: use the same dynconfig options and default values as the toplevel build

metze

8 years agoFix bug 8305 - nmbd segfaults - when using "smbtree ..."
Günter Kukkukk [Wed, 13 Jul 2011 13:10:13 +0000 (06:10 -0700)]
Fix bug 8305 - nmbd segfaults - when using "smbtree ..."

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Jul 13 16:35:16 CEST 2011 on sn-devel-104

8 years agos3-epmapper: Fix adding tcpip endpoints.
Andreas Schneider [Tue, 5 Jul 2011 13:46:59 +0000 (15:46 +0200)]
s3-epmapper: Fix adding tcpip endpoints.

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Wed Jul 13 15:22:11 CEST 2011 on sn-devel-104

8 years agos3-auth: Fix account check over ncalrpc.
Andreas Schneider [Tue, 12 Jul 2011 10:23:08 +0000 (12:23 +0200)]
s3-auth: Fix account check over ncalrpc.

8 years agos3-waf: Don't link LIBNTLMSSP twice.
Andreas Schneider [Mon, 11 Jul 2011 16:36:44 +0000 (18:36 +0200)]
s3-waf: Don't link LIBNTLMSSP twice.

It is already linked in libsmb.

8 years agos4-dsdb: fixed the defaultObjectCategory to have a full GUID
Andrew Tridgell [Wed, 13 Jul 2011 09:36:59 +0000 (19:36 +1000)]
s4-dsdb: fixed the defaultObjectCategory to have a full GUID

this fixes the DN to have a full GUID for new objects

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Jul 13 14:03:30 CEST 2011 on sn-devel-104

8 years agos4-fault: changed to use %d for PID, instead of %PID%
Andrew Tridgell [Wed, 13 Jul 2011 07:26:31 +0000 (17:26 +1000)]
s4-fault: changed to use %d for PID, instead of %PID%

this matches the s3 behaviour

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

8 years agos4-dsdb: another special case for the "member" attribute
Andrew Tridgell [Wed, 13 Jul 2011 05:58:45 +0000 (15:58 +1000)]
s4-dsdb: another special case for the "member" attribute

thanks to Matthias for his great test suite work!

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

8 years agos4-dsdb Don't process deletion of member attributes here.
Andrew Bartlett [Wed, 13 Jul 2011 05:31:19 +0000 (15:31 +1000)]
s4-dsdb Don't process deletion of member attributes here.

We don't need to compare the delete against the primaryGroupID check
here - that test is for adds.

Andrew Bartlett

8 years agodsdb: fixed special case of zero NTTIME
Andrew Tridgell [Wed, 13 Jul 2011 03:26:48 +0000 (13:26 +1000)]
dsdb: fixed special case of zero NTTIME

we can't convert 0 NTTIME via a unix time_t

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

8 years agodbcheck: use samdb_schema for getting the backlink
Andrew Tridgell [Wed, 13 Jul 2011 03:26:19 +0000 (13:26 +1000)]
dbcheck: use samdb_schema for getting the backlink

this is not available on an ldap samdb

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

8 years agoldb: added ldb_val_string_cmp()
Andrew Tridgell [Wed, 13 Jul 2011 03:25:34 +0000 (13:25 +1000)]
ldb: added ldb_val_string_cmp()

this should help fix some places where we run past the end of a string

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

8 years agoldb: use base searches for @ special DNs
Andrew Tridgell [Wed, 13 Jul 2011 03:05:19 +0000 (13:05 +1000)]
ldb: use base searches for @ special DNs

subtree searches on these DNs don't work any more

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

8 years agoldb: don't return special DNs on non-base searches
Andrew Tridgell [Wed, 13 Jul 2011 02:25:09 +0000 (12:25 +1000)]
ldb: don't return special DNs on non-base searches

to look at a special DN, give the full DN

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

8 years agoldb: don't shortcut dn comparison for mismatched special DNs
Andrew Tridgell [Wed, 13 Jul 2011 02:24:25 +0000 (12:24 +1000)]
ldb: don't shortcut dn comparison for mismatched special DNs

DNs that start with @ can't be compared via string comparison with
normal DNs

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

8 years agodbcheck: only do the provision dbcheck if there are objects to check
Andrew Tridgell [Wed, 13 Jul 2011 00:54:50 +0000 (10:54 +1000)]
dbcheck: only do the provision dbcheck if there are objects to check

when in FILL_DRS mode, there are no objects to check yet

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

8 years agos4-test: fixed usage message on renamedc.sh
Andrew Tridgell [Wed, 13 Jul 2011 00:49:45 +0000 (10:49 +1000)]
s4-test: fixed usage message on renamedc.sh

8 years agos4-provision: fixed the GUIDs in the provision using dbcheck
Andrew Tridgell [Wed, 13 Jul 2011 00:31:15 +0000 (10:31 +1000)]
s4-provision: fixed the GUIDs in the provision using dbcheck

some DNs are are not setup with GUIDs during the provision because of
circular dependencies between objects. This adds a dbcheck pass to the
provision to fix those DNs

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

8 years agos4-dsdb: fixed modify of ACLs on deleted objects
Andrew Tridgell [Wed, 13 Jul 2011 00:28:07 +0000 (10:28 +1000)]
s4-dsdb: fixed modify of ACLs on deleted objects

this is needed for the dbcheck code

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

8 years agodbcheck: only fix replPropertyMetaData if we included it in the search
Andrew Tridgell [Wed, 13 Jul 2011 00:12:48 +0000 (10:12 +1000)]
dbcheck: only fix replPropertyMetaData if we included it in the search

if we didn't find a replPropertyMetaData attribute at all then don't
try fixing it

Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>

8 years agodbcheck: added checks for missing and orphansed backlinks
Andrew Tridgell [Tue, 12 Jul 2011 01:26:29 +0000 (11:26 +1000)]
dbcheck: added checks for missing and orphansed backlinks

this checks for missing backlinks or backlinks without a forward link
and optionally fixes them

Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

8 years agos4-dsdb: raise debug level for backlink errors
Andrew Tridgell [Tue, 12 Jul 2011 01:25:39 +0000 (11:25 +1000)]
s4-dsdb: raise debug level for backlink errors

when dbcheck is fixing missing backlinks we don't want a DEBUG 0
message

Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>

8 years agodbcheck: fixed ldap check with no database specified
Andrew Tridgell [Tue, 12 Jul 2011 01:12:21 +0000 (11:12 +1000)]
dbcheck: fixed ldap check with no database specified

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>

8 years agodbcheck: added --reindex option
Andrew Tridgell [Tue, 12 Jul 2011 01:05:43 +0000 (11:05 +1000)]
dbcheck: added --reindex option

this allows you to force a reindex of the database

Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

8 years agosamba-tool: fixed ldapcmp to run as non-root
Andrew Tridgell [Tue, 12 Jul 2011 00:41:52 +0000 (10:41 +1000)]
samba-tool: fixed ldapcmp to run as non-root

this avoids the need for access to the secrets database

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>

8 years agodbcheck: added checking of backlinks
Andrew Tridgell [Mon, 11 Jul 2011 06:55:36 +0000 (16:55 +1000)]
dbcheck: added checking of backlinks

Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

8 years agopydsdb: added get_backlink_from_lDAPDisplayName()
Andrew Tridgell [Mon, 11 Jul 2011 06:55:11 +0000 (16:55 +1000)]
pydsdb: added get_backlink_from_lDAPDisplayName()

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>

8 years agos4-dsdb: moved checking of duplicate member entries to repl_meta_data.c
Andrew Tridgell [Mon, 11 Jul 2011 05:32:12 +0000 (15:32 +1000)]
s4-dsdb: moved checking of duplicate member entries to repl_meta_data.c

the samldb checks failed to account for the possibility of a member
being removed and added in the same modify operation. This happens
(for example) when dbcheck is fixing a SID in a DN.

The repl_meta_data.c code already has this check, it just wasn't
giving the right specialised error code for the 'member' attribute

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>

8 years agos3-rpc_server: Removed no longer used functions.
Vicentiu Ciorbaru [Tue, 12 Jul 2011 16:54:45 +0000 (19:54 +0300)]
s3-rpc_server: Removed no longer used functions.

Removed winreg_printer_delete_subkeys().
Removed winreg_printer_enumvalues().

Signed-off-by: Andreas Schneider <asn@samba.org>
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Wed Jul 13 12:42:02 CEST 2011 on sn-devel-104

8 years agos3-rpc_client: Migrate to dcerpc_winreg_delete_subkeys_recursive().
Vicentiu Ciorbaru [Tue, 12 Jul 2011 16:50:57 +0000 (19:50 +0300)]
s3-rpc_client: Migrate to dcerpc_winreg_delete_subkeys_recursive().

Functions now use dcerpc_winreg_delete_subkeys_recursive() instead of the more
specific printer function winreg_printer_delete_subkeys().

Signed-off-by: Andreas Schneider <asn@samba.org>
8 years agos3-rpc_client: Migrate to dcerpc_winreg_enumvals() function.
Vicentiu Ciorbaru [Tue, 12 Jul 2011 16:42:15 +0000 (19:42 +0300)]
s3-rpc_client: Migrate to dcerpc_winreg_enumvals() function.

The functions that called winreg_printer_enumvalues() function now use
dcerpc_winreg_enumvals().

Signed-off-by: Andreas Schneider <asn@samba.org>
8 years agos3-rpc_client: Added dcerpc_winreg_delete_subkeys_recursive() function.
Vicentiu Ciorbaru [Tue, 12 Jul 2011 16:38:14 +0000 (19:38 +0300)]
s3-rpc_client: Added dcerpc_winreg_delete_subkeys_recursive() function.

This function is set to replace the more specific printer function
winreg_printer_delete_subkeys().

Signed-off-by: Andreas Schneider <asn@samba.org>
8 years agos3-rpc_client: Added dcerpc_winreg_enumvals() function.
Vicentiu Ciorbaru [Tue, 12 Jul 2011 16:37:31 +0000 (19:37 +0300)]
s3-rpc_client: Added dcerpc_winreg_enumvals() function.

The function is set to replace the more specific printer function
winreg_printer_enumvalues() function.

Signed-off-by: Andreas Schneider <asn@samba.org>
8 years agodynconfig: rework the logic to support --enable-fhs
Stefan Metzmacher [Tue, 21 Jun 2011 15:49:06 +0000 (17:49 +0200)]
dynconfig: rework the logic to support --enable-fhs

This reorders the data structure which represents the options
to build a more useful hierachy. This makes it more obvious
which defaults values are used in the 'STD' and 'FHS' flavors.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Jul 13 09:33:21 CEST 2011 on sn-devel-104

8 years agodynconfig: add SambaIndentedHelpFormatter in order to support \n in option help text
Stefan Metzmacher [Tue, 21 Jun 2011 15:46:36 +0000 (17:46 +0200)]
dynconfig: add SambaIndentedHelpFormatter in order to support \n in option help text

metze

8 years agodynconfig: remember which options still have their default value
Stefan Metzmacher [Tue, 21 Jun 2011 10:09:40 +0000 (12:09 +0200)]
dynconfig: remember which options still have their default value

If the values are explicit specified on the command line, we need to
keep them.

metze

8 years agodynconfig: use an option group for the samba specific options
Stefan Metzmacher [Tue, 21 Jun 2011 10:07:17 +0000 (12:07 +0200)]
dynconfig: use an option group for the samba specific options

metze

8 years agoRevert "s4-build Change default paths and --with flags for a 4.0 release"
Stefan Metzmacher [Mon, 20 Jun 2011 16:02:04 +0000 (18:02 +0200)]
Revert "s4-build Change default paths and --with flags for a 4.0 release"

This reverts commit edd3e8b03aa0bca85d4a9a62b35471e76a1f9390.

8 years agoRevert "build: Put lockdir and cachedir in FHS-like locations by default"
Stefan Metzmacher [Mon, 20 Jun 2011 16:02:00 +0000 (18:02 +0200)]
Revert "build: Put lockdir and cachedir in FHS-like locations by default"

This reverts commit 6c9a78074a429773cefd1a3c798b7e3ad7d4c325.

8 years agoldb-tdb: Introduce a flag on ltdb_add_internal to indicate whether unique value test...
Matthieu Patou [Tue, 12 Jul 2011 15:22:35 +0000 (19:22 +0400)]
ldb-tdb: Introduce a flag on ltdb_add_internal to indicate whether unique value test should be performed or not

The function ltdb_add_internal is called either from ltdb_add or
ltdb_rename. In case of add we enforce the unique test (unless it has
been relaxed by a upper module through the
LDB_FLAG_INTERNAL_DISABLE_SINGLE_VALUE_CHECK flag), but for rename as it
is translated by a delete + a add we relax the test as we can have one
or more attribute which are supposed to be single valued but that are
not (ie. when we have a couple of deleted value on a single valued
attribute), we have already done the tests on insert so make the
assumption that the values are OK.

Without this patch deleting a subnet that has been affected to more than
one site fails as the delete is in fact a rename to GUID\0DEL ... with
an attribute siteObject that has 1 active link value and 1 inactive link
value

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Wed Jul 13 02:29:20 CEST 2011 on sn-devel-104

8 years agos3:libsmb: remove unused cli_smb_inbuf()
Stefan Metzmacher [Tue, 12 Jul 2011 14:18:10 +0000 (16:18 +0200)]
s3:libsmb: remove unused cli_smb_inbuf()

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Jul 13 01:19:51 CEST 2011 on sn-devel-104

8 years agos3: dbwrap_ctdb.c: fix #ifdef CTDB_CONTROL_SCHEDULE_FOR_DELETION issue (bug #8303)
Björn Baumbach [Tue, 12 Jul 2011 15:32:55 +0000 (17:32 +0200)]
s3: dbwrap_ctdb.c: fix #ifdef CTDB_CONTROL_SCHEDULE_FOR_DELETION issue (bug #8303)

Check for HAVE_CTDB_CONTROL_SCHEDULE_FOR_DELETION_DECL instead of
CTDB_CONTROL_SCHEDULE_FOR_DELETION, which is an enum member and not a
define.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Jul 12 18:56:30 CEST 2011 on sn-devel-104

8 years agos4:libcli/raw: s/SMBchkpth/SMBcheckpath
Stefan Metzmacher [Tue, 12 Jul 2011 07:26:53 +0000 (09:26 +0200)]
s4:libcli/raw: s/SMBchkpth/SMBcheckpath

metze

8 years agos4:winsdb: place wins.ldb in "state dir" instead of "lock dir"
Stefan Metzmacher [Tue, 12 Jul 2011 11:52:54 +0000 (13:52 +0200)]
s4:winsdb: place wins.ldb in "state dir" instead of "lock dir"

It's not only a cache as we also support static records.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Jul 12 16:16:45 CEST 2011 on sn-devel-104

8 years agoselftest/Samba4: use "state dir" for persistent files
Stefan Metzmacher [Tue, 12 Jul 2011 11:14:41 +0000 (13:14 +0200)]
selftest/Samba4: use "state dir" for persistent files

metze

8 years agos4:provision: place the sysvol share under "state dir" instead of "lock dir"
Stefan Metzmacher [Tue, 12 Jul 2011 11:49:18 +0000 (13:49 +0200)]
s4:provision: place the sysvol share under "state dir" instead of "lock dir"

metze

8 years agoselftest/Samba4: setup "state dir" and "cache dir"
Stefan Metzmacher [Tue, 12 Jul 2011 11:12:50 +0000 (13:12 +0200)]
selftest/Samba4: setup "state dir" and "cache dir"

metze

8 years agos4:param: add "state dir" and "cache dir" options
Stefan Metzmacher [Tue, 12 Jul 2011 11:04:08 +0000 (13:04 +0200)]
s4:param: add "state dir" and "cache dir" options

metze

8 years agos3:libsmb: remove unused cli_oplock_handler()
Stefan Metzmacher [Tue, 12 Jul 2011 07:20:02 +0000 (09:20 +0200)]
s3:libsmb: remove unused cli_oplock_handler()

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Jul 12 10:53:52 CEST 2011 on sn-devel-104

8 years agos4:libcli/raw: remove SMBkeepalive
Stefan Metzmacher [Tue, 12 Jul 2011 06:57:34 +0000 (08:57 +0200)]
s4:libcli/raw: remove SMBkeepalive

metze

8 years agos4:smb_server: s/SMBkeepalive/NBSSkeepalive
Stefan Metzmacher [Tue, 12 Jul 2011 06:56:53 +0000 (08:56 +0200)]
s4:smb_server: s/SMBkeepalive/NBSSkeepalive

metze

8 years agos3:include: remove SMBkeepalive
Stefan Metzmacher [Tue, 12 Jul 2011 06:57:14 +0000 (08:57 +0200)]
s3:include: remove SMBkeepalive

metze

8 years agos3:smbd: s/SMBkeepalive/NBSSkeepalive
Stefan Metzmacher [Tue, 12 Jul 2011 06:55:58 +0000 (08:55 +0200)]
s3:smbd: s/SMBkeepalive/NBSSkeepalive

metze

8 years agos3:libsmb: s/SMBkeepalive/NBSSkeepalive
Stefan Metzmacher [Tue, 12 Jul 2011 06:55:26 +0000 (08:55 +0200)]
s3:libsmb: s/SMBkeepalive/NBSSkeepalive

metze

8 years agos3:lib: s/SMBkeepalive/NBSSkeepalive
Stefan Metzmacher [Tue, 12 Jul 2011 06:53:30 +0000 (08:53 +0200)]
s3:lib: s/SMBkeepalive/NBSSkeepalive

metze

8 years agolibcli/smb: add NBSS message types
Stefan Metzmacher [Tue, 12 Jul 2011 06:42:30 +0000 (08:42 +0200)]
libcli/smb: add NBSS message types

metze

8 years agos3:libsmb: remove unused cli->privileges
Stefan Metzmacher [Mon, 11 Jul 2011 20:08:10 +0000 (22:08 +0200)]
s3:libsmb: remove unused cli->privileges

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Jul 12 09:30:49 CEST 2011 on sn-devel-104

8 years agos3:smbd: use PROTOCOL_SMB2_02 instead PROTOCOL_SMB2
Stefan Metzmacher [Mon, 11 Jul 2011 20:23:56 +0000 (22:23 +0200)]
s3:smbd: use PROTOCOL_SMB2_02 instead PROTOCOL_SMB2

metze

8 years agos3:loadparm: use PROTOCOL_SMB2_02 instead of PROTOCOL_SMB2
Stefan Metzmacher [Mon, 11 Jul 2011 20:22:49 +0000 (22:22 +0200)]
s3:loadparm: use PROTOCOL_SMB2_02 instead of PROTOCOL_SMB2

metze

8 years agolibcli/smb: add PROTOCOL_SMB2_02 constant
Stefan Metzmacher [Mon, 11 Jul 2011 20:21:43 +0000 (22:21 +0200)]
libcli/smb: add PROTOCOL_SMB2_02 constant

metze

8 years agos3:smb2_create: use smbd_calculate_access_mask() instead of smbd_check_open_rights()
Stefan Metzmacher [Sun, 10 Jul 2011 11:09:06 +0000 (13:09 +0200)]
s3:smb2_create: use smbd_calculate_access_mask() instead of smbd_check_open_rights()

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Jul 11 22:45:01 CEST 2011 on sn-devel-104