设置LdapIdentityStoreDefinition属性如下:
@LdapIdentityStoreDefinition(
url = "",bindDnPassword = "${ALIAS=somepassword}",// this is not working .
callerSearchBase = "",callerSearchFilter = "",groupSearchFilter = ""
)
在Payara服务器中创建别名somepasword,如下所示:
create-password-alias somepassword
Enter the alias password>
Enter the alias password again>
Command create-password-alias executed successfully.
正在运行的应用程序上出现异常:
[2019-11-26T14:46:42.101-0500] [Payara 5.191] [WARNING] [] [javax.enterprise.system.container.web.com.sun.web.security] [tid: _ThreadID=29 _ThreadName=http-thread-pool::http-listener-1(2)] [timeMillis: 1574797602101] [levelValue: 900] [[
JASPIC: http msg authentication fail
javax.el.PropertyNotFoundException: ELResolver cannot handle a null base Object with identifier 'somepassword'
at com.sun.el.lang.ELSupport.throwUnhandled(ELSupport.java:68)
at com.sun.el.parser.AstIdentifier.getvalue(AstIdentifier.java:126)
at com.sun.el.parser.AstAssign.getvalue(AstAssign.java:57)
at com.sun.el.ValueExpressionImpl.getvalue(ValueExpressionImpl.java:226)
at javax.el.ELProcessor.getvalue(ELProcessor.java:129)