On Sun, 11 Feb 2018 10:23:09 +0100
"A.L.E.C" <[email protected]> wrote:

> On 02/10/2018 12:03 AM, Franta Hanzlík wrote:
> >     'groups'            => array(
> >         'base_dn'         => '',
> >         'mail'            => '{Mail-Address}@mydomain.com',
> >         'filter'          => 
> > '(&(objectClass=groupOfNames)(Mail-Address=*))',
> >         'object_classes'  => array("top", "groupOfNames"),
> >         'class_member_attr' => array(
> >           'groupofnames'       => 'member',
> >           'groupofuniquenames' => 'uniquemember'
> >         ),
> >     ),  
> 
> Here's an example from defaults.inc.php file:
> 
> // definition for contact groups (uncomment if no groups are supported)
> // for the groups base_dn, the user replacements %fu, %u, %d and %dc
> work as for base_dn (see above)
> // if the groups base_dn is empty, the contact base_dn is used for the
> groups as well
> // -> in this case, assure that groups and contacts are separated due to
> the concernig filters!
>   'groups'  => array(
>     'base_dn'           => '',
>     'scope'             => 'sub',       // Search mode: sub|base|list
>     'filter'            => '(objectClass=groupOfNames)',
>     'object_classes'    => array('top', 'groupOfNames'),   // Object
> classes to be assigned to new groups
>     'member_attr'       => 'member',   // Name of the default member
> attribute, e.g. uniqueMember
>     'name_attr'         => 'cn',       // Attribute to be used as group name
>     'email_attr'        => 'mail',     // Group email address attribute
> (e.g. for mailing lists)
>     'member_filter'     => '(objectclass=*)',  // Optional filter to use
> when querying for group members
>     'vlv'               => false,      // Use VLV controls to list groups
>     'class_member_attr' => array(      // Mapping of group object class
> to member attribute used in these objects
>       'groupofnames'       => 'member',
>       'groupofuniquenames' => 'uniquemember'
>     ),
>   ),
> 
> 
> So, there's no such thing as your "composite" 'mail' attribute
> specification. A group with an email_attr that contains an email address
> will not resolve to members' addresses.

Hi Aleksander,
thanks for Your reply - now it is clear. The problem is that group e-mail
address is stored in LDAP DB in form as user part only (without '@domain),
and I perhaps cannot change this. It is solvable somehow?

(something that would replace my "composite" expression. Dovecot server has
for it this:
https://wiki.dovecot.org/AuthDatabase/LDAP/Userdb?highlight=%28You+can+mix+static+text+with+the+value+returned+from+LDAP%29

Some form of GAWK gensub() (regexp based substitution) would be IMO best...

And, please, is some page, where are those RC '*_attr' listed/described,
or it is necessary to search in RC php code?
-- 
Thanks, Franta Hanzlik
_______________________________________________
Roundcube Users mailing list
[email protected]
http://lists.roundcube.net/mailman/listinfo/users

Reply via email to