On 10/16/2015 09:18 AM, Martin Simovic wrote:


On 15 Oct 2015, at 18:13, Chris Coleman <[email protected] <mailto:[email protected]>> wrote:



On 10/15/2015 10:32 AM, Martin Simovic wrote:


On 14 Oct 2015, at 21:06, Chris Coleman <[email protected]> wrote:

You can try:
sudo openchange_provision --standalone --ignore_already_exists

This command line switch seems to be unimplemented: openchange_provision: error: no such option: —ignore_already_exists

I am using openchange 3:2.4-zentyal6 package from inverse repository. Maybe the way to go is to delete the CN=ms-Exch-Access-Control-Map attribute directly from directory? I am going to find out the hard way ..

Regards
Martin.
Sorry, try --ignore-already-exists (instead of --ignore_already_exists), e.g.
sudo openchange_provision --standalone --ignore-already-exists

Yes, that works, Thanks. Now I get further but:

root@pdc:~# openchange_provision --standalone --ignore-already-exists
NOTE: This operation can take several minutes
[+] Step 1: Register Exchange OIDs
[+] Step 2: Add Exchange attributes to Samba schema
[+] Step 3: Add Exchange auxiliary classes to Samba schema
[+] Step 4: Add Exchange objectCategory to Samba schema
[+] Step 5: Add Exchange containers to Samba schema
[+] Step 6: Add Exchange *sub* containers to Samba schema
[+] Step 7: Add Exchange CfgProtocol subcontainers to Samba schema
[+] Step 8: Add Exchange mailGateway subcontainers to Samba schema
[+] Step 9: Add Exchange classes to Samba schema
[+] Step 10: Add possSuperior attributes to Exchange classes
No elements to add found in /usr/share/samba/setup/AD/oc_provision_schema_possSuperior.ldif
[+] Step 11: Extend existing Samba classes and attributes
No elements to add found in /usr/share/samba/setup/AD/oc_provision_schema_modify.ldif
[+] Step 12: Generic Exchange configuration objects
[+] Step 13: Exchange Organization objects
Error: "(64, 'structural objectClass msExchAdminGroup is not a valid child class for CN=Administrative Groups,CN=First Organization,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=example,DC=com')" when adding element:

And I continue stuck. Still unable to provision entirely or deprovision either.

Best Regards
Martin.


didn't get a chance to do this until today . . .

mine was successful --

adam@sogo:~$ sudo openchange_provision --standalone --ignore-already-exists
NOTE: This operation can take several minutes
[+] Step 1: Register Exchange OIDs
[+] Step 2: Add Exchange attributes to Samba schema
[+] Step 3: Add Exchange auxiliary classes to Samba schema
No elements to add found in /usr/share/samba/setup/AD/oc_provision_schema_auxiliary_class.ldif
[+] Step 4: Add Exchange objectCategory to Samba schema
No elements to add found in /usr/share/samba/setup/AD/oc_provision_schema_objectCategory.ldif
[+] Step 5: Add Exchange containers to Samba schema
No elements to add found in /usr/share/samba/setup/AD/oc_provision_schema_container.ldif
[+] Step 6: Add Exchange *sub* containers to Samba schema
No elements to add found in /usr/share/samba/setup/AD/oc_provision_schema_subcontainer.ldif
[+] Step 7: Add Exchange CfgProtocol subcontainers to Samba schema
No elements to add found in /usr/share/samba/setup/AD/oc_provision_schema_sub_CfgProtocol.ldif
[+] Step 8: Add Exchange mailGateway subcontainers to Samba schema
No elements to add found in /usr/share/samba/setup/AD/oc_provision_schema_sub_mailGateway.ldif
[+] Step 9: Add Exchange classes to Samba schema
No elements to add found in /usr/share/samba/setup/AD/oc_provision_schema.ldif
[+] Step 10: Add possSuperior attributes to Exchange classes
No elements to add found in /usr/share/samba/setup/AD/oc_provision_schema_possSuperior.ldif
[+] Step 11: Extend existing Samba classes and attributes
No elements to add found in /usr/share/samba/setup/AD/oc_provision_schema_modify.ldif
[+] Step 12: Generic Exchange configuration objects
[+] Step 13: Exchange Organization objects
[+] Step 14: Update generic Exchange configuration objects
No elements to add found in /usr/share/samba/setup/AD/oc_provision_configuration_finalize.ldif
[SUCCESS] Done!
[+] Step 1: Exchange Samba registration
[SUCCESS] Done!
[+] Step 1: Register Exchange Samba as the main server
No elements to add found in /usr/share/samba/setup/AD/oc_provision_configuration_as_main.ldif
[SUCCESS] Done!
adam@sogo:~$

adam@sogo:~$ sudo openchange_provision --openchangedb --openchangedb-uri 'mysql://openchange-user:$Passwd@localhost/openchange'
Setting up openchange db
[+] Public Folders
===================
* Public Folder Root : 0x0100000000000001 (72057594037927937) * IPM_SUBTREE : 0x0200000000000001 (144115188075855873) /usr/lib/python2.7/dist-packages/openchange/mailbox.py:408: *Warning: Unsafe statement* written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statements writing to a table with an auto-increment column after selecting from another table are unsafe because the order in which rows are retrieved determines what (if any) rows will be written. This order cannot be predicted and may differ on master and the slave.
  cur.execute(sql, params)
* NON_IPM_SUBTREE : 0x0300000000000001 (216172782113783809) * EFORMS REGISTRY : 0x0400000000000001 (288230376151711745) * OFFLINE ADDRESS BOOK : 0x0500000000000001 (360287970189639681) * /o=First Organization/cn=addrlists/cn=oabs/cn=Default Offline Address Book: 0x0600000000000001 (43234556422756 7617) * SCHEDULE+ FREE BUSY : 0x0700000000000001 (504403158265495553) * EX:/o=First Organization/ou=First Administrative Group: 0x0800000000000001 (576460752303423489) * Events Root : 0x0900000000000001 (648518346341351425)
adam@sogo:~$

Looking at *Warning: Unsafe statement*, is there a problem with the database?

Everything looks fine to me. I'll check on the "shut down" issue after hours.

Thanks, Chris and Martin for the help!

--
[email protected]
https://inverse.ca/sogo/lists

Reply via email to