在 Message Queue 3.7 UR1 中,在 config.properties 文件的注释部分给出了将 LDAP 服务器用作用户系统信息库的示例代理配置,而 default.properties 文件中的 LDAP 用户系统信息库示例已被注释掉。
如果您以前使用示例 LDAP 用户系统信息库属性(在 default.properties 文件中指定)中的任何属性值,则当您的 JMS 应用程序客户端尝试创建 JMS 连接时,将会收到安全异常。升级到 Message Queue 3.7 UR1 之后将会发生这种情况。
当 JMS 客户端尝试连接到 Message Queue 3.7 UR1 代理时,代理日志中会记录一个错误,且 JMS 客户端会收到以下异常:
SecurityException. 20/Aug/2004:11:16:41 PDT] ERROR [B4064]: Ldap repository ldap property .uidattr not defined for authentication type basic:com.sun.messaging.jmq.auth.LoginException: [B4064]: Ldap repository ldap property .uidattr not defined for authentication type basic
解决方法 请按照《Sun Java System Message Queue 3.7 UR1 管理指南》中的第 7 章 “Managing Security”中的说明来设置代理属性 imq.user_repository.ldap.uidattr。