wiki:AdminHorde
close Warning: Can't synchronize with repository "keplertools" (/srv/svn/keplertools does not appear to be a Subversion repository.). Look in the Trac log for more information.

Version 4 (modified by bau, 15 years ago) ( diff )

--

Anpassungen am Horde3 Framework

Datenbankeintrag in der MySQL-Datenbank

Datenbank horde Tabelle horde_prefs

pref_uid kürzel pref_scope turba pref_name addressbooks pref_value schule

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.