Estou tentando instalar o sogo com o openchange ativado no ubuntu 14.04
É uma nova instalação.
Eu instalei o ubuntu com o samba, e depois do login eu atualizei o samba para a versão do samba 4
apt-get install --only-upgrade samba
Eu testei a configuração do samba com
smbclient -L localhost -U%
Eu mostro a saída desejada.
Então eu instalei o sogo e o configurei com o meu servidor de e-mail. Até lá tudo funciona bem.
Estou loggin com sucesso para sogo
e tenho todos os usuários de e-mails.
# apt-get install mysql-server
# apt-get install apache2 php5
# a2enmod proxy; a2enmod proxy_http; a2enmod headers; a2enmod rewrite; a2dismod reqtimeout; a2enmod proxy_balancer;
# service apache2 restart
# apt-get install sogo sogo-activesync sope4.9-gdl1-mysql
Configuração do samba4 e instalação do openchange
# cd /etc/samba/
# mv smb.conf smb.conf.orig
# mv /var/lib/samba/private/ /var/lib/samba/private.back
# samba-tool domain provision --interactive
Realm [SUBDOMAIN.DOMAIN.COM]:
Domain [SUBDOMAIN]:
Server Role (dc, member, standalone) [dc]:
DNS backend (SAMBA_INTERNAL, BIND9_FLATFILE, BIND9_DLZ, NONE) [SAMBA_INTERNAL]:
DNS forwarder IP address (write 'none' to disable forwarding) [IP_ADDRESS_OF_MY_DNS_SERVER]:
Administrator password:
Retype password:
..............
Server Role: active directory domain controller
Hostname: HOSTNAMLE
NetBIOS Domain: SUBDOMAIN
DNS Domain: subdomain.domain.com
DOMAIN SID: S-1-5-21-1239474844-1241229800-1059178920
# samba-tool user setexpiry Administrator --noexpiry
# vim /etc/resolv.conf
nameserver 127.0.0.1
domain subdomain.domain.com
search subdomain.domain.com
# service smbd restart
# service nmbd restart
# apt-get install openchangeserver sogo-openchange openchangeproxy openchange-ocsmanager openchange-rpcproxy python-mysqldb
Em seguida, segui a configuração de abertura deste link: Configurando o servidor
# export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/site-packages
# samba-tool user add openuser 'openuser1!'
User 'openuser' created successfully
# vim /etc/samba/smb.conf
### Configuration required by OpenChange server ###
dcerpc endpoint servers = +epmapper, +mapiproxy, +dnsserver
dcerpc_mapiproxy:server = true
dcerpc_mapiproxy:interfaces = exchange_emsmdb, exchange_nsp, exchange_ds_rfr
dsdb:schema update allowed = true
### Configuration required by OpenChange server ###
# service smbd restart
# service nmbd restart
# openchange_provision --standalone
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
[+] Step 11: Extend existing Samba classes and attributes
[+] Step 12: Generic Exchange configuration objects
[+] Step 13: Exchange Organization objects
[+] Step 14: Update generic Exchange configuration objects
[SUCCESS] Done!
[+] Step 1: Exchange Samba registration
[SUCCESS] Done!
[+] Step 1: Register Exchange Samba as the main server
[SUCCESS] Done!
# openchange_provision --openchangedb
Setting up openchange db
* Public Folder Root : 0x0100000000000001 (72057594037927937)
* IPM_SUBTREE : 0x0200000000000001 (144115188075855873)
* 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 (432345564227567617)
* SCHEDULE+ FREE BUSY : 0x0700000000000001 (504403158265495553)
* EX:/o=First Organization/ou=First Administrative Group: 0x0800000000000001 (576460752303423489)
* Events Root : 0x0900000000000001 (648518346341351425)
Eu criei o banco de dados openchange e criei o usuário openchnagemysql com êxito.
# vim /etc/samba/smb.conf
mapistore:namedproperties = mysql
namedproperties:mysql_user = openchangemysql
namedproperties:mysql_pass = openchangemysqlpass
namedproperties:mysql_host = localhost
namedproperties:mysql_db = openchange
mapistore:indexing_backend = mysql://openchangemysql:openchangemysqlpass$@localhost/openchange
mapiproxy:openchangedb = mysql://openchangemysql:openchangemysqlpass$@localhost/openchange
# openchange_newuser --create openuser
[+] User openuser extended and enabled
root@sogochange:~# openchange_newuser --create Administrator
[+] User Administrator extended and enabled
O problema está lá
# samba -d3 -i -M single
lpcfg_load: refreshing parameters from /etc/samba/smb.conf
samba version 4.3.8-Ubuntu started.
Copyright Andrew Tridgell and the Samba Team 1992-2015
GENSEC backend 'gssapi_spnego' registered
GENSEC backend 'gssapi_krb5' registered
GENSEC backend 'gssapi_krb5_sasl' registered
GENSEC backend 'spnego' registered
GENSEC backend 'schannel' registered
GENSEC backend 'naclrpc_as_system' registered
GENSEC backend 'sasl-EXTERNAL' registered
GENSEC backend 'ntlmssp' registered
GENSEC backend 'ntlmssp_resume_ccache' registered
GENSEC backend 'http_basic' registered
GENSEC backend 'http_ntlm' registered
GENSEC backend 'krb5' registered
GENSEC backend 'fake_gssapi_krb5' registered
NTPTR backend 'simple_ldb'
NTVFS backend 'default' for type 1 registered
NTVFS backend 'posix' for type 1 registered
NTVFS backend 'unixuid' for type 1 registered
NTVFS backend 'unixuid' for type 3 registered
NTVFS backend 'unixuid' for type 2 registered
NTVFS backend 'cifs' for type 1 registered
NTVFS backend 'smb2' for type 1 registered
NTVFS backend 'simple' for type 1 registered
NTVFS backend 'cifsposix' for type 1 registered
NTVFS backend 'default' for type 3 registered
NTVFS backend 'default' for type 2 registered
NTVFS backend 'nbench' for type 1 registered
PROCESS_MODEL 'single' registered
PROCESS_MODEL 'standard' registered
AUTH backend 'sam' registered
AUTH backend 'sam_ignoredomain' registered
AUTH backend 'anonymous' registered
AUTH backend 'winbind' registered
AUTH backend 'winbind_wbclient' registered
AUTH backend 'name_to_ntstatus' registered
AUTH backend 'unix' registered
SHARE backend [classic] registered.
ldb_wrap open of privilege.ldb
samba: using 'single' process model
DCERPC endpoint server 'rpcecho' registered
DCERPC endpoint server 'epmapper' registered
DCERPC endpoint server 'remote' registered
DCERPC endpoint server 'srvsvc' registered
DCERPC endpoint server 'wkssvc' registered
DCERPC endpoint server 'unixinfo' registered
DCERPC endpoint server 'samr' registered
DCERPC endpoint server 'winreg' registered
DCERPC endpoint server 'netlogon' registered
DCERPC endpoint server 'dssetup' registered
DCERPC endpoint server 'lsarpc' registered
DCERPC endpoint server 'backupkey' registered
DCERPC endpoint server 'spoolss' registered
DCERPC endpoint server 'drsuapi' registered
DCERPC endpoint server 'browser' registered
DCERPC endpoint server 'eventlog6' registered
DCERPC endpoint server 'dnsserver' registered
dcesrv_init_context: failed to find endpoint server = 'mapiproxy'
task_server_terminate: [Failed to startup dcerpc server task]
/usr/sbin/smbd: smbd version 4.3.8-Ubuntu started.
/usr/sbin/smbd: Copyright Andrew Tridgell and the Samba Team 1992-2015
samba_terminate: Failed to startup dcerpc server task
Meu erro está aí
dcesrv_init_context: failed to find endpoint server = 'mapiproxy'
task_server_terminate: [Failed to startup dcerpc server task]
/usr/sbin/smbd: smbd version 4.3.8-Ubuntu started.
/usr/sbin/smbd: Copyright Andrew Tridgell and the Samba Team 1992-2015
samba_terminate: Failed to startup dcerpc server task
Deveria ser assim: Saída: Iniciando o OpenChange com o Samba 4.0.0 -rc5 server
Estou bloqueado por dois dias.
Eu segui cuidadosamente os passos.
Eu também tenho algumas perguntas:
Devo configurar os computadores com o domínio (AD / samba) para usar o Outlook?
Como testar a conexão do Outlook com meu servidor de e-mail?