Apols ignore me as managed it in end.
$rcmail_config['ldap_public'] = array( 'MyAdLdap' => array ( 'name' => 'Zentyal.lan Contacts', 'hosts' => array ( 0 => 'localhost', ), 'sizelimit' => 6000, 'port' => 3268, 'use_tls' => false, 'user_specific' => false, 'base_dn' => 'DC=office,DC=zentyal,DC=lan', 'bind_dn' => 'CN=Administrator,CN=Users,DC=office,DC=zentyal,DC=lan', 'bind_pass' => 'zent1', 'writable' => false, 'ldap_version' => 3, 'search_fields' => array ( 0 => 'mail', 1 => 'cn', ), 'name_field' => 'cn', 'email_field' => 'mail', 'surname_field' => 'sn', 'firstname_field' => 'givenName', 'sort' => 'sn', 'scope' => 'sub', 'filter' =>
'(&(mail=*)(|(&(objectClass=user)(!(objectClass=computer)))(objectClass=group)))', 'global_search' => true, 'fuzzy_search' => true ), );
If you want a base DN such as DC=office,DC=zentyal,DC=lan which might bring in OU's and Users the cope needs to be subtree but also only the global catalog works.
So it was a combination of scope, base_dn and port and some dumb stuff by myself.
Even though writable=false it is still possible to click + and get the form to add a contact.
Stuart
-----Original message-----
From:users-request@lists.roundcube.net users-request@lists.roundcube.net Sent: Saturday 12th July 2014 11:00 To: users@lists.roundcube.net Subject: users Digest, Vol 85, Issue 8
Send users mailing list submissions to users@lists.roundcube.net
To subscribe or unsubscribe via the World Wide Web, visit http://lists.roundcube.net/mailman/listinfo/users or, via email, send a message with subject or body 'help' to users-request@lists.roundcube.net
You can reach the person managing the list at users-owner@lists.roundcube.net
When replying, please edit your Subject line so it is more specific than "Re: Contents of users digest..."
Today's Topics:
- Samba4 AD LDAP Address Book (Stuart Naylor)
Message: 1 Date: Sat, 12 Jul 2014 09:46:27 +0100 From: Stuart Naylor stuartiannaylor@thursbygarden.org To: users@lists.roundcube.net users@lists.roundcube.net Subject: [RCU] Samba4 AD LDAP Address Book Message-ID: zarafa.53c0f5e3.7b25.760fd1c64f52a46a@zent1.thursbygarden.lan Content-Type: text/plain; charset=utf-8
Hi been trying to configure a read only address book from my samba4 install
I read the http://trac.roundcube.net/wiki/Howto_Config/Ldap
So its local host or zent1.office.zentyal.lan as its just a vm
the error log was telling me that there was no php-ldap so I enabled ldap php mod
Then struggled as still nothing but no error.
Anybody any tricks or tips for LDAP Address Book
List info: http://lists.roundcube.net/users/
End of users Digest, Vol 85, Issue 8