[tpop3d-discuss] tpop3d v1.4.1pre4

Chris Lightfoot chris at ex-parrot.com
Mon, 25 Feb 2002 14:37:39 +0000


On Mon, Feb 25, 2002 at 03:08:21PM +0100, Prune wrote:
> looking at the code about mailbox defined in conf file :
> 
>  /* Mailbox locations, or attribute which specifies it. */
>    s = config_get_string("auth-ldap-mailbox");
>    t = config_get_string("auth-ldap-mailbox-attr");
>    if (!s && t) {
>        ldapinfo.attr.mailbox = xstrdup(t);
>        if ((s = config_get_string("auth-ldap-mboxtype-attr")))
>            ldapinfo.attr.mboxtype = xstrdup(s);
>        else
>            log_print(LOG_WARNING, _("auth_ldap_init: will guess mailbox 
> types based upon filename"), ldapinfo.attr.mailbox);
>    } else if (s && t) {
>        log_print(LOG_ERR, _("auth_ldap_init: both an auth-ldap-mailbox 
> and an auth-ldap-mailbox-attr directive were specified"));
>        goto fail;
>    }
> 
> -> what do we do if the auth-ldap-mailbox is defined ?
>    aparently, nothing :)

Yes. If an auth-ldap-mailbox directive is found, then we
pass NULL as the mailbox location to authcontext_new and
find_mailbox in mailbox.c will interpret the config
directive.

> -> what should we put in auth-ldap-mailbox ? the path to the mailbox, 
> then the username will be appened ? (/auth-ldap-mailbox/username)

A substitution string, as for any other mailbox directive.

-- 
 Humankind cannot bear very much reality. (Elliot)