Operating System - HP-UX
1823144 Members
3630 Online
109647 Solutions
New Discussion

PAM per user authentication

 
pkal
New Member

PAM per user authentication

I would like to use RADIUS authentication for some users and standard Unix authentication for others (for example: root). Is it possible to do it?
First, I tried to use libpam_updbe.1 and pam_user.conf. However, it seems that this module allows login for all users without any password...
Next, I tried pam_per_user module (http://www.feep.net/PAM/pam_per_user/). However, I have not found a HP binary of that module. I compiled it from sources, but it cannot be loaded. I noticed, that the compiled binary is not a shared library, but "relocatable object":

# file /usr/local/lib/security/pam_per_user.so.1
/usr/local/lib/security/pam_per_user.so.1: PA-RISC2.0 relocatable object
# ldd /usr/local/lib/security/pam_per_user.so.1
ldd: "/usr/local/lib/security/pam_per_user.so.1" is not a shared executable.

It is different to other modules, for example:
# file /usr/lib/security/libpam_unix.1
/usr/lib/security/libpam_unix.1: PA-RISC1.1 shared library -not stripped
How should it be built to work on HP-UX?
I use version B.11.11.
Thanks in advance
pkal
1 REPLY 1
pkal
New Member

Re: PAM per user authentication

Now it seems that pam_per_user works fine. The problem was in Makefile - should be used -b flag, not -shared.

Regards,
pkal