Google-Auth-Token setzen un...
Bernd Wurst authored 12 years ago
|
modules/googleauth/overview.php 1) <?php
modules/googleauth/overview.php 2) /*
modules/googleauth/overview.php 3) This file belongs to the Webinterface of schokokeks.org Hosting
modules/googleauth/overview.php 4)
|
Copyright year update
Bernd Wurst authored 7 years ago
|
modules/webmailtotp/overview.php 5) Written 2008-2018 by schokokeks.org Hosting, namely
|
Google-Auth-Token setzen un...
Bernd Wurst authored 12 years ago
|
modules/googleauth/overview.php 6) Bernd Wurst <bernd@schokokeks.org>
modules/googleauth/overview.php 7) Hanno Böck <hanno@schokokeks.org>
modules/googleauth/overview.php 8)
modules/googleauth/overview.php 9) To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
modules/googleauth/overview.php 10)
modules/googleauth/overview.php 11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see
modules/googleauth/overview.php 12) http://creativecommons.org/publicdomain/zero/1.0/
modules/googleauth/overview.php 13)
modules/googleauth/overview.php 14) Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code.
modules/googleauth/overview.php 15) */
modules/googleauth/overview.php 16)
|
Umbenennung Google-Auth nac...
Bernd Wurst authored 12 years ago
|
modules/webmailtotp/overview.php 17) require_once('totp.php');
|
Google-Auth-Token setzen un...
Bernd Wurst authored 12 years ago
|
modules/googleauth/overview.php 18) require_role(ROLE_SYSTEMUSER);
modules/googleauth/overview.php 19)
|
Umbenennung Google-Auth nac...
Bernd Wurst authored 12 years ago
|
modules/webmailtotp/overview.php 20) title("Zwei-Faktor-Anmeldung am Webmailer");
|
Google-Auth-Token setzen un...
Bernd Wurst authored 12 years ago
|
modules/googleauth/overview.php 21)
modules/googleauth/overview.php 22) output('<p>Sie können bei '.config('company_name').' den Zugang zum Webmailer mit einem Zwei-Faktor-Prozess mit abweichendem Passwort schützen.</p>
modules/googleauth/overview.php 23) <p>Dieses System schützt Sie vor mitgelesenen Tastatureingaben in nicht vertrauenswürdiger Umgebung z.B. in einem Internet-Café.</p>
|
Umbenennung Google-Auth nac...
Bernd Wurst authored 12 years ago
|
modules/webmailtotp/overview.php 24) <p>Beim Zwei-Faktor-Prozess müssen Sie zum Login ein festes Webmail-Passwort und zusätzlich ein variabler Code, den beispielsweise Ihr Smartphone erzeugen kann, eingeben. Da sich dieser Code alle 30 Sekunden ändert, kann ein Angreifer sich nicht später mit einem abgehörten Passwort noch einmal anmelden. Zum Erzeugen des Einmal-Codes benötigen Sie ein Gerät, das <strong>TOTP-Einmalcodes nach RFC 6238</strong> erzeugt. Beispiele dafür sind <a href="https://code.google.com/p/google-authenticator/">Google-Authenticator</a> oder <a href="http://f-droid.org/repository/browse/?fdfilter=motp&fdid=org.cry.otp&fdpage=1">mOTP</a>. Meist ist dies ein Smartphone mit einer entsprechenden App.</p>
modules/webmailtotp/overview.php 25) <p><strong>Beachten Sie:</strong> Die Zwei-Faktor-Anmeldung funktioniert nur für Webmail, beim Login via IMAP wird weiterhin nur das Passwort Ihres Postfachs benötigt. Damit dieses Passwort von einem Angreifer nicht mitgelesen werden kann, müssen Sie zur Zwei-Faktor-Anmeldung unbedingt ein separates Passwort festlegen.</p>
modules/webmailtotp/overview.php 26) <h3>Fügen Sie Zwei-Faktor-Anmeldung zu Ihren bestehenden Postfächern hinzu</h3>
|
Google-Auth-Token setzen un...
Bernd Wurst authored 12 years ago
|
modules/googleauth/overview.php 27) ');
modules/googleauth/overview.php 28)
modules/googleauth/overview.php 29)
modules/googleauth/overview.php 30) require_once('modules/email/include/hasaccount.php');
modules/googleauth/overview.php 31) require_once('modules/email/include/vmail.php');
modules/googleauth/overview.php 32)
modules/googleauth/overview.php 33) if (! (user_has_accounts() || count(get_vmail_accounts())>0)) {
modules/googleauth/overview.php 34)
modules/googleauth/overview.php 35) output('<p><em>Bisher haben Sie kein Postfach. Bitte erstellen sie zunächst ein Postfach.</em></p>');
modules/googleauth/overview.php 36) }
modules/googleauth/overview.php 37) else
modules/googleauth/overview.php 38) {
modules/googleauth/overview.php 39)
modules/googleauth/overview.php 40) /* VMAIL */
modules/googleauth/overview.php 41)
modules/googleauth/overview.php 42) $domains = get_vmail_domains();
modules/googleauth/overview.php 43) $vmail_accounts = get_vmail_accounts();
modules/googleauth/overview.php 44)
modules/googleauth/overview.php 45) $sorted_by_domains = array();
modules/googleauth/overview.php 46) foreach ($vmail_accounts AS $account)
modules/googleauth/overview.php 47) {
modules/googleauth/overview.php 48) if ($account['password'] == '') {
modules/googleauth/overview.php 49) continue;
modules/googleauth/overview.php 50) }
modules/googleauth/overview.php 51) if (array_key_exists($account['domain'], $sorted_by_domains))
modules/googleauth/overview.php 52) array_push($sorted_by_domains[$account['domain']], $account);
modules/googleauth/overview.php 53) else
modules/googleauth/overview.php 54) $sorted_by_domains[$account['domain']] = array($account);
modules/googleauth/overview.php 55) }
modules/googleauth/overview.php 56)
modules/googleauth/overview.php 57) DEBUG($sorted_by_domains);
modules/googleauth/overview.php 58)
modules/googleauth/overview.php 59) if (count($sorted_by_domains) > 0)
modules/googleauth/overview.php 60) {
modules/googleauth/overview.php 61) foreach ($sorted_by_domains as $accounts_on_domain)
modules/googleauth/overview.php 62) {
modules/googleauth/overview.php 63) if (count($sorted_by_domains) > 2) {
modules/googleauth/overview.php 64) output('<h4>'.$accounts_on_domain[0]['domainname'].'</h4>');
modules/googleauth/overview.php 65) }
modules/googleauth/overview.php 66)
modules/googleauth/overview.php 67) foreach ($accounts_on_domain AS $this_account)
modules/googleauth/overview.php 68) {
modules/googleauth/overview.php 69) $username = $this_account['local'].'@'.$this_account['domainname'];
modules/googleauth/overview.php 70) output('<div style="margin-left: 2em;"><p style="margin-left: -2em;"><strong>'.$username.'</strong></p>');
|
Umbenennung Google-Auth nac...
Bernd Wurst authored 12 years ago
|
modules/webmailtotp/overview.php 71) $id = account_has_totp($username);
|
Google-Auth-Token setzen un...
Bernd Wurst authored 12 years ago
|
modules/googleauth/overview.php 72) if ($id) {
|
Umbenennung Google-Auth nac...
Bernd Wurst authored 12 years ago
|
modules/webmailtotp/overview.php 73) output(addnew('delete', 'Zwei-Faktor-Anmeldung für dieses Postfach abschalten', 'id='.$id, 'style="background-image: url('.$prefix.'images/delete.png); color: red;"'));
|
Google-Auth-Token setzen un...
Bernd Wurst authored 12 years ago
|
modules/googleauth/overview.php 74) } else {
|
Umbenennung Google-Auth nac...
Bernd Wurst authored 12 years ago
|
modules/webmailtotp/overview.php 75) output(addnew('setup', 'Zwei-Faktor-Anmeldung für dieses Postfach aktivieren', 'username='.urlencode($username)));
|
Google-Auth-Token setzen un...
Bernd Wurst authored 12 years ago
|
modules/googleauth/overview.php 76) }
modules/googleauth/overview.php 77) output('</div>');
modules/googleauth/overview.php 78) }
modules/googleauth/overview.php 79) }
modules/googleauth/overview.php 80) }
modules/googleauth/overview.php 81)
modules/googleauth/overview.php 82) /* Mailaccounts */
modules/googleauth/overview.php 83)
modules/googleauth/overview.php 84) require_once('modules/email/include/mailaccounts.php');
modules/googleauth/overview.php 85)
modules/googleauth/overview.php 86) $accounts = mailaccounts($_SESSION['userinfo']['uid']);
modules/googleauth/overview.php 87)
modules/googleauth/overview.php 88) if (count($accounts) > 0) {
modules/googleauth/overview.php 89)
modules/googleauth/overview.php 90) if (count($sorted_by_domains) > 0) {
modules/googleauth/overview.php 91) output('<h3>IMAP/POP3-Accounts</h3>');
modules/googleauth/overview.php 92) }
modules/googleauth/overview.php 93)
modules/googleauth/overview.php 94)
modules/googleauth/overview.php 95) foreach ($accounts AS $acc) {
modules/googleauth/overview.php 96) if ($acc['mailbox']) {
modules/googleauth/overview.php 97) output('<div style="margin-left: 2em;"><p style="margin-left: -2em;"><strong>'.$acc['account'].'</strong></p>');
|
Attribution für die externe...
Bernd Wurst authored 12 years ago
|
modules/googleauth/overview.php 98) $username = $acc['account'];
|
Umbenennung Google-Auth nac...
Bernd Wurst authored 12 years ago
|
modules/webmailtotp/overview.php 99) $id = account_has_totp($username);
|
Attribution für die externe...
Bernd Wurst authored 12 years ago
|
modules/googleauth/overview.php 100) if ($id) {
|
Umbenennung Google-Auth nac...
Bernd Wurst authored 12 years ago
|
modules/webmailtotp/overview.php 101) output(addnew('delete', 'Zwei-Faktor-Anmeldung für dieses Postfach abschalten', 'id='.$id, 'style="background-image: url('.$prefix.'images/delete.png); color: red;"'));
|
Attribution für die externe...
Bernd Wurst authored 12 years ago
|
modules/googleauth/overview.php 102) } else {
|
Umbenennung Google-Auth nac...
Bernd Wurst authored 12 years ago
|
modules/webmailtotp/overview.php 103) output(addnew('setup', 'Zwei-Faktor-Anmeldung für dieses Postfach aktivieren', 'username='.urlencode($username)));
|
Attribution für die externe...
Bernd Wurst authored 12 years ago
|
modules/googleauth/overview.php 104) }
|