This manual is deprecated. Please visit https://groupoffice.readthedocs.io for the latest documentation.

Difference between revisions of "Talk:IMAP or LDAP authentication"

From Group-Office Groupware and CRM Documentation
Jump to: navigation, search
Line 3: Line 3:
 
<code>
 
<code>
 
  $ grep ldap ../../config.php
 
  $ grep ldap ../../config.php
$config['register_modules_read']="summary,tasks,ldapauth,calendar,email,todos,addressbook,notes,files,projects,gallery,bookmarks,comics,search";
+
$config['register_modules_read']="summary,tasks,ldapauth,calendar,email,todos,addressbook,notes,files,projects,gallery,bookmarks,comics,search";
$config['dav_auth']="%ldap_dav_auth%";
+
$config['dav_auth']="%ldap_dav_auth%";
$config['ldap_host']='ldap';
+
$config['ldap_host']='ldap';
$config['ldap_user']='uid=groupoffice,ou=Services,o=x,c=y';
+
$config['ldap_user']='uid=groupoffice,ou=Services,o=x,c=y';
$config['ldap_pass']='kuku';
+
$config['ldap_pass']='kuku';
$config['ldap_basedn']='o=Family,o=x,c=y';
+
$config['ldap_basedn']='o=Family,o=x,c=y';
$config['ldap_peopledn']='ou=People,' . $config['ldap_basedn'];
+
$config['ldap_peopledn']='ou=People,' . $config['ldap_basedn'];
$config['ldap_groupsdn']='ou=Groups,' . $config['ldap_basedn'];
+
$config['ldap_groupsdn']='ou=Groups,' . $config['ldap_basedn'];
  
 
test.php doesn't work due to session_start, so I changed in Group-Office.php:
 
test.php doesn't work due to session_start, so I changed in Group-Office.php:

Revision as of 17:22, 6 July 2009

Using 3.0.2 public, I can't get this to work (yet). Inside the modules/ldapauth folder ....

$ grep ldap ../../config.php
$config['register_modules_read']="summary,tasks,ldapauth,calendar,email,todos,addressbook,notes,files,projects,gallery,bookmarks,comics,search";
$config['dav_auth']="%ldap_dav_auth%";
$config['ldap_host']='ldap';
$config['ldap_user']='uid=groupoffice,ou=Services,o=x,c=y';
$config['ldap_pass']='kuku';
$config['ldap_basedn']='o=Family,o=x,c=y';
$config['ldap_peopledn']='ou=People,' . $config['ldap_basedn'];
$config['ldap_groupsdn']='ou=Groups,' . $config['ldap_basedn'];

test.php doesn't work due to session_start, so I changed in Group-Office.php:

      51 if ($_SERVER['REMOTE_ADDR'])
      52  {
      53     session_name('groupoffice');
      54     session_start();
      55  }


I add a dump of the modules' class_path into test.php and ldapauth is not loaded

N: /www/pkg/groupoffice-test/modules/summary/classes/
N: /www/pkg/groupoffice-test/modules/tasks/classes/
N: /www/pkg/groupoffice-test/modules/imapauth/classes/
N: /www/pkg/groupoffice-test/modules/calendar/classes/
N: /www/pkg/groupoffice-test/modules/email/classes/
N: /www/pkg/groupoffice-test/modules/addressbook/classes/
N: /www/pkg/groupoffice-test/modules/notes/classes/
N: /www/pkg/groupoffice-test/modules/files/classes/
N: /www/pkg/groupoffice-test/modules/users/classes/
N: /www/pkg/groupoffice-test/modules/groups/classes/
N: /www/pkg/groupoffice-test/modules/tools/classes/
N: /www/pkg/groupoffice-test/modules/modules/classes/

Resulting in:

PHP Fatal error: require_once(): Failed opening required 'ldapauth.class.inc.php' (include_path='.:/usr/local/lib/php:/usr/local/share/pear') in /www/3rd/groupoffice/groupoffice-com-3.02-stable-3/modules/ldapauth/test.php on line 15

(I don't have imapauth enabled, but do have ldapauth enabled as admin - so this must be all modules, not loaded modules. ldapauth is not being "found"?)