此内容没有您所选择的语言版本。
6.2. Enabling LDAP Authentication
Overview 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
Red Hat JBoss A-MQ supplies a JAAS login module that enables it to use LDAP to authenticate users. The JBoss A-MQ JAAS LDAP login module is implemented by the
org.apache.karaf.jaas.modules.ldap.LDAPLoginModule class. It is preloaded in the container, so you do not need to install it's bundle.
Procedure 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
To enable JBoss A-MQ to use LDAP for user authentication you need to create a JAAS realm that includes the JBoss A-MQ LDAP login module. As shown in Example 6.6, “Red Hat JBoss A-MQ LDAP JAAS Login Module”, this is done by adding a
jaas:module element to the realm and setting its className attribute to org.apache.karaf.jaas.modules.ldap.LDAPLoginModule.
Example 6.6. Red Hat JBoss A-MQ LDAP JAAS Login Module
You will also need to provide values for the properties described in Table 6.2, “Properties for the Red Hat JBoss A-MQ LDAP Login Module”.
LDAP properties 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
Table 6.2, “Properties for the Red Hat JBoss A-MQ LDAP Login Module” describes the properties used to configure the Red Hat JBoss A-MQ JAAS LDAP login module.
All of the properties are mandatory except the SSL properties.
Example 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
Example 6.7, “Configuring a JAAS Realm that Uses LDAP Authentication” defines a JASS realm that uses the LDAP server located at ldap://localhost:10389.
Example 6.7. Configuring a JAAS Realm that Uses LDAP Authentication
Important
You must set
ssl.protocol to TLSv1, in order to protect against the Poodle vulnerability (CVE-2014-3566)