1
您好每一個我試圖在玻璃魚3.1配置Relam LDAP來解決這個問題,但我得到這個錯誤錯誤而獲得的Active Directory域與Glassfish的3.1
WARNING: SEC1106: Error during LDAP search with filter [uid=teuser].
WARNING: SEC1000: Caught exception.
javax.naming.NamingException: [LDAP: error code 1 - 000004DC: LdapErr: DSID-0C0906E8, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v1db1]; remaining name= 'DC=dev,DC=tcs,DC=com'
WARNING: WEB9102: Web Login Failed: com.sun.enterprise.security.auth.login.common.LoginException: Login failed: javax.security.auth.login.LoginException: User MyUserName not found.
web.xml中看起來是這樣的:
<security-constraint>
<display-name>Constraint1</display-name>
<web-resource-collection>
<web-resource-name>Simple Web Resource</web-resource-name>
<description/>
<url-pattern>*</url-pattern>
</web-resource-collection>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<realm-name>ldapRealm</realm-name>
<form-login-config>
<form-login-page>/index.jsp</form-login-page>
<form-error-page>/error.xhtml</form-error-page>
</form-login-config>
</login-config>
domain.xml中在GlassFish中的目錄:
<auth-realm name="ldapRealm" classname="com.sun.enterprise.security.auth.realm.ldap.LDAPRealm">
<property name="directory" value="ldap://10.0.???.???:389"></property>
<property name="base-dn" value="DC=dev,DC=tcs,DC=com"></property>
<property name="jaas-context" value="ldapRealm"></property>
</auth-realm>
我需要知道在glassfish的配置中出現什麼錯誤或者什麼?