Pam_ldap + solaris + mod_auth_pam

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello all,

I need some help.

I'm trying to mod_auth_pam to work. I have my Solaris 8 box set to auth
to an Ldap server works great. 

I'm now trying to get Apache to auth to PAM and in turn auth to my ldap
server.

the module loads ok I think.

When I compile I get 


bash-2.03# make clean
rm -f mod_auth_pam.o mod_auth_pam.so *~
bash-2.03# make
apxs -c mod_auth_pam.c -lpam -ldl
gcc -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE
-I/usr/local/apache/include  -c mod_auth_pam.c
mod_auth_pam.c:234:5: warning: multi-line string literals are deprecated
mod_auth_pam.c:239:5: warning: multi-line string literals are deprecated
mod_auth_pam.c: In function `pam_auth_basic_user':
mod_auth_pam.c:328: warning: initialization from incompatible pointer
type
ld -G -o mod_auth_pam.so mod_auth_pam.o -lpam -ldl

When I go to the dir with my .htaccess file I get a prompt I enter a
GOOD userid and pass. It fails

When I look in my error_log I get


 [Wed Oct 23 13:38:33 2002] [notice] Accept mutex: fcntl (Default:
fcntl)
[Wed Oct 23 13:39:04 2002] [error] (9)Bad file number: access to /stuff
failed for 147.101.182.61, reason: Permission denied
[Wed Oct 23 13:42:35 2002] [error] (9)Bad file number: access to /stuff
failed for 147.101.182.61, reason: Permission denied
[Wed Oct 23 13:42:36 2002] [error] access to /stuff failed for
147.101.182.61, reason: Permission denied


and this sometimes

[Wed Oct 23 13:30:43 2002] [error] (13)Permission denied: access to
/stuff failed for 147.101.182.61, reason: Get new authentication token

My .htaccess file

AuthType Basic
AuthName "Login as secure user"
AuthPAM_Enabled on
require valid-user

my pam.config
httpd   auth sufficient /usr/lib/security/pam_openldap.so.1 debug
httpd   auth required   /usr/lib/security/$ISA/pam_unix.so.1
use_first_pass debug








_______________________________________________

Pam-list@redhat.com
https://listman.redhat.com/mailman/listinfo/pam-list

[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux