[Dovecot] help with static userdb
Hey,
This may be a dumb question... I'm trying to set up 1.0 with a static userdb, and I'm getting stuck. I have:
userdb static {
args = uid=500 gid=500 home=/domains/%d/%n
}
When I attempt to log in as, say, kyle@memoryhole.net (via telnet, so I *know* I'm logging in as that user), the debug log says that it thinks my home directory is "/domains//kyle".
I even tried, just to check what might be going on:
args = uid=500 gid=500 home=/domains/%u/%d/%n
It then thought my home directory was "/domains/kyle//kyle".
Can anyone help me? Where might that be getting cleared?
~Kyle
The more men you make free, the more freedom is strengthened and the ... greater is the security of the State. -- Frederick Douglas, Nov 17, 1864
On Tue, 2007-04-17 at 19:04 -0600, Kyle Wheeler wrote:
args = uid=500 gid=500 home=/domains/%d/%n }
When I attempt to log in as, say, kyle@memoryhole.net (via telnet, so I *know* I'm logging in as that user), the debug log says that it thinks my home directory is "/domains//kyle".
Your passdb drops the domain out. This is usually caused by SQL password_query:
# The "user" column is needed to make sure the username gets used with exactly # the same casing as it's in the database. Note that if you store username and # domain in separate fields, you most likely want to return a combination of # them as the "user" column, otherwise the domain gets stripped.
On Wednesday, April 18 at 09:04 AM, quoth Timo Sirainen:
When I attempt to log in as, say, kyle@memoryhole.net (via telnet, so I *know* I'm logging in as that user), the debug log says that it thinks my home directory is "/domains//kyle".
Your passdb drops the domain out. This is usually caused by SQL password_query:
Ahh, gotcha. I was actually using checkpassword, and I'm not sure how to get the domain back out of what it returns.
I just switched over to using ldap directly (my checkpassword program was an ldap frontend), and that seems to have fixed the problem.
~Kyle
Many who claim to have been transformed by Christ's love are deeply, even murderously, intolerant of criticism. -- Sam Harris
participants (2)
-
Kyle Wheeler
-
Timo Sirainen