Andrew Tridgell [Sat, 19 Dec 2009 13:10:40 +0000 (00:10 +1100)]
s4-dsdb: fill in the correct version number of links that come over DRS
Andrew Tridgell [Sat, 19 Dec 2009 10:42:40 +0000 (21:42 +1100)]
s4-dsdb: move checking for single valued links to samba modules
This uses the RELAX control and checking of single valued attributes
in ldb modules to avoid problems with multi-valued links where all
values but one are deleted
Andrew Tridgell [Sat, 19 Dec 2009 10:40:55 +0000 (21:40 +1100)]
s4-dsdb: added dsdb_check_single_valued_link()
This is used in conjunction with the RELAX control, to check for
violations of single value rules for linked attributes
Andrew Tridgell [Sat, 19 Dec 2009 09:59:04 +0000 (20:59 +1100)]
s4-drs: handle mixtures of old and new style links in getncchanges
We need to send non-upgraded links using the old format
Andrew Tridgell [Sat, 19 Dec 2009 09:55:46 +0000 (20:55 +1100)]
s4-dsdb: added dsdb_dn_is_upgraded_link_val()
This is used to detect if a link has been stored in the w2k3 extended
format
Andrew Tridgell [Sat, 19 Dec 2009 09:55:11 +0000 (20:55 +1100)]
s4-ldb: use the RELAX control to disable single value checking on replace
When using w2k3 linked attributes we are allowed to have multiple
values on a single valued attribute. This happens when the other
values are deleted.
Setting the RELAX control tell the ldb-tdb backend to not check for
this on replace, which means the caller has to check for single valued
violations.
Andrew Tridgell [Sat, 19 Dec 2009 08:57:37 +0000 (19:57 +1100)]
s4-dsdb: auto-upgrade w2k formatted linked attributes when modified
When any value of a w2k formatted linked attribute is modified,
upgrade the links.
Andrew Tridgell [Sat, 19 Dec 2009 01:25:09 +0000 (12:25 +1100)]
s4-drs: added linked attribute replication to getncchanges
Andrew Tridgell [Sat, 19 Dec 2009 01:24:09 +0000 (12:24 +1100)]
s4-dsdb: ask for REVEAL_INTERNALS in getncchanges
We need this for the linked attribute meta data
Andrew Tridgell [Sat, 19 Dec 2009 01:23:22 +0000 (12:23 +1100)]
s4-dsdb: minor cleanup in DRS replicated objects code
Andrew Tridgell [Fri, 18 Dec 2009 09:57:21 +0000 (20:57 +1100)]
s4-dsdb: store full meta data from DRS for linked attributes
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Fri, 18 Dec 2009 09:56:04 +0000 (20:56 +1100)]
s4-dsdb: add REVEAL_INTERNALS in the search for linked_attributes
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Fri, 18 Dec 2009 09:51:37 +0000 (20:51 +1100)]
s4-dsdb: allow the component name to be specified in dsdb_get_extended_dn_guid()
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Fri, 18 Dec 2009 01:47:31 +0000 (12:47 +1100)]
s4-dsdb: split RMD_USN into RMD_LOCAL_USN and RMD_ORIGINATING_USN
We need a separate RMD_LOCAL_USN to allow us to tell what attributes
need to be sent in a getncchanges request. Thanks to Metze for
pointing this out.
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Thu, 17 Dec 2009 12:50:41 +0000 (23:50 +1100)]
s4-dsdb: handle links with no backlinks in replmd_delete
Andrew Tridgell [Thu, 17 Dec 2009 12:02:08 +0000 (23:02 +1100)]
s4-dsdb: simplify the linked_attributes module
The linked_attributes module only has to deal with renames now, as
other linked attribute updates happen in repl_meta_data. This allows
it to be much simpler.
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Thu, 17 Dec 2009 12:00:16 +0000 (23:00 +1100)]
s4-dsdb: do the rename after the modify in replmd_delete
This makes updating the links a bit easier
Andrew Tridgell [Wed, 16 Dec 2009 23:50:34 +0000 (10:50 +1100)]
s4-dsdb: some backlinks can be processed immediately
backlinks in add and delete operations can be processed immediately,
rather than at the end of a transaction. This can save on backlink
list processing time.
Andrew Tridgell [Wed, 16 Dec 2009 23:42:44 +0000 (10:42 +1100)]
s4-dsdb: remove linked_attributes_add
This is now handled in the repl_meta_data module
Andrew Tridgell [Wed, 16 Dec 2009 23:42:15 +0000 (10:42 +1100)]
s4-dsdb: add linked attributes meta_data handling to replmd_add
This also handles the backlink creation that was previously in the
linked_attributes module
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Wed, 16 Dec 2009 06:24:21 +0000 (17:24 +1100)]
s4-dsdb: added replmd_delete, based on Eduardos work
This implements repmld_delete(), which handles the meta_data updates
for an object when deleting. A delete gets mapped to a combination
of a rename followed by a modify request, which has the effect of
moving the object into the Deleted Objects container.
This is based on the code from Eduardo Lima
<eduardoll@gmail.com>. Eduardo's code was modified to take account of
the linked attributes changes that Andrew and I have been working on.
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Wed, 16 Dec 2009 06:15:23 +0000 (17:15 +1100)]
s4-dsdb: the linked_attributes module no longer handles deletes
delete handling is now moved into repl_meta_data
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Wed, 16 Dec 2009 06:14:26 +0000 (17:14 +1100)]
s4-dsdb: repl_meta_data now replaces objectguid in all cases
We don't want to be debugging two different code paths through the ldb
module stack, so better to always do the work of repl_meta_data, even
for a standalone server
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Wed, 16 Dec 2009 01:01:51 +0000 (12:01 +1100)]
s4-dsdb: add a comment on the use of ldb_rename()
We need to use ldb_rename() and not dsdb_module_rename() here as we
need the rename to be processed by the current module
Andrew Tridgell [Wed, 16 Dec 2009 00:34:58 +0000 (11:34 +1100)]
s4-dsdb: linked_attributes_modify no longer handles modifies
This functionality has moved into repl_meta_data
Andrew Tridgell [Wed, 16 Dec 2009 00:34:33 +0000 (11:34 +1100)]
s4-dsdb: added support for backlinks in repl_meta_data
backlinks need more careful handling now that we store the additional
meta data for deleted links. It is easier to handle this in
repl_meta_data than in linked_attributes.
Eventually linked_attributes will disappear, with the functionality
moved into repl_meta_data.
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Mon, 14 Dec 2009 10:54:41 +0000 (21:54 +1100)]
s4-dsdb: implemeneted replmd_modify_la_replace()
We now have the core code for handling storage of linked attribute
meta-data with local modifies
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Thu, 10 Dec 2009 12:49:02 +0000 (23:49 +1100)]
s4-dsdb: add a TODO item for linked attributes in extended_dn_out
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Thu, 10 Dec 2009 12:48:30 +0000 (23:48 +1100)]
s4-dsdb: add support for storing linked attribute meta data in extended DNs
When in functional levels above w2k, we need to store much richer meta
data about linkked attributes. We also need to keep deleted linked
attributes around to allow the deletion to be propogated to other DCs.
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Jelmer Vernooij [Fri, 1 Jan 2010 17:32:37 +0000 (18:32 +0100)]
heimdal_build: Explicitly specify 'YES' when enabling external
libraries.
Jelmer Vernooij [Fri, 1 Jan 2010 17:31:44 +0000 (18:31 +0100)]
s4/build: Indicate whether Samba4 is being built against the system
Heimdal.
Andrew Tridgell [Thu, 31 Dec 2009 05:53:14 +0000 (16:53 +1100)]
s4-net: fixed finddcs to use empty SID instead of NULL sid (NDR error)
Andrew Tridgell [Thu, 31 Dec 2009 05:52:49 +0000 (16:52 +1100)]
s4-testpasswords: fixed CONFIG and quoting
Need to pass correct config file to tests
Andrew Tridgell [Thu, 31 Dec 2009 05:52:15 +0000 (16:52 +1100)]
s4-net: fixed pwsettings command
Don't override user settings with current settings
Jelmer Vernooij [Wed, 30 Dec 2009 20:59:50 +0000 (21:59 +0100)]
py/security: Add test for dom_sid.split.
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Jelmer Vernooij [Wed, 30 Dec 2009 20:48:42 +0000 (21:48 +0100)]
samba: Fix whitespace, remove pointless 'pass' statement.
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Jelmer Vernooij [Wed, 30 Dec 2009 20:46:32 +0000 (21:46 +0100)]
pyldb: Add dom_sid.split in favor of less powerful dom_sid_to_rid().
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Jelmer Vernooij [Wed, 30 Dec 2009 20:06:21 +0000 (21:06 +0100)]
net: Support 'super' commands implemented in Python.
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Jelmer Vernooij [Wed, 30 Dec 2009 19:40:11 +0000 (20:40 +0100)]
net: Move 'newuser' to 'net newuser'
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Jelmer Vernooij [Wed, 30 Dec 2009 19:10:34 +0000 (20:10 +0100)]
net: Fix tests and documentation of setexpiry.
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Jelmer Vernooij [Wed, 30 Dec 2009 19:00:12 +0000 (20:00 +0100)]
net: Move setexpiry to 'net setexpiry'
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Jelmer Vernooij [Wed, 30 Dec 2009 18:53:05 +0000 (19:53 +0100)]
net: Move 'setpassword' to 'net setpassword'.
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Jelmer Vernooij [Wed, 30 Dec 2009 17:01:24 +0000 (18:01 +0100)]
net: Allow Python commands to return None instead of 0.
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Jelmer Vernooij [Wed, 30 Dec 2009 16:58:30 +0000 (17:58 +0100)]
blackbox.passwords: Use convenience variable for net.
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Jelmer Vernooij [Wed, 30 Dec 2009 13:55:49 +0000 (14:55 +0100)]
Fix commands in password tests.
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Jelmer Vernooij [Wed, 30 Dec 2009 13:55:07 +0000 (14:55 +0100)]
net: Allow python subcommands to provide commands that are not recognized by
net itself.
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Jim McDonough [Wed, 30 Dec 2009 20:04:55 +0000 (15:04 -0500)]
Prevent NULL dereference if group has no members
Matthias Dieter Wallnöfer [Wed, 30 Dec 2009 11:39:55 +0000 (12:39 +0100)]
s4:lib/registry/util.c - Reintroduce "FIXME"s
Jelmer suggested to put them in again.
André Hentschel [Mon, 28 Dec 2009 01:58:40 +0000 (02:58 +0100)]
net: Add some German translation
Signed-off-by: Kai Blin <kai@samba.org>
Stefan Metzmacher [Tue, 29 Dec 2009 15:14:05 +0000 (16:14 +0100)]
s4:ntlmssp: remove mem_ctx from check_password() callback to match s3
metze
Stefan Metzmacher [Tue, 29 Dec 2009 15:10:57 +0000 (16:10 +0100)]
s4:ntlmssp_server: always call ntlmssp_server_postauth() and decide there if it's a noop
metze
Stefan Metzmacher [Tue, 29 Dec 2009 15:07:16 +0000 (16:07 +0100)]
s4:ntlmssp_server: don't use a mem_ctx for ntlmssp_server_auth()
metze
Stefan Metzmacher [Tue, 29 Dec 2009 15:02:00 +0000 (16:02 +0100)]
s4:ntlmssp_server: don't use mem_ctx in auth_ntlmssp_check_password()
metze
Stefan Metzmacher [Tue, 29 Dec 2009 14:54:59 +0000 (15:54 +0100)]
s4:ntlmssp_server: clear session key in ntlmssp_server_preauth()
metze
Stefan Metzmacher [Tue, 29 Dec 2009 11:58:44 +0000 (12:58 +0100)]
s4:ntlmssp: use data_blob_null in ntlmssp_server_auth()
metze
Stefan Metzmacher [Tue, 29 Dec 2009 12:53:44 +0000 (13:53 +0100)]
s4:ntlmssp_server: remove unused variable
metze
Stefan Metzmacher [Tue, 29 Dec 2009 09:44:19 +0000 (10:44 +0100)]
s4:auth/ntlmssp: let get_challenge() return a NTSTATUS and fill a stack buffer
metze
Stefan Metzmacher [Tue, 29 Dec 2009 10:57:28 +0000 (11:57 +0100)]
s3:ntlmssp: change get_challange() to return NTSTATUS
metze
Jelmer Vernooij [Tue, 29 Dec 2009 15:08:44 +0000 (16:08 +0100)]
dsdb: Fix dependencies when building against system ldb.
Jelmer Vernooij [Tue, 29 Dec 2009 15:08:17 +0000 (16:08 +0100)]
net: Make arguments available to python commands as sys.argv.
Jelmer Vernooij [Tue, 29 Dec 2009 15:07:54 +0000 (16:07 +0100)]
python: When updating sys.path to include the Samba python path, avoid throwing away the changes made by site.py.
Jelmer Vernooij [Mon, 28 Dec 2009 20:07:25 +0000 (21:07 +0100)]
s4/net: Allow options before arguments for Python commands.
Jelmer Vernooij [Mon, 28 Dec 2009 19:37:48 +0000 (20:37 +0100)]
s4/net: Pass all arguments through to the Python commands.
Jelmer Vernooij [Mon, 28 Dec 2009 15:48:07 +0000 (16:48 +0100)]
s4/net: Add domainlevel subcommand.
Jelmer Vernooij [Mon, 28 Dec 2009 15:06:04 +0000 (16:06 +0100)]
s4/net: Use d_printf consistently when reporting errors.
Jelmer Vernooij [Mon, 28 Dec 2009 15:05:04 +0000 (16:05 +0100)]
Use CommandError exception to deal with problems during net commands.
Jelmer Vernooij [Mon, 28 Dec 2009 15:04:19 +0000 (16:04 +0100)]
s4/net: Make pwsettings a net subcommand.
Jelmer Vernooij [Mon, 28 Dec 2009 13:17:25 +0000 (14:17 +0100)]
netcmd: Add some basic tests.
Jelmer Vernooij [Mon, 28 Dec 2009 12:53:18 +0000 (13:53 +0100)]
s4/net: Support parsing arguments in Python commands.
Jelmer Vernooij [Mon, 28 Dec 2009 00:21:27 +0000 (01:21 +0100)]
net: Support usage/help of subcommands implemented in Python.
Jelmer Vernooij [Mon, 28 Dec 2009 00:04:33 +0000 (01:04 +0100)]
net: Support implementing subcommands in python.
Stefan Metzmacher [Tue, 29 Dec 2009 10:50:46 +0000 (11:50 +0100)]
s4:auth: add auth_get_server_info_principal() prototype to auth.h
metze
Stefan Metzmacher [Tue, 29 Dec 2009 10:40:09 +0000 (11:40 +0100)]
s4:auth: make auth_challenge_may_be_modified() public
metze
Stefan Metzmacher [Tue, 29 Dec 2009 10:51:37 +0000 (11:51 +0100)]
s4:auth: remove autogenerated auth/ntlm/auth_proto.h
metze
Stefan Metzmacher [Thu, 24 Dec 2009 21:42:03 +0000 (22:42 +0100)]
s3:ntlmssp: remove unused p24 variable from ntlmssp_sign_init()
metze
Stefan Metzmacher [Thu, 24 Dec 2009 21:30:42 +0000 (22:30 +0100)]
s3:ntlmssp: move some indentation in ntlmssp_sign.c
metze
Stefan Metzmacher [Thu, 24 Dec 2009 21:07:19 +0000 (22:07 +0100)]
s3:ntlmssp: remove unused ntlmssp_stored_response()
metze
Stefan Metzmacher [Thu, 24 Dec 2009 21:00:08 +0000 (22:00 +0100)]
s3:ntlmssp: remove unused ref_count from ntlmssp_state
metze
Stefan Metzmacher [Thu, 24 Dec 2009 20:55:50 +0000 (21:55 +0100)]
s3:ntlmssp: fix whitespace in ntlmssp.h
metze
Stefan Metzmacher [Thu, 24 Dec 2009 20:52:42 +0000 (21:52 +0100)]
s3:ntlmssp: fix spelling
metze
Stefan Metzmacher [Thu, 24 Dec 2009 20:51:11 +0000 (21:51 +0100)]
s3:ntlmssp: rename NTLM_MESSAGE_TYPE into ntlmssp_message_type
metze
Stefan Metzmacher [Thu, 24 Dec 2009 20:47:53 +0000 (21:47 +0100)]
s4:ntlmssp: fix whitespaces in ntlmssp.h
metze
Volker Lendecke [Mon, 28 Dec 2009 22:35:25 +0000 (23:35 +0100)]
s3: Check for lp_winbind_trusted_domains_only in wb_gettoken()
This avoids one walk of the domain list
Volker Lendecke [Mon, 28 Dec 2009 22:14:43 +0000 (23:14 +0100)]
s3: Move a lp_winbind_trusted_domains_only() check to wb_getgrsid()
winbindd_getgrgid was not protected by this.
Volker Lendecke [Mon, 28 Dec 2009 14:51:36 +0000 (15:51 +0100)]
s3: Pass netr_DomainTrustList instead of names and sids through (*trusted_domains)
Volker Lendecke [Mon, 28 Dec 2009 14:27:42 +0000 (15:27 +0100)]
s3: Simplify winbindd_ads.c:trusted_domains()
No real code change, this just removes an indentation by turning
if ( NT_STATUS_IS_OK(result) && trusts.count) {
into
if (!NT_STATUS_IS_OK(result)) {
return result;
}
if (trusts.count == 0) {
return NT_STATUS_OK;
}
Volker Lendecke [Mon, 28 Dec 2009 13:56:58 +0000 (14:56 +0100)]
s3: Remove some unused code
Watch the #if 0 -- we never stored this in the cache anymore
Volker Lendecke [Mon, 28 Dec 2009 12:49:01 +0000 (13:49 +0100)]
s3: Simplify winbindd_list_trusted_domains() slightly
Volker Lendecke [Mon, 28 Dec 2009 09:57:01 +0000 (10:57 +0100)]
s3: Simplify "setup_domain_child" slightly
Jelmer Vernooij [Sun, 27 Dec 2009 16:30:59 +0000 (17:30 +0100)]
python: Remove sys.path line rather than updating it when installing to python system path.
Volker Lendecke [Sat, 26 Dec 2009 17:00:32 +0000 (18:00 +0100)]
s3:winbind Make the normal client exit message a bit more understandable
Volker Lendecke [Sat, 26 Dec 2009 14:20:22 +0000 (15:20 +0100)]
s3: Fix a typo found by Matthias Dieter Wallnöfer <mdw@samba.org> -- thanks :-)
Volker Lendecke [Thu, 24 Dec 2009 11:56:09 +0000 (12:56 +0100)]
s3: Fix a bogus uninitialized variable warning
Volker Lendecke [Thu, 24 Dec 2009 11:52:24 +0000 (12:52 +0100)]
s3: Replace IS_DOMAIN_OFFLINE by a function
Volker Lendecke [Wed, 23 Dec 2009 14:22:09 +0000 (15:22 +0100)]
s3: Fix some nonempty blank lines
Volker Lendecke [Thu, 24 Dec 2009 11:52:00 +0000 (12:52 +0100)]
s3: winbindd_cli_state->getgrent_state is no longer used
Volker Lendecke [Thu, 24 Dec 2009 11:51:09 +0000 (12:51 +0100)]
s3: getgrent_state has been replaced by grent_state
Jelmer Vernooij [Fri, 25 Dec 2009 13:48:45 +0000 (14:48 +0100)]
py_net/libnet: Remove C++-style comments, add more error checking, move
initialization of dcerpc subsystem to libnet.
Kamen Mazdrashki [Thu, 24 Dec 2009 03:50:58 +0000 (05:50 +0200)]
s4-libnet: Simple test for net.SetPassword() python binding
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Kamen Mazdrashki [Thu, 24 Dec 2009 03:43:21 +0000 (05:43 +0200)]
s4-libnet: Python binding for libnet_SetPassword()
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>