【发布时间】:2010-02-18 04:04:19
【问题描述】:
我正在使用 Grails 并使用 Grails LDAP 作为我的身份验证机制来开发 Web 应用程序。但是,我总是收到以下错误:
{错误 500:无法将空值或空值传递给构造函数 小服务程序:默认 URI:/ldap-app/j_spring_security_check 异常消息:无法将空值或空值传递给构造函数 原因:无法将空值或空值传递给构造函数 类:GrailsAuthenticationProcessingFilter }
我的 SecurityConfig.groovy 文件是:
security {
// see DefaultSecurityConfig.groovy for all settable/overridable properties
active = true
loginUserDomainClass = "User"
authorityDomainClass = "Role"
requestMapClass = "Requestmap"
useLdap = true
ldapRetrieveDatabaseRoles = false
ldapRetrieveGroupRoles = false
ldapServer = 'ldap://worf-mi.dapc.kao.au:389'
ldapManagerDn = 'CN=sa-ldap-its,OU=Unix Servers for Kerberos,OU=Information Technology Services,OU=Special Accounts,DC=nexus,DC=dpac,DC=cn'
ldapManagerPassword = 'Asdf1234'
ldapSearchBase = 'OU=People,DC=nexus,DC=dpac,DC=cn'
ldapSearchFilter = '(&(cn={0})(objectClass=user))'
}
【问题讨论】:
标签: security spring authentication grails ldap