doc:appunti:linux:sa:davical
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:appunti:linux:sa:davical [2018/11/11 08:34] – [Probalema Privacy List Users] niccolo | doc:appunti:linux:sa:davical [2024/11/06 16:19] (current) – [Sicurezza accesso PostgreSQL] niccolo | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ======  | + | ======  | 
| Nella gestione di calendari condivisi sembra che l' | Nella gestione di calendari condivisi sembra che l' | ||
| Line 28: | Line 28: | ||
| Al termine viene stampata la password di **admin** (generata automaticamente) necessaria per accedere all' | Al termine viene stampata la password di **admin** (generata automaticamente) necessaria per accedere all' | ||
| - | Per rendere accessibili le pagine web di amministrazione è sufficiente un link simbolico: | + | Per rendere accessibili le pagine web di amministrazione è sufficiente un link simbolico  | 
| < | < | ||
| Line 34: | Line 34: | ||
| </ | </ | ||
| - | Nelle impostazioni  | + | Si consiglia  | 
| < | < | ||
| - | # DAViCal settings. | + | < | 
| - |      | + | DirectoryIndex index.php | 
| - |      | + |      | 
| - |          | + | Require all granted | 
| - | Order allow,deny | + | </Directory> | 
| - | Allow from all | + | |
| - |      | + | < | 
| - |      | + | SSLEngine on | 
| - |      | + | ServerName dav.site.org | 
| - |      | + |     SSLCertificateFile  | 
| - |     #php_value error_reporting "E_ALL & ~E_NOTICE" | + |     SSLCertificateKeyFile  | 
| - |      | + |      | 
| + | ServerAdmin postmaster@site.org | ||
| + |     ErrorLog ${APACHE_LOG_DIR}/ | ||
| + |     CustomLog ${APACHE_LOG_DIR}/ | ||
| + |     Alias /dav / | ||
| + |      | ||
| + | # PT is important if you are using an alias, it implies L | ||
| + |     # Redirect / | ||
| + |      | ||
| + |      | ||
| + |     RewriteRule ^/principals/ | ||
| + |      | ||
| + |      | ||
| + |     RewriteRule ^/ | ||
| + | # Redirect / requests to web login page | ||
| + |      | ||
| + | </ | ||
| </ | </ | ||
| Line 54: | Line 70: | ||
| <code php> | <code php> | ||
| - |   $c-> | + |   $c-> | 
| - |   $c-> | + |   $c-> | 
| - |   $c-> | + |   $c-> | 
| </ | </ | ||
| Line 66: | Line 82: | ||
| local    | local    | ||
| local    | local    | ||
| + | </ | ||
| + | |||
| + | La connessione ti tipo **local** significa tramite //Unix domain socket//, che è utilizzata come impostazione predefinita dal codice PHP di Davical. In alternativa si può approfittare della configurazione predefinita di PostgreSQL che consente l' | ||
| + | |||
| + | < | ||
| + | host    all    all    127.0.0.1/ | ||
| </ | </ | ||
| Line 75: | Line 97: | ||
| </ | </ | ||
| - | In ''/ | + | In ''/ | 
| <code php> | <code php> | ||
| - | $c-> | + | $c-> | 
| </ | </ | ||
| - | e si protegge opportunamente  | + | visto che il file contiene una password sensibile, lo si protegge opportunamente: | 
| < | < | ||
| Line 92: | Line 114: | ||
| ==== Probalema Privacy List Users ==== | ==== Probalema Privacy List Users ==== | ||
| - | Dall' | + | Dall' | 
| + | |||
| + | L' | ||
| - | Anche l' | + | Il problema riguarda anche la pagina  | 
| Forse c'è un sistema per mitigare il problema, vedere il post **[[https:// | Forse c'è un sistema per mitigare il problema, vedere il post **[[https:// | ||
| - | Il problema riguarda anche la pagina di amministrazione delle **Collection**, | ||
| ==== Struttura del database ==== | ==== Struttura del database ==== | ||
| Line 123: | Line 146: | ||
| < | < | ||
| - | davical=#  | + | SELECT user_no, dav_name, is_calendar, | 
|   |   | ||
| ---------+---------------------------------+-------------+--------------- | ---------+---------------------------------+-------------+--------------- | ||
| Line 130: | Line 153: | ||
| </ | </ | ||
| - | Per ogni oggetto creato  | + | Per ogni oggetto creato  | 
| < | < | ||
| - | SELECT  | + | SELECT  | 
| - |  user_no  | + |      | 
| - | ---------+-------------+--------+--------------- | + |  dav_id  | 
| - |      | + | --------+-------------+--------------- | 
| - |      | + |    2322 | VEVENT  | 
| + |     | ||
| + |    2324 | VEVENT  | ||
| + |     | ||
| + |    2326 | VEVENT  | ||
| + |    2327 | VEVENT  | ||
| </ | </ | ||
| Il campo **caldav_data** contiene il dato vero e proprio nel formato opportuno, ad esempio **VCARD** che a sua volta contiene gli eventuali tag **TEL**, **EMAIL**. **PHOTO**, ecc. | Il campo **caldav_data** contiene il dato vero e proprio nel formato opportuno, ad esempio **VCARD** che a sua volta contiene gli eventuali tag **TEL**, **EMAIL**. **PHOTO**, ecc. | ||
| - | I dettagli della VCARD sono anche nelle tabelle **addressbook_address_adr**, | + | I dettagli della VCARD sono anche nelle tabelle **addressbook_address_adr**, | 
| < | < | ||
| Line 159: | Line 187: | ||
|   |   | ||
| ---------+-------------+------------------ | ---------+-------------+------------------ | ||
| - | 1001 | VCARD | +39 367 788 2732 | ||
| - | 1001 | VCARD | +39 367 788 2732 | ||
| - | 1001 | VCARD | +39 367 788 2732 | ||
| 1001 | VCARD | +39 367 788 2732 | 1001 | VCARD | +39 367 788 2732 | ||
| </ | </ | ||
doc/appunti/linux/sa/davical.1541921648.txt.gz · Last modified:  by niccolo
                
                