I am running a prior ZEG that did not include Samba or Samba4

I have kept it updated to Ubuntu 12.04.02 and SOGo 2.0.7 (etc.)

It used OpenLDAP for authentication, and its hostname is 'sogo.meadorandco.com'

Using the instructions in 'SOGo Native Microsoft Outlook Configuration
2.0.7.pdf'  pg.9 [11]

sudo apt-get update
sudo apt-get install samba4

I installed Samba4 as a "domain controller"  That may be the problem, as my
network is a WORKGROUP only, but I have named it MEADORANDCO.COM (similar to a
domain)

I have no "other" domain services on the network.

It gave me an error:

Setting up samba4 (4.0.1+dfsg1-1) ...
ERROR(<class 'samba.provision.ProvisioningError'>): Provision failed -
ProvisioningError: guess_names: Realm 'MEADORANDCO.COM' must not be equal to
short domain name 'MEADORANDCO.COM'!
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/domain.py", line 398, in
run
    use_rfc2307=use_rfc2307, skip_sysvolacl=False)
  File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line
1892, in provision
    sitename=sitename, rootdn=rootdn)
  File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line
568, in guess_names
    raise ProvisioningError("guess_names: Realm '%s' must not be equal to short
domain name '%s'!" % (realm, domain))
dpkg: error processing samba4 (--configure):
 subprocess installed post-installation script returned error exit status 255
No apport report written because MaxReports is reached already
                                                              Processing
triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 samba4
E: Sub-process /usr/bin/dpkg returned an error code (1)

Reading the configuration PDF, I ran the following command:

sudo sed --in-place 'N; s/Package: samab4\nStatus: install ok
half-configured/Package: samba4\nStatus: install ok installed/;'
/var/lib/dpkg/status

That returned no error.

However, when I installed the "other" packages, I received the SAME error, as
follows:

sudo apt-get install openchangeserver \
> sogo-openchange \
> openchangeproxy \
> openchange-ocsmanager \
> openchange-rpcproxy

ERROR(<class 'samba.provision.ProvisioningError'>): Provision failed -
ProvisioningError: guess_names: Realm 'MEADORANDCO.COM' must not be equal to
short domain name 'MEADORANDCO.COM'!
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/domain.py", line 398, in
run
    use_rfc2307=use_rfc2307, skip_sysvolacl=False)
  File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line
1892, in provision
    sitename=sitename, rootdn=rootdn)
  File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line
568, in guess_names
    raise ProvisioningError("guess_names: Realm '%s' must not be equal to short
domain name '%s'!" % (realm, domain))
dpkg: error processing samba4 (--configure):
 subprocess installed post-installation script returned error exit status 255
No apport report written because MaxReports is reached already
                                                              dpkg: dependency
problems prevent configuration of openchangeproxy:
 openchangeproxy depends on samba4 (>= 4.0.0~); however:
  Package samba4 is not configured yet.
dpkg: error processing openchangeproxy (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency
problems prevent configuration of openchangeserver:
 openchangeserver depends on samba4 (>= 4.0.0~); however:
  Package samba4 is not configured yet.
 openchangeserver depends on openchangeproxy (= 1:2.0.r3669-1~inverse1.0);
however:
  Package openchangeproxy is not configured yet.
dpkg: error processing openchangeserver (--configure):
 dependency problems - leaving unconfigured
Setting up javascript-common (8) ...
No apport report written because MaxReports is reached already
                                                              Setting up
libapache2-mod-wsgi (3.3-4build1) ...

(and, after configuring the Python scripts without error)

Errors were encountered while processing:
 samba4
 openchangeproxy
 openchangeserver
E: Sub-process /usr/bin/dpkg returned an error code (1)

I suspect that I can simply edit the 'smb.conf' file and rerun the 'sed'
command.
-- 
[email protected]
https://inverse.ca/sogo/lists

Reply via email to