2015-01-25 2 views
2

내 LDAP 서버와,이 시점에서,이 사용자를 가지고있다.는 LDAP를 기본 인증은 글래스 피시

<security-role-mapping> 
    <role-name>secure</role-name> 
    <group-name>users</group-name> 
    </security-role-mapping> 

:

<security-constraint> 
     <display-name>Private</display-name> 
     <web-resource-collection> 
      <web-resource-name>secret</web-resource-name> 
      <description/> 
      <url-pattern>/secured/*</url-pattern> 
      <http-method>GET</http-method> 
      <http-method>POST</http-method> 
      <http-method>HEAD</http-method> 
      <http-method>PUT</http-method> 
      <http-method>OPTIONS</http-method> 
      <http-method>TRACE</http-method> 
      <http-method>DELETE</http-method> 
     </web-resource-collection> 
     <auth-constraint> 
      <description/> 
      <role-name>secure</role-name> 
     </auth-constraint> 
    </security-constraint> 

내 sun-web.xml에이 있습니다

enter image description here

내 web.xml 파일이 있습니다 :

내 글래스 피시 콘솔이 구성이 내가 인증하고자 할 때 사용자 이름 (uid)과 카티아 (catia)로 1을 소개합니다. to userPassword)를 암호로 변경하십시오.

로그인 할 수 없습니다. 내가 뭘 잘못하고 있니?

답변

1

glassfish LDAP 구성에 익숙하지 않지만 최소한 Base-DN은 잘못된 것으로 보입니다. "ou = users, ou = system"은 스크린 샷에 따라 올바른 값이됩니다.

"search-bind-dn"값도 올바르지 않은 것처럼 보입니다. LDAP 관리자 사용자의 DN이어야한다고 가정합니다. uid = admin, ou = system.

sun-web.xml에서 사용되는 security-role-mapping에는 "그룹 지정"필드에도 정의 된 해당 그룹이 있어야합니다 (현재는 비어 있음).