>>> Hi,
>>>
>>> I am using SquirrelMail 1.4.5 on a Gentoo Linux system (Apache 2.0.54
>>> and PHP 4.4.0). I have setup the LDAP address book feature by doing a
>>> './configure' in the root of the SquirrelMail directory. I then chose
>>> option 6 (Address Books) and then option 1 (Change LDAP Servers). I add
>>> a new LDAP server with a '+' and at the end my config is:
>>>
>>> 0. bobbysue.mcc.edu
>>>         base: ou=users,dc=mcc,dc=edu
>>>         name: Global Address Book
>>>     protocol: 3
>>>
>>>
>>> All looks good, I do a 'd' and save my config. I login to SquirrelMail,
>>> click Compose, and the click the Addresses button. I use "marc" as the
>>> search key and choose 'Global Address Book' as the address book to
>>> search.
>>> Nothing gets returned, I get the message "No persons matching your
>>> search
>>> were found" below the button. So, I take a look at my OpenLDAP server
>>> log, and I see it performing a search, and it appears there are results
>>> founds, yet nothing shows up in SquirrelMail:
>>>
...
>>>
>>> Here is an example LDAP entry for a typical user:
>>>
>>> dn: uid=msmith,ou=Users,dc=mcc,dc=edu
>>> uid: msmith
>>> objectClass: account,posixAccount,top,shadowAccount,sambaSamAccount
...
>>>
>>> I know I don't have all the LDAP attributes that SquirrelMail is trying
>>> to
>>> return, but it should still return something, right? Where can I set
>>> the
>>> attributes that should be returned when an entry is found?
>>
>> SquirrelMail LDAP address book backend requires email attribute. Address
>> book entry without email address is useless for email client.
>>
>> See search function in functions/abook_ldap_server.php abook_ldap_server
>> class.
>>
>> --
>> Tomas
...
>
>
> Any other good ways to do this aside from modifying SM's source and
> creating something else? I'd like to just return the uid attribute and
> attach a '@esmail.mcc.edu'
>
>
> Thanks for your help.

Modify search() function in SquirrelMail 1.4.x
functions/abook_ldap_server.php. You must add uid attribute to ldap search
options and replace code that checks email field.

Or provide patch for ldap_search() function in SquirrelMail 1.5.1
functions/abook_ldap_server.php file. Configuration variable should be
optional and configured in parameters submitted to object constructor
function.

Or create own address book backend plugin based on modified
abook_ldap_server.php.

-- 
Tomas


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
--
squirrelmail-users mailing list
Posting Guidelines: 
http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: [email protected]
List Archives: 
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to