www.doorway.ru: password_query = SELECT userid AS user, password, \ home AS userdb_home, uid AS userdb_uid, gid AS userdb_gid \ FROM users \ WHERE userid = '%u' # For LDA: user_query = SELECT home, uid, gid FROM users WHERE userid = '%u'. Add to your www.doorway.ru file: driver = sqlite connect = /path/to/www.doorway.ru password_query = SELECT userid AS username, domain, password \ FROM users WHERE userid = '%n' AND domain = '%d' user_query = SELECT home, uid, gid FROM users WHERE userid = '%n' AND domain = '%d' # For using doveadm -A: iterate_query = SELECT userid AS username, domain FROM users. The SQL and LDAP configuration files have the default_pass_scheme setting for this. If you have passwords in multiple formats, or the passdb doesn’t have such a setting, you’ll need to prefix each password with {}, {PLAIN}plaintext-password or {PLAIN-MD5}1a1dc91ccddf0cbc Dovecot authenticates users against password .
Prefetch User Database. ¶. Prefetch userdb can be used to combine passdb and userdb lookups into a single lookup. It’s usually used with SQL, LDAP Authentication, and CheckPassword passdbs. Prefetch basically works by requiring that the passdb returns the userdb information in Password database extra fields with userdb_ prefixes. To fix this, you can make the SQL database return a "user" field, which makes Dovecot modify the username to the returned value. Note that if you're using separate user and domain fields, a common problem is that you're returning only the "user" field from the database. This drops out the domain from the username. Run: /path/to/v/dovecot --build-options | tail -n4 Shows which SQL drivers are available, if any. And if userdb/passdb can use sql dbs. Regards.
Напомню, что необходимо создать файл /etc/dovecot/www.doorway.ru и в нем написать все параметры и запросы для вытаскивания нужных. passdb { driver = static args = password=pass mail_crypt_global_public_key= mail_crypt_global_private_key=
0コメント