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
(New page: 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...)
 
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
Using 3.0.2 public, I can't get this to work (yet). Inside the modules/ldapauth folder ....
+
Using 3.0.2 public, I couldn't get this to work (initially). Inside the modules/ldapauth folder ....
  
 
  $ 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']='pass';
$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:
+
 
+
      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
 
I add a dump of the modules' class_path into test.php and ldapauth is not loaded
Line 35: Line 26:
 
  N: /www/pkg/groupoffice-test/modules/modules/classes/
 
  N: /www/pkg/groupoffice-test/modules/modules/classes/
  
Resulting in
+
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
 
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"?)
 
(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"?)
 +
 +
Put a "print" at the top of ldapauth.class.inc.php and imapauth.class.inc.php - imap's prints, ldap's doesn't. Hmmm.
 +
 +
Checked the table go_modules ... no ldapauth listed. In mysql I did:
 +
 +
insert values('ldapauth', 0, 9, 0, 414, 415) into go_modules;
 +
 +
... worked.
 +
 +
 +
'''Only complaints so far:'''
 +
# Email requires entering a password - should default to LDAP password.
 +
# It seems the password in GO overrides that from LDAP. A failed internal auth should fall back to LDAP auth.

Latest revision as of 18:10, 6 July 2009

Using 3.0.2 public, I couldn't get this to work (initially). 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']='pass';
$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'];

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"?)

Put a "print" at the top of ldapauth.class.inc.php and imapauth.class.inc.php - imap's prints, ldap's doesn't. Hmmm.

Checked the table go_modules ... no ldapauth listed. In mysql I did:

insert values('ldapauth', 0, 9, 0, 414, 415) into go_modules;

... worked.


Only complaints so far:

  1. Email requires entering a password - should default to LDAP password.
  2. It seems the password in GO overrides that from LDAP. A failed internal auth should fall back to LDAP auth.