This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
web_интерфейс_к_почте [2024/01/03 19:03] val [Roundcube] |
web_интерфейс_к_почте [2024/02/16 10:13] val [Roundcube] |
||
---|---|---|---|
Line 50: | Line 50: | ||
'user_specific' => false, // If true the base_dn, bind_dn and bind_pass default to the user's IMAP login. | 'user_specific' => false, // If true the base_dn, bind_dn and bind_pass default to the user's IMAP login. | ||
- | 'base_dn' => 'ou=People,dc=corpX,dc=un', | + | // 'base_dn' => 'ou=People,dc=corpX,dc=un', |
- | //// 'base_dn' => 'cn=Users,dc=corpX,dc=un', | + | 'base_dn' => 'cn=Users,dc=corpX,dc=un', |
// 'base_dn' => 'dc=corpX,dc=un', | // 'base_dn' => 'dc=corpX,dc=un', | ||
- | // 'bind_dn' => 'cn=Administrator,cn=Users,dc=corpX,dc=un', | + | 'bind_dn' => 'cn=Administrator,cn=Users,dc=corpX,dc=un', |
- | // 'bind_pass' => 'Pa$$w0rd', | + | 'bind_pass' => 'Pa$$w0rd', |
'search_filter' => '', // e.g. '(&(objectClass=posixAccount)(uid=%u))' | 'search_filter' => '', // e.g. '(&(objectClass=posixAccount)(uid=%u))' | ||
Line 112: | Line 112: | ||
<code> | <code> | ||
- | # cat /var/lib/roundcube/config/config.inc.php | + | debian12# cat /var/lib/roundcube/config/config.inc.php |
</code><code> | </code><code> | ||
... | ... | ||
Line 119: | Line 119: | ||
$config['oauth_client_id'] = "any-client"; | $config['oauth_client_id'] = "any-client"; | ||
$config['oauth_client_secret'] = "anystring"; | $config['oauth_client_secret'] = "anystring"; | ||
- | $config['oauth_auth_uri'] = "https://kc.corp13.un/realms/corp13/protocol/openid-connect/auth"; | + | $config['oauth_auth_uri'] = "https://keycloak.corp13.un/realms/corp13/protocol/openid-connect/auth"; |
- | $config['oauth_token_uri'] = "https://kc.corp13.un/realms/corp13/protocol/openid-connect/token"; | + | $config['oauth_token_uri'] = "https://keycloak.corp13.un/realms/corp13/protocol/openid-connect/token"; |
- | $config['oauth_identity_uri'] = "https://kc.corp13.un/realms/corp13/protocol/openid-connect/userinfo"; | + | $config['oauth_identity_uri'] = "https://keycloak.corp13.un/realms/corp13/protocol/openid-connect/userinfo"; |
$config['oauth_verify_peer'] = false; | $config['oauth_verify_peer'] = false; | ||
$config['oauth_scope'] = "email profile openid"; | $config['oauth_scope'] = "email profile openid"; | ||
Line 128: | Line 128: | ||
$config['oauth_login_redirect'] = false; | $config['oauth_login_redirect'] = false; | ||
$config['login_password_maxlen'] = 4096; | $config['login_password_maxlen'] = 4096; | ||
- | ... | ||
</code><code> | </code><code> | ||
- | # cat /usr/share/roundcube/program/include/rcmail_oauth.php | + | debian12# cat /usr/share/roundcube/program/include/rcmail_oauth.php |
</code><code> | </code><code> | ||
... | ... | ||
Line 138: | Line 137: | ||
//$oauth_identity_uri = $this->options['identity_uri']; | //$oauth_identity_uri = $this->options['identity_uri']; | ||
- | $oauth_token_uri = "https://kc.corp13.un/realms/corp13/protocol/openid-connect/token"; | + | $oauth_token_uri = "https://keycloak.corp13.un/realms/corp13/protocol/openid-connect/token"; |
$oauth_client_id = "any-client"; | $oauth_client_id = "any-client"; | ||
$oauth_client_secret = "anystring"; | $oauth_client_secret = "anystring"; | ||
- | $oauth_identity_uri = "https://kc.corp13.un/realms/corp13/protocol/openid-connect/userinfo"; | + | $oauth_identity_uri = "https://keycloak.corp13.un/realms/corp13/protocol/openid-connect/userinfo"; |
... | ... | ||
</code> | </code> |