[horde] Extending userid's in Horde by a realm

sca at andreasschulze.de sca at andreasschulze.de
Thu Jun 12 08:42:59 UTC 2014


Stephan Jacob:

> I tried this but after log in I get a blank page

bank pages are mostly a sign for a syntax error in a php script.
check "php -l $phpfile"

http://www.horde.org/apps/horde/docs/INSTALL#configuring-horde  
describe it more detailed.

here is my version as full example:
$ cat  ~horde/config/hooks.local.php
<?php
class Horde_Hooks
{
     public function authusername($userId, $toHorde)
     {
         if ($toHorde) {
             if (!Horde_String::isLower($userId, 'UTF-8')) {
                 $GLOBALS['notification']->push('Ihre Benutzerkennung  
enthielt Großbuchstaben. Diese wurden in kleine Buchstaben  
umgewandelt.');
             }
             $ret = Horde_String::lower($userId);
         } else {
             $ret = $userId;
         }

         return $ret;

         // Kurzversion ohne Meldung
         // return $toHorde ? Horde_String::lower($userId) : $userId;
     }
}




More information about the horde mailing list