⚝
One Hat Cyber Team
⚝
Your IP:
216.73.217.4
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
doc
/
dovecot
/
wiki
/
View File Name :
UserDatabase.Prefetch.txt
Prefetch User Database ====================== Prefetch userdb can be used to combine passdb and userdb lookups into a single lookup. It's usually used with
[AuthDatabase.SQL.txt],
[AuthDatabase.LDAP.txt] and
[PasswordDatabase.CheckPassword.txt] passdbs. Prefetch basically works by requiring that the passdb returns the userdb information in
[PasswordDatabase.ExtraFields.txt] with 'userdb_' prefixes. For example if a userdb typically returns 'uid', 'gid' and 'home' fields, the passdb would have to return 'userdb_uid', 'userdb_gid' and 'userdb_home' fields. If you're using
or
, you still need a valid userdb which can be used to locate the users. You can do this by adding a normal SQL/LDAP userdb *after the userdb prefetch*. The order of definitions is significant. See below for examples. LDAP: 'auth_bind=yes' with 'auth_bind_userdn'-template is incompatible with prefetch, because no passdb lookup is done then. If you want zero LDAP lookups, you might want to use
[UserDatabase.Static.txt] instead of prefetch. SQL example ----------- 'dovecot.conf': ---%<------------------------------------------------------------------------- passdb { driver = sql args = /etc/dovecot/dovecot-sql.conf.ext } userdb { driver = prefetch } # The userdb below is used only by lda. userdb { driver = sql args = /etc/dovecot/dovecot-sql.conf.ext } ---%<------------------------------------------------------------------------- 'dovecot-sql.conf.ext': ---%<------------------------------------------------------------------------- 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' ---%<------------------------------------------------------------------------- LDAP example ------------ 'dovecot.conf': ---%<------------------------------------------------------------------------- passdb { driver = ldap args = /etc/dovecot/dovecot-ldap.conf.ext } userdb { driver = prefetch } # The userdb below is used only by LDA. userdb { driver = ldap args = /etc/dovecot/dovecot-ldap.conf.ext } ---%<------------------------------------------------------------------------- 'dovecot-ldap.conf.ext': ---%<------------------------------------------------------------------------- pass_attrs = uid=user, userPassword=password, \ homeDirectory=userdb_home, uidNumber=userdb_uid, gidNumber=userdb_gid # For LDA: user_attrs = homeDirectory=home, uidNumber=uid, gidNumber=gid ---%<------------------------------------------------------------------------- (This file was created from the wiki on 2019-06-19 12:42)