Re: [Dovecot] login_log_format_elements does not appear to be changing log format 2.2.5

2013-09-26 Thread Chris Lasater

On 09/21/2013 08:48 PM, Timo Sirainen wrote:

On 4.9.2013, at 21.29, Chris vorg...@gmail.com wrote:


login_log_format_elements does not seem to change the login logs.  I have it set to the 
below setting and the word home does not even appear.  Is there something I 
have to do to for this?  Also I use ldap for authentication.

%h isn't a valid variable in there. It expands to empty, so it's not added to 
the log. There's no way to log the home directory in there, because auth 
process doesn't send it to the login process (and actually it hasn't even 
gotten around to looking it up at that point).



ahh, ok. I just now saw your response.  I assume any word associated 
with the variable (like the home=) is not shown when its blank, that 
is what made me think it was not working.  Thanks for the info


Re: [Dovecot] login_log_format_elements does not appear to be changing log format 2.2.5

2013-09-21 Thread Timo Sirainen
On 4.9.2013, at 21.29, Chris vorg...@gmail.com wrote:

 login_log_format_elements does not seem to change the login logs.  I have it 
 set to the below setting and the word home does not even appear.  Is there 
 something I have to do to for this?  Also I use ldap for authentication.

%h isn't a valid variable in there. It expands to empty, so it's not added to 
the log. There's no way to log the home directory in there, because auth 
process doesn't send it to the login process (and actually it hasn't even 
gotten around to looking it up at that point).



[Dovecot] login_log_format_elements does not appear to be changing log format 2.2.5

2013-09-04 Thread Chris

Hi,
login_log_format_elements does not seem to change the login logs.  I 
have it set to the below setting and the word home does not even 
appear.  Is there something I have to do to for this?  Also I use ldap 
for authentication.


[user@MB1 logs]$ doveconf -n | grep -i log
debug_log_path = /home/user/apps/logs/dovecot_debug.log
info_log_path = /home/user/apps/logs/dovecot_info.log
log_path = /home/user/apps/logs/dovecot.log
login_log_format_elements = user=%u method=%m rip=%r lip=%l mpid=%e %c 
home=%h

service imap-login {
  chroot = login
  executable = imap-login
  type = login
  user = $default_login_user


[user@MB1 dovecot]$ tail -1 ~/apps/logs/dovecot_info.log
Sep 04 18:19:55 imap-login: Info: Login: user=test2@domain.local, 
method=PLAIN, rip=10.100.5.6, lip=10.100.5.103, mpid=6571


[user@MB1 dovecot]$ dovecot --version
2.2.5