Hello,
I currently use version roundcube 0.4 and openldap on the same machine.
For now, I can connect to my directory in using roundcube, but I can not change or add contact with roundcube.
Is it possible for roundcube? Is somebody has already managed to do it?
Thank you for your help.
Matt
I have the same setup. Does the user with which you connect to the LDAP have enough rights to update the information?
I use the admin user. With phpldapadmin, I can create, update or remove any user. But with roundcube, I can't.
Enable debug logging and check the logfiles for errors:
In the main.inc.php change the following value:
$rcmail_config['debug_level'] = 1;
to
$rcmail_config['debug_level'] = 8;
In the ldap's file, the message is "[16-Dec-2010 17:40:20 +0100]: C: Read [dn: ..." when I try to modify a contact and a message appears in roundcube like "Source in read only".
There is an option in the ldap config in the main.inc.php to enable writing:
set
'writable' => false,
// Indicates if we can write to the LDAP
// If writable is true then these fields need to be populated:
// LDAP_Object_Classes, required_fields, LDAP_rdn
to
'writable' => true,
// Indicates if we can write to the LDAP
// If writable is true then these fields need to be populated:
// LDAP_Object_Classes, required_fields, LDAP_rdn
My config for the access to my LDAP
$rcmail_config['ldap_public']['domain.net'] = array(
'name' => 'Addressbook',
'user_specific' => true,
'hosts' => array('localhost'),
'port' => 389,
'base_dn' => 'ou=%u,ou=addressbook,dc=domain,dc=net',
'bind_dn' => 'cn=admin,dc=domain,dc=net',
'bind_pass' => '<password>',
'writeable' => true,
'LDAP_Object_Classes' => array('top','inetOrgPerson'),
'search_fields' => array('cn', 'mail'),
'required_fields' => array('cn', 'sn', 'mail'),
'LDAP_rdn' => 'mail',
'ldap_version' => 3,
'name_field' => 'cn',
'firstname_field' => 'gn',
'surname_field' => 'sn',
'email_field' => 'mail',
'scope' => 'sub',
'filter' => '',
'fuzzy_search' => true);
'user_specific' => true,
This uses user specific authentication. Set this to:
'user_specific' => false,
And the user specified in the config will be used.
hello there,
Right now when I send email it uses username from identities. so people who i sent email they get username in from. is there a way i can change / or get the display name from LDAP so when i sent email it goes like display name ? Any tips on this would be appericiated.
Regards,
Madal
Hi,
If I use the option
'user_specific' => false,
the contact don't appear in roundcube.
Thx
hello Matt2cv,
we also use openldap and like to disallow changes in LDAP so I do not need to configure write access. how is your ldap config look like ? I would like to get user display name from LDAP server instead of username. could you please through me some hints ?
Madal
Have you tried this:
'name_field' => 'displayName',
Thanks,
is not these setting are for address book ? or this will also apply for user identities ?
M
AFAIK, user identities are stored in the RoundCube-database.
However, you could try this (http://code.google.com/p/roundcubeldap/) plugin.
thank you.
I am having address book issue from LDAP. here is my config for address book and the error:
$rcmail_config['address_book_type'] = 'ldap';
$rcmail_config['ldap_public']['offaddress'] = array(
'name' => 'offaddress',
'hosts' => array('myldaphost'),
'port' => 389,
'use_tls' => false,
'user_specific' => false,
'base_dn' => 'dc=hi,dc=is',
'bind_dn' => 'uid=test,ou=People,dc=domain,dc=com',
'bind_pass' => 'mypassword',
'writable' => false,
'LDAP_Object_Classes' => array("top","inetOrgPerson"),
'required_fields' => array("cn", "mail"),
'LDAP_rdn' => 'mail',
'ldap_version' => 3,
'search_fields' => array('mail', 'cn'),
'email_field' => 'mail',
'displayname_field => 'displayName',
'sort' => 'cn',
'scope' => 'sub',
'filter' => 'cn',
'global_search' => true,
'fuzzy_search' => true,
);
$rcmail_config['autocomplete_addressbooks'] = array('offaddress');
so I am always getting this error :
PHP Fatal error: Call to a member function set_pagesize() on a non-object in /var/www/html/roundcube/program/steps/addressbook/func.inc on line 35
What i am doing wrong here, LDAP is an open LDAP. any hints ?
Madal
Hello all,
I made this working - some configuration mismatch.
Is there a way to allow user to have their Personal Addressbook and LDAP address book ? if i choose ldap address book then users personal address are not listed in ldap. how can i do that ?
PS: Now the problem is if i type username on compose To: it comes the full address from LDAP i.e Joe Smith
, and hit the send now button it comes up with error like this :
PHP Error: Invalid compose ID in /var/www/html/roundcube/program/steps/mail/sendmail.inc on line 33 (POST /roundcube/?_unlock=loading1294928059503?_task=mail&_action=send)
so I cannot send email to this user as using like above however if i use only [email protected] the mail sends successfully. Is there a workaround ?
M