???? ????? ¡ú ????? ????? ????? ?? ???? ????? ????? ??????? ?- Áú»¢¶Ä²© ?????? ?????? ??????. ?????? ??????? ?? ???????, HTTP, LDAP ?-SAML ?????.
?????? ????, Áú»¢¶Ä²© ?????? ?????? Áú»¢¶Ä²© ????? ???? ?? ????????. ?? ???? ????? ?? ???? ????? ????? ?-LDAP ??? ?????? ?? ???? ????? LDAP ?? ???? ?????? ??????? ????????.
??? ?????? LDAP ????? ????? ????? ???? ???? ?? ????????, ???? ?? ????????? LDAP ????? ?? ?????? ??????, ??? ???? ?? ????????? ????? ????? ?? ???? ????? ????? ?? ????? ? LDAP.
???? ?? ????? ?????? ?? ???? ?????? ?-????? group. ????? ?? ????? LDAP ????? ????? ??????, ?????? ??????? ??????? ????? ?????? ????? ????? ?? ??? Áú»¢¶Ä²©. ??????? ??? ???? ????? frontend access ????? ?? ??????. ?????, ?? ???? ????? ?????? ????? ????? ?????, ???? ????? ???? ????? LDAP ??????? ??? ???? ????? ?????? ?????? ??-frontend access ??? ????? ?-LDAP. ?? ????? ???? ?????? ??????? ??? ????? ?? ????? LDAP, ????? ?? ?? ???? ?????? ????? ???? ?????.
HTTP ?-SAML 2.0 ???? ?????? ?????? ????? ????? ?????? ????? ???? ?????.
????????? ????? ?????? ?????? ?? ??????? ?????? ??????? ????? ?????? ??????? Áú»¢¶Ä²© ???????.
???? ?????? ?? ???????? ??????? ???????? ?????:
????? | ????? |
---|---|
???? ????? ??????? | ?????? ????, ???? ?????? ???????? ????? ?-8. ???? ????: 1-70. ???? ?? ???????? ?????? ?-72 ????? ??????. |
?????? ????? ????? | ??? ????? ????? ??? ?? ??? ??? ????? ????? ?????? ?????? ??????: -??? ????? ???? ?????? ???? -???? -?? ????? < br>??? ??? ???? ????? ??? ????? ??? ?? ????? ?????? ??? ??????. |
????? ??????? ???? ?????? | ?? ??? ??????, ????? ????? ??? ??????? ?????: - ?? ????? ????? ?? ?? ??????, ?? ?????? ?? ?? ?????? - ?? ????? ????? ??? ???????? ?? ??????? ???????? ?????. ????? ???????? ??????? ?????????? ????? ????? ???????? ?????? NCSC "Top 100k ???????", ????? SecLists "Top 1M ???????" ?????? ????? ?? Áú»¢¶Ä²©- ??????? ????????. ??????? ??????? ?? ????? ?????? ??????? ??????? ?????? ?? ?????? ???????? ???? ?????? ????? ??? ?????? ????? ???. |
??????? ??????? ??????? ?????? ?? ?????? ?? ?????? ??????? ?????, ?? ?? ????? ???? ???? ????? ?????, ?????? ????? ????? ????? ??????? ????????. ??? ?? ? ????? ??????? ???? ??? ???? ????? ? ?? ?????? ?????? ??-????? ???? ????? ???? ??????? ????? ¡ú ???????.
????? ????? HTTP ?? ??? ??????? (??????: ????? ???? ?????? ??????, NTLM/Kerberos) ?????? ???? ????? ? ???????. ???? ?? ?????? ???? ??????? ?? ?- Áú»¢¶Ä²©, ??? ???? ??? ?? ???? ????? ?????? Áú»¢¶Ä²©.
::: ???? ?? ???? ????! ??? ?? ??? ???????? ?????? ????? ????? ????? ???? ?????? ???. :::
?????? ?????:
????? | ????? |
---|---|
???? ????? HTTP | ??? ?? ???? ?????? ??? ????? ????? HTTP. ????? ????? ??? ![]() |
???? ??????? ?????? ???? | ???? ?? ?????? ??????? ?? ??????? ?: ???? ??????? ?? Áú»¢¶Ä²© - ?? ??????? ???? ?? Áú»¢¶Ä²©. ???? ??????? ?-HTTP - ?? ??????? ?? HTTP.<br >????? ????? ????? ????? ??? ??????? ???? ?? index_http.php ????. ?? ???? ???????? ?????? ?????? ???? ????? ?'?? ??????? HTTP', ?????? ????? ???????? ?? ????? ????? ??? ???????? ????? ??????? ????? ?????? ?????? $_SERVER .?????? $_SERVER ??????? ?? $_SERVER PHP_AUTH_USER, REMOTE_USER, AUTH_USER.| |*??? ?? ??????*|????? ?????? ??????? ?? ???? ???????? ??? ????? ??? ??????. comp,any` - ?? ?? ?????? ??? 'Admin@any', 'comp\Admin', ?????? ????? ???? 'Admin'; ?? ?? ?????? ??? 'notacompany\Admin', ?????? ?????. |
????? ????? ?????? | ??? ?? ????? ???? ?????? ??? ???? ????? ????? ?????? (????? ?????? ????) ???? ???? ?????. ????. ???? ??????? ????? ?????? ?????? ??, ????, ????? 'ADMIN' ?? ?? ????? Áú»¢¶Ä²© ??? 'Admin'. ??? ?? ????? ??????? ????? ?????? ??????, ?????? ????? ?? ?????? ???? ??????? ?- ??? ?????? ?? Áú»¢¶Ä²© ?? ???? ????? ????? (???? Admin, admin). |
???????? ??????? ????? ?????? ?????? ??????? HTTP ??????? (?? ???? ??????? HTTP ????? ?????? ????) ???????? ?-401 ?????, ????? ????? ?????? 'ErrorDocument 401 /index.php?form=default' ?? ??????? ????? ???????, ????? ???? ?- ???? ??????? ???? ?? Áú»¢¶Ä²©.
???? ?????? ?????? LDAP ?????? ?????? ???? ????? ? ???????. ???? ?? ?????? ???? ??????? ?? ?- Áú»¢¶Ä²©, ??? ???? ??? ?? ???? ????? ?????? Áú»¢¶Ä²©.
????? LDAP ?? Áú»¢¶Ä²© ???? ????? ?? Microsoft Active Directory ?-OpenLDAP.
?????? ?????:
????? | ????? |
---|---|
???? ????? LDAP | ??? ?? ???? ?????? ??? ????? ????? LDAP. |
???? LDAP | ?? ??? LDAP. ??????: ldap://ldap.zabbix.com ???? LDAP ?????? ????? ????????? ldaps. ldaps://ldap.zabbix.com ?? OpenLDAP 2.x.x ?????, ???? ?????? ?-LDAP URI ????? ldap://hostname:port ?? ldaps://hostname:port. |
????? | ????? ?? ??? LDAP. ????? ????? ??? 389. ???? ????? LDAP ?????? ???? ?????? ??? ???? ??? 636. ?? ?????? ??? ????? ??????? URI ????? ?? LDAP. |
Base DN | ???? ???? ???????? ?????: ou=Users,ou=system (???? OpenLDAP), DC=company,DC=com (???? Microsoft Active Directory) |
????? ????? | ????? ????? LDAP ?????? ??????: uid (???? OpenLDAP), sAMAccountName (???? Microsoft Active Directory) |
Bind DN | ????? LDAP ?????? ?????? ??? ??? LDAP, ???????: uid=ldap_search,ou=system (???? OpenLDAP), CN=ldap_search,OU=user_group ,DC=company,DC=com (???? Microsoft Active Directory) ????? ??????? ???? ?? ??. ???? ?? ?????? ??????? ???? ????? ?? ????? ??????? ???????? ?? ?????? (???? ?? ???????, ??????, ?????, ??????, ??????? ???'). ????? ?????, ???? ?? ?????? ?????????? ?????? LDAP ?????? ????? ??? ????? ??????. |
????? ????? ?????? | ??? ?? ????? ???? ?????? ??? ???? ????? ????? ?????? (????? ?????? ????) ???? ???? ?????. ????. ???? ??????? ????? ?????? ?????? ??, ????, ????? 'ADMIN' ?? ?? ????? Áú»¢¶Ä²© ??? 'Admin'. ??? ?? ????? ??????? ????? ?????? ??????, ?????? ????? ?? ?????? ???? ??????? ?- ??? ?????? ?? Áú»¢¶Ä²© ?? ???? ????? ????? (???? Admin, admin). |
????? ????? | ????? LDAP ?? ?????? ?????? ?????? ???? LDAP. |
????? ????? | ????? ?? ??? ?????? |
????? | ?? ????? ????? (??? ????? ??? ?-frontend ?? Áú»¢¶Ä²©). ?? ????? ?? ???? ??????? ???? LDAP. Áú»¢¶Ä²© ?? ????? ????? LDAP ?? ??? ???????? ???? ?? ?????? ?????. |
????? ????? | ????? LDAP ?? ?????? ?????. |
::: ???? ????? ????? ?? ???? ???????, ????? ? ????? LDAP ?????? (ldaps) ???? ????? ????? ???? ?????? ? ???? TLS_REQCERT allow
?????? /etc/openldap/ldap.conf ??????. ?? ???? ?????? ?? ????? ?????? ?-LDAP ????????. :::
????? ????? ????? LDAP ???? (Bind DN) ?????? ????? ?????? ??????? ??? LDAP ?????? ????????? ?-LDAP ????? ?????? ???????? ????? ??????? (?????? ?????? ????? Áú»¢¶Ä²©).
???? ??? ????? ???? ?????? ????? ?????? ????? ?-Bind password ???? ?????? ???? ?? ?????? ??? ?-LDAP ???.
????? ????? ?? ?? ????? ldap_search.
???? ?????? ?????? SAML 2.0 ??? ?????? ?- Áú»¢¶Ä²©. ???? ?? ?? ? ?????? ???? ??????? ?- Áú»¢¶Ä²©, ?? ???, ????? ?- Áú»¢¶Ä²© ??? ?? ???? ??????. ?? ?????? ?????, Áú»¢¶Ä²© ????? ??????? ?? ????? ?? ????? ?? ?????? ??????? ?? ??? SAML.
?? ????? SAML ?????, ???????? ????? ????? ??? ??? ??? ????? ?????? ?? ??? SAML ????? ?????.
?? ??? ????? ?? Áú»¢¶Ä²©, ??? ???? SAML (, , ?? ?????? ?? ???' ?- ???? ????:
<path_to_zabbix_ui>/index_sso.php?acs
<path_to_zabbix_ui>/index_sso.php?sls
??????? ?? <path_to_zabbix_ui>
: %% , , <any_public_ip_address>/zabbix %%
::: ???? ?? ???? ?? ???? ?????? php-openssl ?? ??? ???? ??? ?????? ?????? SAML ?-frontend. :::
??? ?????? ?????? SAML ?? ?????? ?? Áú»¢¶Ä²© ????? ?????:
1. ?? ????? ???? ???? ?????? ?- ui/conf/certs/, ??? ?? ??????? ?????? ??????? ????? ? zabbix.conf.php.
?????? ????, Áú»¢¶Ä²© ???? ???????? ?????:
2. ???? ?????? ?? ?? ??????? ??????? ????? ?- Áú»¢¶Ä²© ?????. ?? ???, ???? ????? ?????? ?????? ?- ???? ?????.
?????? ?????, ?????? ????? Áú»¢¶Ä²©:
????? | ????? |
---|---|
???? ????? SAML | ??? ?? ???? ?????? ??? ?????? ????? SAML. |
???? ???? IDP | ????? ??????? ?? ??? ????? SAML. |
????? ?-SSO ?? ????? | ????? ?-URL ???????? ????? ???? ??? ??????. |
SLO Service URL | ????? ?-URL ???????? ????? ???? ??? ??????. ?? ???? ???, ????? SLO ?? ????? ??????. |
// ????? ?? ?????// | ????? SAML ????? ??? ????? ??? ????? ?-Zabix. ????? ?????? ??????? ????? ?? ??? ??? ?????. ???????: uid userprincipalname samaccountname ?? ????? userusername urn:oid:0.9.2342.19200300.100.1.1 urn:oid:1.3.6.1.4.1.5923.1.1.1.13< br>urn:oid:0.9.2342.19200300.100.1.44 |
???? ???? SP | ????? ??????? ?? ??? ?????? SAML. |
????? ???? ?? SP | ????? ????? ????? ???? ?? ?? ??????. ???????: urn:oasis:names:tc:SAML:2.0:nameid-format:persistent urn:oasis:names:tc:SAML:2.0:nameid-format:transient urn:oasis:names:tc:SAML:2.0:nameid-format:kerberos <urn:oasis:names :tc:SAML:2.0:nameid-format:entity> |
???? | ??? ?? ????? ?????? ??? ????? ?????? ?????? ?? ?????? ????? SAML: ?????? ?????? ????? ????? ????? ????? ????? ?????? |
????? | ??? ?? ????? ?????? ??? ????? ?????? ?????? ?? ????? ????? SAML: ?????? ???? ?? |
????? ????? ?????? | ??? ?? ???? ?????? ??? ????? ??????? ????? ?????? (????? ?????? ????) ???? ???? ?????. ????. ???? ??????? ????? ?????? ?????? ??, ????, ????? 'ADMIN' ?? ?? ????? Áú»¢¶Ä²© ??? 'Admin'. ??? ?? ????? ??????? ????? ?????? ??????, ?????? ????? ?? ?????? ???? ??????? ?- ??? ?????? ?? Áú»¢¶Ä²© ?? ???? ????? ????? (???? Admin, admin). |
???? ?????? ??????? ?????? ?? SAML ????? ????? ?? Áú»¢¶Ä²© ???? ????? (zabbix.conf.php):
Áú»¢¶Ä²© ????? ?-SAML PHP ?? OneLogin ???? ????](https://github.com/onelogin/php-saml/tree/3.4.1) ?????? (???? 3.4.1). ????? ?? ??? $SSO['SETTINGS'] ???? ????? ???? ????? ?? ?????? ???????. ?????? ?? ???????? ?????, ??? ?????? ????? .
???? ?????? ?? ?? ????????? ????? ???? ?-$SSO['SETTINGS']:
?? ??? ????????? ?????? ???? ??????? ??? ???? ????. ??????? ????? ????? ?????.
?????, ?? ???? ?????? ?? Áú»¢¶Ä²© ???? ?????? ?????? ?? ???? ??????, ? ???? ?????? ??????? ?????? ????? ?? use_proxy_headers:
?? ??? ????? ????? ?????? ??? ?????? ????? ?? Áú»¢¶Ä²©, ???? ???? ????? ????? ?-TLS/SSL ?-Áú»¢¶Ä²© ?? ???? ???, ???? ????? ?? ???????? 'baseurl', 'strict' ?-'use_proxy_headers' ????? ???:
$SSO_SETTINGS=['strict' => false, 'baseurl' => "https://zabbix.example.com/zabbix/", 'use_proxy_headers' => true]
????? ??????:
$SSO['SETTINGS'] = [
'??????' => [
'signatureAlgorithm' => 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha384'
'digestAlgorithm' => 'http://www.w3.org/2001/04/xmldsig-more#sha384',
// ...
],
// ...
];
The Áú»¢¶Ä²© frontend configuration file (zabbix.conf.php) can be used to configure SSO with Kerberos authentication and ADFS:
$SSO['SETTINGS'] = [
'security' => [
'requestedAuthnContext' => [
'urn:oasis:names:tc:SAML:2.0:ac:classes:Kerberos',
],
'requestedAuthnContextComparison' => 'exact'
]
];
In this case, in the SAML configuration SP name ID field set: