Results 1 to 4 of 4

Thread: MDM Plugin and SSL

  1. #1
    Junior Member
    Join Date
    Oct 2010
    Location
    Düsseldorf, Germany
    Posts
    21

    Red face MDM Plugin and SSL

    Hello,

    I hope my english is not to bad After day's of struggeling to make mdm plugin work I found the soloution for me.
    I gott the error "cant connect to z-push server" the reason was the certificate (letsencrypt).

    The first problem is, when connecting over localhost or 127.0.0.1 the certificate is not valid because of the not matching domain name.

    After searching the web for hours and hours here the tip for all with the same problem:

    Edit /usr/share/kopano-webapp/plugins/mdm/php/class.pluginmdmmodule.php
    Search for "return new SoapClient"
    and add "'stream_context'=> stream_context_create(array('ssl'=> array('verify_peer'=>false,'verify_peer_name'=>fal se)))"
    Code:
    		
    return new SoapClient(null, array(
    			'location' => $url,
    			'uri' => $this->server,
    			'trace' => 1,
    			'login' => $this->username,
    			'password' => $this->password,
    			'stream_context'=> stream_context_create(array('ssl'=> array('verify_peer'=>false,'verify_peer_name'=>false)))
    		));
    Now mdm accept every certificate
    Maybe a parameter in the config would help e.g.
    Code:
    define('PLUGIN_MDM_SERVER_ACCEPT_ALL_CERTS',true)
    Hope it helps

    Thomas
    Last edited by tommi; 22-03-2017 at 12:08 PM.

  2. #2
    Zarafa

    Join Date
    Jan 2009
    Location
    Hanover, Germany
    Posts
    1,889
    Why didn't you change PLUGIN_MDM_SERVER to the hostname, that your certificate is created for?
    Regards Felix

    How to get Kopano

    Zarafa ALPHA/BETA/RC feedback in BETA forum please.
    Zarafa IRC chat: irc.freenode.com > #zarafa
    Zarafa documentation: http://documentation.zarafa.com/

    No support via PM! Please contact our sales team for an offer if you want my full attention.

  3. #3
    Junior Member
    Join Date
    Oct 2010
    Location
    Düsseldorf, Germany
    Posts
    21
    Quote Originally Posted by fbartels View Post
    Why didn't you change PLUGIN_MDM_SERVER to the hostname, that your certificate is created for?
    I tried but it doesn't works. I get SSL errors "140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown" only from the Server (localhost).
    Maybe an redirection problem.

    If using a Self-signed certificate only the "Hack" will work.

    Thomas

  4. #4
    Zarafa

    Join Date
    Jan 2009
    Location
    Hanover, Germany
    Posts
    1,889
    Yes, self signed will also be a problem this way, but if your distro trusts the letsencrypt ca then this should work.

    For all other cases going to localhost without ssl is in general also no problem.
    Regards Felix

    How to get Kopano

    Zarafa ALPHA/BETA/RC feedback in BETA forum please.
    Zarafa IRC chat: irc.freenode.com > #zarafa
    Zarafa documentation: http://documentation.zarafa.com/

    No support via PM! Please contact our sales team for an offer if you want my full attention.

Similar Threads

  1. Migrate from unix plugin to DB plugin
    By pieter96 in forum Installation, Configuration and Maintenance
    Replies: 1
    Last Post: 14-10-2013, 09:57 AM
  2. GPG plugin
    By graylion in forum Zarafa WebApp Plugins
    Replies: 0
    Last Post: 19-08-2012, 04:31 PM
  3. Migrate user from DB-Plugin to LDAP-Plugin
    By borishalter in forum Migration Archives
    Replies: 3
    Last Post: 30-03-2010, 12:36 AM
  4. Migrate user from DB-Plugin to LDAP-Plugin
    By borishalter in forum Installation and Configuration Archives
    Replies: 0
    Last Post: 08-03-2010, 05:14 PM
  5. Migration from db user plugin to LDAP user plugin
    By mpr90 in forum Migration Archives
    Replies: 0
    Last Post: 26-02-2010, 08:36 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •