bug in GNUsocial with ldapauthentication plugin? Or misconfiguration?
OpenPublic

Description

We would like to use the ldapauthentication plugin for a GNU social installation.

We followed the README at the plugin docs, but we can't get it to work. We get the following error:

[Thu Sep 04 13:01:43 2014] [error] [client 10.10.10.1] PHP Fatal error:  Cannot access parent:: when current class scope has no parent in /var/www/mainline/plugins/LdapCommon/LdapCommon.php on line 98

We think our config is ok, but it could be a config problem as well. Here it is (security sensitive info marked as HIDDEN).

<?php
if (!defined('GNUSOCIAL')) { exit(1); }

$config['site']['name'] = 'Microblog';

$config['site']['server'] = 'HIDDEN';
$config['site']['path'] = false;

$config['site']['ssl'] = 'never';

$config['site']['fancy'] = true;

$config['db']['database'] = 'mysqli://gnusocial:HIDDEN.@localhost/social';

$config['db']['type'] = 'mysql';

//$config['site']['profile'] = 'public';

$config['site']['theme'] = 'neo-blue';

addPlugin('ldapAuthentication', array(
  'provider_name'=>'ldap',
  'authoritative'=>true,
  'autoregistration'=>true,
  'password_changeable'=>false,
  'email_changeable'=>false,
  'version'=>3,
  'binddn'=>'HIDDEN,
  'bindpw'=>'HIDDEN',
  'basedn'=>'HIDDEN',
  'host'=>array('ldap'),
    'attributes'=>array(
    'username'=>'uid',
    'nickname'=>'uid',
    'email'=>'mail',
    'fullname'=>'description'
    )
  ));
?>
faboolous created this task.Via WebSep 4 2014, 7:14 PM
faboolous added a subscriber: faboolous.
faboolous added a project: GNU social

Add Comment