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:[email protected] <[email protected]>
> Sent: Saturday 12th July 2014 11:00
> To: [email protected]
> Subject: users Digest, Vol 85, Issue 8
>
> Send users mailing list submissions to
> [email protected]
>
> 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
> [email protected]
>
> You can reach the person managing the list at
> [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of users digest..."
>
>
> Today's Topics:
>
> 1. Samba4 AD LDAP Address Book (Stuart Naylor)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 12 Jul 2014 09:46:27 +0100
> From: Stuart Naylor <[email protected]>
> To: [email protected] <[email protected]>
> Subject: [RCU] Samba4 AD LDAP Address Book
> Message-ID:
> <[email protected]>
> 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
> ************************************
>
_______________________________________________
Roundcube Users mailing list
[email protected]
http://lists.roundcube.net/mailman/listinfo/users