Per Timo's direction, I decided to give the MasterUser a try in connecting my proxy to my destination server.<br>This might allow for the use of 'secure password' for my clients that like to check that box by default.
<br><br>A couple of problems I'm running into running RC15:<br><br>#1: My Proxy's SQL password_query line:<br><br>password_query = SELECT a.clearpasswd AS password, v.storeIP AS host, CONCAT(v.userID,'*someuser') AS destuser, 'Y' AS nologin, 'Y' AS nodelay, 'Y' AS proxy, 'somepass' AS pass FROM
iwmailsystem.virtmailbox AS v NATURAL JOIN authenticate.users AS a WHERE<br> v.userID = '%u' and v.imap_active = 1<br><br>I'm wanting to authenticate the user on the proxy before I send it off via the MasterUser to the destination server. However, I show this in the logs:
<br><br>Info: auth(default): client in: AUTH 1 PLAIN service=IMAP lip=x.y.z.a rip=a.b.c.d resp=AGJ1dGNoQGluZm93ZXN0LmNvbQBzZWNyZXQ=<br>Info: auth-worker(default): sql(<a href="mailto:user@host.com">user@host.com
</a>,a.b.c.d): query: SELECT a.clearpass<br>wd AS password, v.storeIP AS host, CONCAT(v.userID,'*someuser') AS destuser, 'Y' AS nologin, 'Y' AS nodelay, 'Y' AS p<br>roxy, 'somepass' AS pass FROM
iwmailsystem.virtmailbox AS v NATURAL JOIN authenticate.users AS a WHERE v.userID = '<a href="mailto:user@host.com">user@host.com</a>'<br>and v.imap_active = 1 <br>Error: auth(default): file auth-request.c: line 207 (auth_request_save_cache): assertion failed: (extra_fields == NULL || (strstr(extra_fields, "\tpass=") == NULL && strncmp(extra_fields, "pass=", 5) != 0))
<br>Error: child 54122 (auth) killed with signal 6<br><br>The Wiki showed I should return a 'pass' column. However, that's choking the query up in auth-request.c. Could it be the "\tpass" from auth-request.c
?<br><br>If I change <a href="mailto:user@host.com">user@host.com</a>'s password to 'someass' and remove the 'pass' column from the password_query, it authenticates, and proxy's over just fine. Am I doing something wrong? I want to authenticate the user locally on the proxy and pass off the 'master password' to the proxy, but using 'pass' doesnt work. 'password' column does. Doesnt help me though for my situation :)
<br><br>Problem #2:<br><br>I'm wanting to put the masteruser/pass in the database for quick retrieval and updating.<br>So I setup dovecot.conf as:<br> passdb sql {<br> # Path for SQL configuration file, see doc/dovecot-
sql.conf for example<br> args = /usr/local/etc/dovecot-sql.conf<br> master=yes<br> #pass=yes<br> }<br><br> passdb passwd {<br> }<br><br>and dovecot-sql.conf with:<br>password_query = SELECT '%u' AS user, 'master-password' AS password
<br><br>Trying to connect locally with a "telnet localhost 143" via:<br> 1 login user@host.com*someuser "somepass"<br><br>Give me this in the detail log file:<br><br>Info: auth(default): client in: AUTH 1 PLAIN service=IMAP lip=
a.b.c.d rip=w.x.y.z resp=AGJ1dGNoQGluZm93ZXN0LmNvbSphZG1pbkBpbmZvd2VzdC5jb20AbWFzdGVyLXBhc3N3b3Jk<br>Error: auth-worker(default): BUG: PASSV had invalid passdb ID<br>Warning: Killed with signal 15<br><br><br>I am able to successfully authenticate with the master user/pass if I store it in a passdb file.
<br>However, I'd prefer to have it in the database for obvious reasons.<br><br>Any help to the above would be appreciated. <br><br>thanks,<br><br>Cassidy<br><br>