From: Paul L. <pa...@sq...> - 2006-10-11 07:47:40
|
On 10/10/06, Paul Lesniewski <pa...@sq...> wrote: > On 10/10/06, Jan Hugo Prins <jh...@jh...> wrote: > > Paul Lesniewski wrote: > > > On 10/10/06, Jan Hugo Prins <jh...@jh...> wrote: > > >> Paul Lesniewski wrote: > > >> > > >> > Can you elaborate as to exactly which settings differ per installation > > >> > in this regard? The whole ldap server array? > > >> > > >> Well, they all connect to the same LDAP server but they all have there > > >> addressbook / accounts within a different OU in the LDAP database. So > > >> the settings that get changed are within the LDAP array. Both the OU and > > >> the name of the address book. > > > > > > I would try this in the $virtualDomains array for each host (note that > > > you will still have to duplicate the hostname, but I would think > > > that's not a problem): > > > > > > 'exampledomain' => array( > > > 'ldap_server' => array(array('host' => 'your.ldap.host.com', > > > 'base' => 'ou=bla_bla,o=bla.bla', 'port' => 442)), > > > 'domain' => 'exampledomain.net', > > > 'org_name' => 'Example Domain', > > > 'org_logo' => '../images/your_logo.gif', > > > 'org_title' => '(isset($_SESSION["username"]) ? > > > $_SESSION["username"] . " - Mail" : "Mail")', > > > 'settingsWithEmbeddedPHP' => array( > > > 'org_title', > > > ), > > > ), > > > > > > No guarantees as I've never tried it, but it's my best guess. Please > > > reply if it works. > > > > > > -paul > > It indeed works like a charm. Thanks a lot. Can you verify that it still works if you explicitly add an index in the array (note the zero)? 'ldap_server' => array( 0 => array('host' => 'ldap.example.com', 'base' => 'ou=member_directory,o=example.com', 'port' => 389 ) ), Thanks, Paul |