[imp] Reading default identity value from an ldap attribute

Ozhan Karaman ozhankaraman at yahoo.com
Thu Feb 23 06:53:30 PST 2006


Hi;
  I read the user contributed preferences page and modified hooks.php,  prefs.php files but i cannot change the default identity value. It  still remains same default value. My test codes are below are there any  problems on my test code ?? Are there any other configuration files  which i must change??
  
  Thanks
  Özhan
  
  horde/config/prefs.php
  $_prefs['from_addr'] = array(
      'value' => '',
      'locked' => true,
      'shared' => true,
      'type' => 'text',
      'hook' => 'true',
      'desc' =>  _("Your From: address:")
  );
  
  horde/config/hooks.php
  if (!function_exists('_prefs_hook_from_addr')) {
  
     function _prefs_hook_from_addr($user = null)
       {
            echo "TEST TEST";
            $emailname = "zada zuda";
  
            return $emailname;
       }
  }
  
  
  
  
  
  
  
Craig White <craigwhite at azapple.com> wrote:  On Mon, 2006-02-20 at 08:20 -0800, Ozhan Karaman wrote:
> Hi;
>  I am using horde 3.0.9 and imp 4.0.4 releases. I want to know if its  possible to fetch default identity value from ldap server. All accounts  are stored in ldap server and main login page authenticates via ldap.  Fetching default identity from ldap attributes are important for me  because our usernames does not have the domain name part, it only got  usernames. Example attributes for my ldap server are below
>   
>   cn=Ozhan Karaman
>   mail=ozhankaraman at abc.com
>   uid=ozkaraman
>   
>   If it is possible to get default identity value from mail attribute it solves my curent issue.
>   
>   Thanks for help
----
hooks.php

for some ideas, check out the horde wiki

http://wiki.horde.org/CustomizingPreferences?referrer=HowTo

Craig

-- 
IMP mailing list - Join the hunt: http://horde.org/bounties/#imp
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: imp-unsubscribe at lists.horde.org


		
---------------------------------
Brings words and photos together (easily) with
 PhotoMail  - it's free and works with Yahoo! Mail.


More information about the imp mailing list