오픈체인지 설치 오류

오픈체인지 설치 오류

우분투 14.04에서 openchange를 활성화하여 새로 설치하려고 합니다.

삼바를 사용하여 우분투를 설치했습니다. 로그인 후 삼바를 삼바 4 버전으로 업그레이드했습니다.

apt-get install --only-upgrade samba

삼바 구성을 테스트했습니다.

smbclient -L localhost -U%

원하는 출력이 표시됩니다.

그런 다음 sogo를 설치하고 메일 서버로 구성했습니다. 거기까지는 모든 것이 잘 작동합니다. 성공적으로 로그인되었으며 sogo모든 메일 사용자가 있습니다.

# 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

Samba4 구성 및 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

그런 다음 이 링크에서 openchnage 구성을 수행했습니다.서버 구성

    # 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)

openchange 데이터베이스를 생성하고 openchnagemysql 사용자를 성공적으로 생성했습니다.

# 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

문제는 거기에 있다

# 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

내 실수는 거기에 있어

  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

다음과 같아야 합니다.출력: Samba 4.0.0-rc5 서버를 사용하여 OpenChange 시작

이틀동안 차단됐는데, 조치사항을 꼼꼼히 따랐습니다. 몇 가지 질문이 더 있습니다. Outlook을 사용하려면 컴퓨터를 도메인(AD/samba)으로 구성해야 합니까? 내 메일 서버에 대한 Outlook의 연결을 어떻게 테스트합니까?

답변1

Samba 설치와 동일한 위치에 OpenChange 모듈을 설치해야 합니다. 그렇지 않으면 Samba가 OpenChange 모듈을 찾을 수 없습니다. OpenChange 구성에 --prefix=/usr을 전달하면 문제가 해결됩니다.

Samba 시스템 버전에 대해 OpenChange를 구축하면 Samba와 긴밀하게 연결되어 있기 때문에 문제가 발생할 가능성이 더 높습니다. 소스에서 Samba를 빌드하면(OpenChange 디렉터리에서 "make samba4" 사용) 성공할 가능성이 더 높습니다.

관련 정보