On 06.03.2011 23:19 , Timo Sirainen wrote:
On Sun, 2011-03-06 at 15:18 +0100, Remy Zandwijk wrote:
      userdb {
          driver = passwd-file
          args = username_format=%n /etc/passwd
      }
It's not a great idea to use passwd-file for /etc/passwd. I guess it
usually works, but there are no guarantees of random failures when the
passwd file is being modified.

You can do this better by keeping the userdb passwd, and setting:

auth_username_format = %n

Thanks Timo.

I read this as I should do:

userdb {
    driver = passwd
    args = auth_username_format=%n
}

That didn't work. So I guess I should have read set auth_username_format = %n in conf.d/10-auth.conf. That works.

-Remy

Reply via email to