[horde] Re: trying to ge auth ldap to work

Edwin L. Culp eculp at encontacto.net
Tue Mar 22 15:03:30 PST 2005


Quoting alan walters <alan at aillweecave.ie>:

> Can anyone assist me with trouble sh0oting this issue
>
> I get 8 entries returned but receive no information????
>

Alan, are you talking about the bottom of the page under the user 
search where you would edit or delete users?

I just realized that I am seeing that too.  I also use the same hook 
and I just tested it to add another user and I see the user in my ldap 
directory but not in User Admin.  Strange.

ed


>
>
>
>
> Notice: Undefined index: mail in /usr/share/php/Horde/Auth/ldap.php 
> on line 328
>
>
>
>
>
>
>
> if (!function_exists('_horde_hook_authldap')) {
>
>    function _horde_hook_authldap($userID, $credentials = null)
>
>    {
>
>        $entry['dn'] = 'mail=' . $userID . 
> ',vd=radiowave.net,o=clients,dc=radiowave,dc=net';
>
>        if (isset($credentials) && isset($credentials['user_fullname'])) {
>
>            $entry['mail'] = $credentials['user_fullname'];
>
>        } else {
>
>            $entry['mail'] = $userID;
>
>        }
>
>        $entry['objectclass'][0] = 'top';
>
>        $entry['objectclass'][1] = 'VirtualMailAccount';
>
>        $entry['objectclass'][2] = 'Vacation';
>
>        $entry['objectclass'][3] = 'amavisAccount';
>
>        $entry['objectclass'][3] = 'VirtualForward';
>
>        $entry['mail'] = $userID;
>
>        $entry['vdHome'] = '/home/vmail/domains';
>
>        $entry['mailbox'] = $userID;
>
>        $entry['delete'] = 'FALSE';
>
>        $entry['accountActive'] = 'TRUE';
>
>        $entry['sn'] = '';
>
>        $entry['userPassword'] = '104857600S';
>
>        $entry['description'] = 'Vacation Description';
>
>        $entry['vacationActive'] = 'FALSE';
>
>        $entry['vacationStart'] = '01 january 2005';
>
>        $entry['vacationEnd'] = '01 january 2005';
>
>        $entry['vacationForward'] = 'user at limestonechat.com';
>
>        $entry['editAccounts'] = 'FALSE';
>
>        $entry['forwardActive'] = 'FALSE';
>
>        $entry['lastChange'] = '1108499016';
>
>        $entry['cn'] = '';
>
>        $entry['quota'] = '52428800';
>
>        $entry['amavisSpamKillLevel'] = '6.0';
>
>        $entry['amavisSpamTag2Level'] = '5.5';
>
>        $entry['amavisBypassVirusChecks'] = 'FALSE';
>
>        $entry['amavisBypassSpamChecks'] = 'TRUE';
>
>
>
>         // need to check for new users (password) and edited users 
> (user_pass_2)
>
>        if (isset($credentials) && isset($credentials['password'])) {
>
>            $entry['userPassword'] =  '{MD5}' . 
> base64_encode(mHash(MHASH_MD5, $credentials['password']));
>
>        } else if (isset($credentials) && 
> isset($credentials['user_pass_2'])) {
>
>            $entry['userPassword'] =  '{MD5}' . 
> base64_encode(mHash(MHASH_MD5, $credentials['user_pass_2']));
>
>        }
>
>    }
>
> }
>
>
> --
> Internal Virus Database is out-of-date.
> Checked by AVG Anti-Virus.
> Version: 7.0.308 / Virus Database: 266.7.3 - Release Date: 15/03/2005
>
> --
> Horde mailing list - Join the hunt: http://horde.org/bounties/#horde
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>





More information about the horde mailing list