Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung |
tachtler:dovecot_authentifizierung_-_sql_-_horde.org_-_horde [2014/04/30 10:54] – klaus | tachtler:dovecot_authentifizierung_-_sql_-_horde.org_-_horde [2016/04/02 07:53] (aktuell) – [Vorbereitung] klaus |
---|
| |
:!: **HINWEIS** - **Die Nachfolgende Konfiguration von [[http://dovecot.org|Dovecot]] setzt eine lauffähige Installation von [[http://dovecot.org|Dovecot]] sowie eine lauffähige Installation von [[http://postfixadmin.sourceforge.net/|Postfix Admin]] voraus, wie unter nachfolgenden internen Links beschrieben !!!** | :!: **HINWEIS** - **Die Nachfolgende Konfiguration von [[http://dovecot.org|Dovecot]] setzt eine lauffähige Installation von [[http://dovecot.org|Dovecot]] sowie eine lauffähige Installation von [[http://postfixadmin.sourceforge.net/|Postfix Admin]] voraus, wie unter nachfolgenden internen Links beschrieben !!!** |
| * **[[tachtler:dovecot_centos_7|Dovecot CentOS 7]]** |
* **[[tachtler:dovecot_centos_6|Dovecot CentOS 6]]** | * **[[tachtler:dovecot_centos_6|Dovecot CentOS 6]]** |
* **[[tachtler:postfix_admin|Postfix Admin]]** | * **[[tachtler:postfix_admin|Postfix Admin]]** |
| |
Falls [[http://www.horde.org/|Horde]] wie unter nachfolgenden internen Links bereits installiert ist | Falls [[http://www.horde.org/|Horde]] wie unter nachfolgenden internen Links bereits installiert ist |
| * [[tachtler:horde5_-_framework#konfigurationhorde5_-_komplett|Horde5 Framework - Konfiguration: Horde5 - Komplett]] |
| * [[tachtler:horde5_-_imp|Horde5 - IMP]] |
| |
* [[tachtler:horde4#konfigurationreiter-beispiele|Horde4 - Konfiguration Reiter-Beispiele]] | * [[tachtler:horde4#konfigurationreiter-beispiele|Horde4 - Konfiguration Reiter-Beispiele]] |
* [[tachtler:horde4_-_imp|Horde4 - IMP]] | * [[tachtler:horde4_-_imp|Horde4 - IMP]] |
| |
Wenn [[https://cyrusimap.org/|Cyrus IMAPd]]-Server das **Backend**-System war, sind nachfolgende Einstellungen zur erfolgreichen Authentifizierung gegen einen [[https://cyrusimap.org/|Cyrus IMAPd]]-Server möglich gewesen, siehe nachfolgende interne Links | Wenn [[https://cyrusimap.org/|Cyrus IMAPd]]-Server das **Backend**-System war, sind nachfolgende Einstellungen zur erfolgreichen Authentifizierung gegen einen [[https://cyrusimap.org/|Cyrus IMAPd]]-Server möglich gewesen, siehe nachfolgende interne Links |
* [[tachtler:horde4_-_imp#konfigurationbackend|Horde4 - IMP - Konfiguration Backend]] | * [[tachtler:horde5_-_imp#konfigurationbackend|Horde5 - IMP - Konfiguration: Backend]] |
| * [[tachtler:horde4_-_imp#konfigurationbackend|Horde4 - IMP - Konfiguration: Backend]] |
| |
Da [[http://www.horde.org/|Horde]] hier eine spezielle Unterstützung für [[https://cyrusimap.org/|Cyrus IMAPd]]-Server bietet, kann diese Art und Weise der **Authentifizierung** mit [[http://dovecot.org|Dovecot]] als **Backend**-System **__nicht__** mehr verwendet werden. | Da [[http://www.horde.org/|Horde]] hier eine spezielle Unterstützung für [[https://cyrusimap.org/|Cyrus IMAPd]]-Server bietet, kann diese Art und Weise der **Authentifizierung** mit [[http://dovecot.org|Dovecot]] als **Backend**-System **__nicht__** mehr verwendet werden. |
==== SQL authentication w/custom-made queries ==== | ==== SQL authentication w/custom-made queries ==== |
| |
Nachfolgende Tabelle zeigt die **Parameter**, beispielhaft für eine die **Authentifikation** gegen eine **SQL-Datenbank**, hier [[http://www.mysql.de/|MySQL]] als **SQL-Datenbank** | Nachfolgende Tabelle zeigt die **Parameter**, beispielhaft für eine **Authentifikation** gegen eine **SQL-Datenbank**, hier [[http://www.mysql.de/|MySQL]] als **SQL-Datenbank** |
| |
^ Parameter ^ Wert ^ | ^ Parameter ^ Wert ^ |
| $conf[auth][driver] | SQL authentication w/custom made-queries | | | ''$conf[auth][driver]'' | SQL authentication w/custom made-queries | |
| $conf[auth][params][phptype] | MySQL (mysqli) | | | ''$conf[auth][params][phptype]'' | MySQL (mysqli) | |
| $conf[auth][params][protocol] | TCP/IP | | | ''$conf[auth][params][protocol]'' | TCP/IP | |
| $conf[auth][params][hostspec] | mysql.tachtler.net | | | ''$conf[auth][params][hostspec]'' | mysql.tachtler.net | |
| $conf[auth][params][port] | 3306 | | | ''$conf[auth][params][port]'' | 3306 | |
| $conf[auth][params][username] | postfixuser | | | ''$conf[auth][params][username]'' | postfixuser | |
| $conf[auth][params][password] | geheim | | | ''$conf[auth][params][password]'' | geheim | |
| $conf[auth][params][database] | postfix | | | ''$conf[auth][params][database]'' | postfix | |
| $conf[auth][params][query_auth] | SELECT * FROM mailbox WHERE username = \L AND password =\P AND active = 1 | | | ''$conf[auth][params][query_auth]'' | SELECT * FROM mailbox WHERE username = \L AND password =\P AND active = 1 | |
| $conf[auth][params][query_add] | <code>INSERT INTO mailbox (username, password, name, maildir, quota, local_part, domain, created, modified, active) VALUES ( \L, \P, '', CONCAT(SUBSTRING_INDEX(\L, '@', -1), '/', SUBSTRING_INDEX(\L, '@', 1), '/'), '5120000000', SUBSTRING_INDEX(\L, '@', 1), SUBSTRING_INDEX(\L, '@', -1), now(), now(), '1')</code> | | | ''$conf[auth][params][query_add]'' | INSERT INTO mailbox (username, password, name, maildir, quota, local_part, domain, created, modified, active) VALUES ( \L, \P, %%''%%, CONCAT(SUBSTRING_INDEX(\L, '@', -1), '/', SUBSTRING_INDEX(\L, '@', 1), '/'), '5120000000', SUBSTRING_INDEX(\L, '@', 1), SUBSTRING_INDEX(\L, '@', -1), now(), now(), '1') | |
| $conf[auth][params][query_getpw] | SELECT password FROM mailbox WHERE username = \L | | | ''$conf[auth][params][query_getpw]'' | SELECT password FROM mailbox WHERE username = \L | |
| $conf[auth][params][query_update] | UPDATE mailbox SET password = \P WHERE username = \L | | | ''$conf[auth][params][query_update]'' | UPDATE mailbox SET password = \P WHERE username = \L | |
| ''$conf[auth][params][query_resetpassword]'' | UPDATE users SET password = \P WHERE userid = \L | | | ''$conf[auth][params][query_resetpassword]'' | UPDATE mailbox SET password = \P WHERE username = \L | |
| ''$conf[auth][params][query_remove]'' | UPDATE users SET password = \P WHERE userid = \L | | | ''$conf[auth][params][query_remove]'' | UPDATE mailbox SET password = \P WHERE username = \L | |
| ''$conf[auth][params][query_list]'' | SELECT username FROM mailbox AND active = 1 | | | ''$conf[auth][params][query_list]'' | SELECT username FROM mailbox AND active = 1 | |
| ''$conf[auth][params][query_exists]'' | SELECT 1 FROM mailbox WHERE username = \L AND active = 1 | | | ''$conf[auth][params][query_exists]'' | SELECT 1 FROM mailbox WHERE username = \L WHERE active = 1 | |
| ''$conf[auth][params][encryption]'' | plain | | | ''$conf[auth][params][encryption]'' | plain | |
| |
| :!: **WICHTIG** - Die zugrunde liegenden Tabellen der **SQL-Datenbank** stammen aus [[http://postfixadmin.sourceforge.net/|Postfix Admin]], siehe auch nachfolgenden internen Link |
| * [[tachtler:postfix_admin|Postfix Admin]] |
| |