[SCM] Samba Shared Repository - branch master updated

Andrew Bartlett abartlet at samba.org
Wed Nov 25 01:19:56 MST 2009


The branch, master has been updated
       via  56eca75... The start of a WHATSNEW for Samba4 alpha9
       via  c16e96e... s4:dsdb Make samba_dsdb easier to use in upgrades - assume default values
      from  7de2a49... s4: update valgrind suppressions for use on build farm

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 56eca756719fcec019588ccde6f9ae53cb94cff6
Author: Andrew Bartlett <abartlet at samba.org>
Date:   Wed Nov 25 19:17:50 2009 +1100

    The start of a WHATSNEW for Samba4 alpha9
    
    If you think what you did is missing, please edit.  Release of alpha9
    will be this week.
    
    Andrew Bartlett

commit c16e96e46f5301a7fe897ed0451fd4bb788fee14
Author: Andrew Bartlett <abartlet at samba.org>
Date:   Wed Nov 25 18:49:42 2009 +1100

    s4:dsdb Make samba_dsdb easier to use in upgrades - assume default values

-----------------------------------------------------------------------

Summary of changes:
 WHATSNEW4.txt                               |   29 ++++++++++++++++++++------
 source4/dsdb/samdb/ldb_modules/samba_dsdb.c |   11 ++++++---
 2 files changed, 29 insertions(+), 11 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW4.txt b/WHATSNEW4.txt
index 1b9a5ba..1cd66d5 100644
--- a/WHATSNEW4.txt
+++ b/WHATSNEW4.txt
@@ -1,4 +1,4 @@
-What's new in Samba 4 alpha8
+What's new in Samba 4 alpha9
 ============================
 
 Samba 4 is the ambitious next version of the Samba suite that is being
@@ -6,13 +6,13 @@ developed in parallel to the stable 3.0 series. The main emphasis in
 this branch is support for the Active Directory logon protocols used
 by Windows 2000 and above.
 
-Samba4 alpha8 follows on from the alpha release series we have been
+Samba4 alpha9 follows on from the alpha release series we have been
 publishing since September 2007
 
 WARNINGS
 ========
 
-Samba4 alpha8 is not a final Samba release.  That is more a reference
+Samba4 alpha9 is not a final Samba release.  That is more a reference
 to Samba4's lack of the features we expect you will need than a
 statement of code quality, but clearly it hasn't seen a broad
 deployment yet.  If you were to upgrade Samba3 (or indeed Windows) to
@@ -62,17 +62,26 @@ working on modules to map between AD-like behaviours and this backend.
 We are aiming for Samba 4 to be powerful frontend to large
 directories.
 
-CHANGES SINCE alpha7
+CHANGES SINCE alpha8
 =====================
 
 In the time since Samba4 alpha7 was released in Feburary 2009, Samba has
 continued to evolve, but you may particularly notice these areas 
 (in no particular order):
 
- Samba4 now includes the full AD schema, as used in Microsoft Windows 2008
+ Samba4 now includes the full set of user interface strings (display Specifiers) required to
+ have the Microsoft Management Console operate
 
- LDB (the core Samba4 database library) now handles large number of
- users and groups much more efficiently
+ LDB (the core Samba4 database library) has again been reworked for
+ better performance
+
+ Replication between Samba4 and Active Directory domains using the
+ native replication protocol (DRS) has been demonstrated.
+
+ Access Control Lists (in nTSecurityDescriptor) are now set correctly
+ on objects in the directory, based on the same rules as Windows 2008.
+ (Searches and modifications still use a simplistic administrator/not
+ administrator criteria)
 
 These are just some of the user-visible highlights of the work done in
 the past few months.  More details of the work done 'under the hood'
@@ -102,6 +111,12 @@ KNOWN ISSUES
   and server.  (The NTP work in the previous alphas are partly to assist
   with this problem).
 
+- The DRS replication code often fails, and is very new
+
+- Users upgrading existing databases to Samba4 should carefully
+  consult upgrading-samba4.txt.  We have made a number of changes in
+  this release that should make it easier to upgrade in future. 
+
 RUNNING Samba4
 ==============
 
diff --git a/source4/dsdb/samdb/ldb_modules/samba_dsdb.c b/source4/dsdb/samdb/ldb_modules/samba_dsdb.c
index d561780..ee7e42e 100644
--- a/source4/dsdb/samdb/ldb_modules/samba_dsdb.c
+++ b/source4/dsdb/samdb/ldb_modules/samba_dsdb.c
@@ -237,14 +237,17 @@ static int samba_dsdb_init(struct ldb_module *module)
 	} while (0)
 
 	ret = dsdb_module_search_dn(module, tmp_ctx, &res, samba_dsdb_dn, samba_dsdb_attrs, 0);
-	if (ret != LDB_SUCCESS) {
+	if (ret == LDB_ERR_NO_SUCH_OBJECT) {
+		backendType = "ldb";
+		serverRole = "domain controller";
+	} else if (ret == LDB_SUCCESS) {
+		backendType = ldb_msg_find_attr_as_string(res->msgs[0], "backendType", "ldb");
+		serverRole = ldb_msg_find_attr_as_string(res->msgs[0], "serverRole", "domain controller");
+	} else {
 		talloc_free(tmp_ctx);
 		return ret;
 	}
 
-	backendType = ldb_msg_find_attr_as_string(res->msgs[0], "backendType", "ldb");
-	serverRole = ldb_msg_find_attr_as_string(res->msgs[0], "serverRole", NULL);
-
 	backend_modules = NULL;
 	if (strcasecmp(backendType, "ldb") == 0) {
 		if (strcasecmp(serverRole, "dc") == 0 || strcasecmp(serverRole, "domain controller") == 0) {


-- 
Samba Shared Repository


More information about the samba-cvs mailing list