Roundcube Community Forum

 

LDAP address book configuration problem

Started by chome, April 14, 2009, 11:33:42 PM

Previous topic - Next topic

chome

I am using RC 0.21 latest release now.

I am trying to create LDAP address book and my config is:


$rcmail_config['ldap_public']['company'] = array(
  'name'          => 'company',
  'hosts'         => array('192.168.1.10'),
  'port'          => 389,
  'use_tls'       => false,
  'user_specific' => false,
  'base_dn'       => 'DC=company,DC=com,DC=sg',
  'bind_dn'       => 'CN=ldap,CN=Users,DC=company,DC=com,DC=sg',
  'bind_pass'     => 'password',
  'writable'      => false,
  'ldap_version'  => 3,
  'search_fields' => array('givenName', 'displayname', 'sn', 'mail'),
  'name_field'    => 'displayname',    
  'firstname_field' => 'givenName',
  'surname_field' => 'sn',    
  'email_field'   => 'mail',  
  'scope'         => 'sub',  
  'filter'        => '',  
  'fuzzy_search'  => TRUE);  

When i try to click the address book in RC, no entries is shown. No errors generated in RC log directory, no errors was found on my domain controller also.

I am using AD for Windows logon only. I am using Lotus Notes as my email.

rosali

I don't think that LDAP entries are listed. Use the quicksearch box to pick up an address from LDAP.
Regards,
Rosali

chome

Quote from: rosali;18434I don't think that LDAP entries are listed. Use the quicksearch box to pick up an address from LDAP.

Don't quite understand.....if it is not listed then how to search for the address?

rosali

Login @ mail4us.net. I saw you have a test account. Goto addressbook. Then select rz.uni.hamburg (my LDAP). Type "roland" into the quick search box and fire the search request ...
Regards,
Rosali

Julius Caesar

What you can do is replace the line

'filter' => '',

with

'filter' => 'mail=*@*',
Julius Caesar

You can download the Groupvice4 theme here.
Sie können Groupvice4 hier he

chome

Quote from: rosali;18436Login @ mail4us.net. I saw you have a test account. Goto addressbook. Then select rz.uni.hamburg (my LDAP). Type "roland" into the quick search box and fire the search request ...

Ya, yours  can work, but for mine, i typed a name to search it said "no contacts found"

How to display all the AD users in the address book without searching?

chome

Quote from: Julius Caesar;18438What you can do is replace the line

'filter' => '',

with

'filter' => 'mail=*@*',

I have tried, still the same. No entries is displayed. Try searching also can't work.

chome

I saw there is an error in log directory:

[15-Apr-2009 15:48:29] PHP Warning:  ldap_search() [function.ldap-search]: Search: Operations error in C:\Inetpub\wwwroot\roundcube\program\include\rcube_ldap.php on line 549

Line 549:


$this->ldap_result = $function($this->conn, $this->prop['base_dn'], $this->filter, array_values($this->fieldmap), 0, 0);



What does this mean?

rosali

[15-Apr-2009 09:30:03] PHP Warning:  ldap_search() [function.ldap-search]: Partial search results returned: Sizelimit exceeded in C:\xampp\htdocs\webmail\program\include\rcube_ldap.php on line 549

I have a similiar error, but it seems not to be a problem. Sorry, no further clue.
Regards,
Rosali

chome

Finally i got it work! It's was the binding issue to my LDAP. ;D

Does anyone know the syntax of the FILTER of ldap? I may need to do a lot of 'AND' and 'OR' operations but dont know what was the syntax, it looks a bit weird in the example.

chome

I want to have the following filter query:

To filter when (Group = 0 | GroupType = 2) & (Mail = '') [meaning mail field has no value]

How am i suppose to do that?

Thanks

Julius Caesar

Maybe you can find here more information on LDAP filtering.
Julius Caesar

You can download the Groupvice4 theme here.
Sie können Groupvice4 hier he