Author Topic: ldap as default addressbook  (Read 9158 times)

Offline sundansx

  • Newbie
  • *
  • Posts: 5
Re: ldap as default addressbook
« Reply #15 on: October 13, 2007, 03:50:53 AM »
Hi all...I was working on this and noticed that the ldap query appears as soon as you compose. I had similar problems with the addresses since it would not search the email field. Then I figured since it has to grab the whole list and do a search later based on type in, then why even use search? It appears the the regular address book uses the list_records() instead of search()
I replaced this in the file mentioned above:
Code: [Select]
$results = $cLdap->search ($ldapfields, "@" /* God, forgive me this nasty hack */, true);
Code: [Select]
$results = $cLdap->list_records(); works great. hope this helps.