[질문] 아파치 사용자 인증 PAM에서 에러가 발생합니다.
글쓴이: vamf12 / 작성시간: 일, 2006/10/22 - 1:25오후
OS : FreeBSD 6.1
Apache : 2.2.0
mod_auth_pam : 1.1.1_2
httpd.config에서 모듈 로드하고, 특정 디렉토리에 아래와 같이 인증을 적용하였습니다.
Allowoverride all
AuthPAM_Enabled on
AuthName "예제"
AuthType "basic"
require 특정유저
pam.d/httpd 파일을 생성하고, 간략하게 설정해 주었습니다.
문법상으로는 문제가 없는것 같습니다.
실제 해당 디렉토리로 접근 할경우, 웹브라우저에는 500에러(내부 서버 에러)가 출력되고, 에러로그에는 다음과 같은 기록이 남습니다.
Bad file descriptor: Could not open password file : (NULL)
PAM쪽이 문제인듯 싶지만, 어떻게 접근해야 할지 막막하네요.. ㅠ_ㅠ
Forums:
PAM형식이 apache
PAM형식이 apache 2.x이후에서 지원하고 있나요? 공식적으로는 잘모르겠지만 예전에 자료를
찾다가 apache 1.x에서만 지원되고 2.x이후에는 지원하지 않는다고 들었던 기억이 있어서요.
음... 자세한건 모르겠지만 비슷한 형식이
http://httpd.apache.org/docs/2.2/howto/auth.html
에 나와있습니다. 어차피 위에서 출력된 내용의 에러로그도 제가 알기론 password파일을
어딘가에 만들어놓아야 발생하지 않는다고 들었었는데...(항상 기억에만 의존하다보니
정확한 답변을 드릴 수가 없네요.)
------------------------------
좋은 하루 되세요.
------------------------------
좋은 하루 되세요.
댓글 달기