| Version 3 (modified by , 15 years ago) ( diff ) |
|---|
Anpassungen am Horde3 Framework
Adressbuch
In der Mysql-Datenbank Horde wurde die Tabelle Kepler_Adressbuch angelegt:
- object_id
- int(11)
- auto_increment
- object_name
- varchar(255)
- object_alias
- varchar(32)
- object_email
- varchar(255)
Per Script wird täglich die eMail-Verteiler-Liste aus /etc/aliases in die Datenbank übetragen.
In /usr/share/horde3/turba/config/sources.php wurde die LDAP-Anbindung des Kepler-Adressbuchs gelöscht und dafür die Anbindung an die MySQL-Source eingefügt:
$cfgSources['schule'] = array(
'title' => _("Kepler-Adressbuch"),
'type' => 'sql',
// The default connection details are pulled from the Horde-wide
// SQL connection configuration.
//
// The old example illustrates how to use an alternate database
// configuration.
//
// New Example:
'params' => array_merge($conf['sql'], array('table' => 'Kepler_Adressbuch')),
'map' => array(
'__key' => 'object_id',
'name' => 'object_name',
'email' => 'object_email',
'alias' => 'object_alias',
),
'search' => array(
'name',
'email'
),
'strict' => array(
'object_id',
),
'public' => true,
'readonly' => true,
'admin' => array(),
'export' => false
);
Noch besser: Zugriff auf das LDAP-Verzeichnis (ou=adressbook):
/**
* Schule
*/
$cfgSources['schule'] = array(
'title' => _("Kepler Adressbuch (ldap)"),
'type' => 'ldap',
'params' => array(
'server' => 'localhost',
'port' => 389,
'tls' => false,
'root' => 'ou=adressbook,dc=kg-fds,dc=de',
'dn' => array('cn'),
'objectclass' => 'inetOrgPerson',
'filter' => '',
'charset' => 'iso-8859-1'
),
'map' => array(
'__key' => 'uid',
'name' => 'cn',
'email' => 'mail'
),
'search' => array(
'name',
'email'
),
'strict' => array(
'dn'
),
'public' => true,
'readonly' => true,
'export' => false
);
Note:
See TracWiki
for help on using the wiki.