Also, forgot to mention, remember to restart authdaemon after you make 
changes to authdaemonrc or you won't see the changes in effect.

Regards,

 -Enda.

----- Original Message ----- 
From: "Enda Cronnolly" <[EMAIL PROTECTED]>
To: "P Bielecki" <[EMAIL PROTECTED]>; 
<[email protected]>
Sent: Saturday, August 11, 2007 7:47 AM
Subject: Re: [courier-users] Courier authlib LDAP and LDAP_HOMEDIR


>P Bielecki wrote:
>> I would like to configure authlib auth_ldap so
>> LDAP_HOMEDIR is static, the same for every user '/usr/local/virtual'
>
> make that the value for LDAP_MAILROOT in /usr/local/etc/authlib/authldaprc
>
>> and LDAP_MAILDIR is [EMAIL PROTECTED]/
>
> Does this have an entry in your ldap schema, such as uid ?? I'll make that 
> assumption below.
>
>> I don't want to have attribute homeDir in my schema so I thought I
>> could use LDAP_MAILROOT for my static homedir. But it doesn't work.
>
> Mailroot is what gets prepended to the homeDir for everyone, like /home
>
> However, since you are essentially putting all your UID's under MAILDIR, 
> you can simply set LDAP_HOMEDIR to uid (assuming its in ldap) and now 
> you've got all your homedirectory paths pointing to: 
> /usr/local/virtual/[EMAIL PROTECTED]
>
> The only other thing you need is the location of the maildir, and if you 
> don't specify anything in authldaprc for that, it automatically gets set 
> to the folder Maildir under the homedirectory.
>
>> I'm quite weak in C but I went through authldaplib.c and I think that
>> this patch could sort my problems out, unfortunately there is no way
>> that i can test it now, that's why I thought I can ask you to help me
>> on that.
>> Please let me know your thoughts.
>
> I don't think you need the patch at all, unless i'm missing something, you 
> can do everything you are trying to do by configuring authldaprc to match 
> your schema.
>
> Think of it this way:
> in a standard unix user accont, you might have a maildir at 
> /home/<username>/Maildir
>
> So for your ldap schema:
> LDAP_MAILROOT = /home (in your case /usr/local/virtual)
> LDAP_HOMEDIR = <username> (in your case the users email address field from 
> ldap)
> LDAP_MAILDIR = Maildir (you probablydon't need to worry about this one)
>
> This configuration works fine for me on courier-authlib-0.59.3
>
> -Enda. 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to