OK. Let's grab the bull from the horns.
I do these:
In the samba 4.1.11 folder that was already build and provisioned:
$ ldconfig
Then in the openchange folder:
$ ./autogen.sh
$ ./configure --prefix=/usr/local/samba
Then I get this output:
===============================================================
OpenChange Configuration (Please review)
* OpenChange Libraries:
- libmapi (C library): yes
Thread support: yes (pthread)
- libmapi++ (C++ library): yes
- libmapiadmin: yes
- libocpf: yes
* OpenChange Server:
- mapiproxy: yes
* OpenChange mapistore backends:
- backends dependencies goes here
* OpenChange Tools:
- openchangeclient: yes
- mapiprofile: yes
- openchangepfadmin: yes
- exchange2mbox: yes
- exchange2ical: yes
- openchangemapidump: yes
- schemaIDGUID: yes
* Unit and functional testing
- mapitest: yes
- mapitest (subunit): no
- openchange-testsuite: no
- coverage tests: no
* OpenChange Documentation: yes
* OpenChange Bindings:
- Qt4: no
* Installation prefix: /usr/local/samba
===============================================================
Then, in the openchange folder I do:
$ make
$ make install
$ ldconfig
Then, since I already provisioned the samba 4, I skip the samba 4
provisioning step.
Then, I create a tempuser in samba4:|
$ ./samba-tool user add testuser 'openchange2!'|
Then I add the config lines to the smb.conf file:
|### Configuration required by OpenChange server ###
dcerpc endpoint servers = +epmapper, +mapiproxy
dcerpc_mapiproxy:server = true
dcerpc_mapiproxy:interfaces = exchange_emsmdb, exchange_nsp, exchange_ds_rfr
### Configuration required by OpenChange server ###|
Then I create the database and grant rights in SQL:
|$ mysql -u root
mysql> CREATE USER 'openchange-user'@'localhost' IDENTIFIED BY 'openchange$123';
mysql> GRANT ALL PRIVILEGES ON `openchange`.* TO 'openchange-user'@'localhost'
WITH GRANT OPTION;
mysql> FLUSH PRIVILEGES;|
Then I provision openchange from the build folder:
$ ./setup/openchange_provision --standalone
Then I create the SQL database with the SQL server running:
$ ./setup/openchange_provision --openchangedb --openchangedb-uri
mysql://openchange-user:'openchange$123'@localhost/openchange
Setting up openchange db
[+] Public Folders
===================
* 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)
Then I add the sql config to the smb.cnf file:
mapistore:namedproperties = mysql
namedproperties:mysql_user = openchange-user
namedproperties:mysql_pass = openchange$123
namedproperties:mysql_host = localhost
namedproperties:mysql_db = openchange
mapistore:indexing_backend =
mysql://openchange-user:openchange$123@localhost/openchange
mapiproxy:openchangedb =
mysql://openchange-user:openchange$123@localhost/openchange
Then I extend the users:
./setup/openchange_newuser --create testuser
./setup/openchange_newuser --create Administrator
And when I run the samba4, it fails when loading the mapiproxy exndpoint
as I described before:
dcesrv_init_context: failed to find endpoint server = 'mapiproxy'
task_server_terminate: [Failed to startup dcerpc server task]
samba_terminate: Failed to startup dcerpc server task
I do not know why this happens. It looks very much like a build or
dependency error, like samba4 does not know where the mapiproxy files
are, but I do not know how to fix it. And I am out of options too. I am
more than willing to test the openchange, but the documentation starts
from scratch with samba 4. There has to be a way to compile the
openchange against an already functional samba4. Otherwise we are
running all upwind. A lot of people already deployed samba 4 in
production without openchange, but since this is opensource, they will
want to plug in to openchange and they need to know how to do it!
On 08/13/2014 08:26 AM, [email protected] wrote:
When I start the samba process, I get the
mapiproxy error bellow. I provisioned the server and I extended the
administrator user. All good, but no mapiproxy... I did ldconfig as it
is described in the howto. The only difference is that I use an
already provisioned samba4. I do not know what I am doing wrong. I
even did the build twice by using all the provided instructions.
dcesrv_init_context: failed to find endpoint server = 'mapiproxy'
task_server_terminate: [Failed to startup dcerpc server task]
samba_terminate: Failed to startup dcerpc server task
lpcfg_load: refreshing parameters from /usr/local/samba/etc/smb.conf
params.c:pm_process() - Processing configuration file
"/usr/local/samba/etc/smb.conf"
samba version 4.1.11 started.
Copyright Andrew Tridgell and the Samba Team 1992-2013
GENSEC backend 'gssapi_spnego' registered
GENSEC backend 'gssapi_krb5' registered
GENSEC backend 'gssapi_krb5_sasl' registered
GENSEC backend 'sasl-DIGEST-MD5' registered
GENSEC backend 'schannel' registered
GENSEC backend 'spnego' registered
GENSEC backend 'ntlmssp' 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
PROCESS_MODEL 'prefork' registered
PROCESS_MODEL 'onefork' 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.
SHARE backend [ldb] 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]
samba_terminate: Failed to startup dcerpc server task
_______________________________________________
devel mailing list
[email protected]
http://mailman.openchange.org/listinfo/devel
--
*BlackPenguin ADMIN | IT SERVICES*
[email protected] | http://www.blackpenguin.org/itservices
h. 001.403.266.1513 | c. 001.403.919.5699
_______________________________________________
devel mailing list
[email protected]
http://mailman.openchange.org/listinfo/devel