--- provisionbackend.py.org	2010-03-09 20:22:23.000000000 +0100
+++ provisionbackend.py	2010-03-09 21:20:29.000000000 +0100
@@ -358,18 +358,20 @@
         
             url_list=filter(None,self.ol_mmr_urls.split(' ')) 
             if (len(url_list) == 1):
-                url_list=filter(None,self.ol_mmr_urls.split(',')) 
+                raise ProvisioningError("At least 2 LDAP-URLs needed for MMR!")
+                # raise error if only 1 ol-mmr-url was commited during provision 
                      
             
-                mmr_on_config = "MirrorMode On"
-                mmr_replicator_acl = "  by dn=cn=replicator,cn=samba read"
-                serverid=0
-                for url in url_list:
+            mmr_on_config = "MirrorMode On"
+            mmr_replicator_acl = "  by dn=cn=replicator,cn=samba read"
+            serverid=0
+            for url in url_list:
                     serverid=serverid+1
                     mmr_serverids_config += read_and_sub_file(self.setup_path("mmr_serverids.conf"),
                                                           { "SERVERID" : str(serverid),
                                                             "LDAPSERVER" : url })
                     rid=serverid*10
+                    olcseedrid=rid
                     rid=rid+1
                     mmr_syncrepl_schema_config += read_and_sub_file(self.setup_path("mmr_syncrepl.conf"),
                                                                 {  "RID" : str(rid),
@@ -400,7 +402,7 @@
             olc_serverids_config = ""
             olc_syncrepl_seed_config = ""
             olc_mmr_config += read_and_sub_file(self.setup_path("olc_mmr.conf"),{})
-            rid=1000
+            rid=500
             for url in url_list:
                 serverid=serverid+1
                 olc_serverids_config += read_and_sub_file(self.setup_path("olc_serverid.conf"),