Ralf S. Engelschall wrote:
On Mon, Feb 13, 2006, Doug Summers wrote:
Here are samples from OpenSSH & Sudo:
#<OpenPKG id="/syscfg/opkg:openssh">
openssh auth required /usr/lib/security/pam_aix try_first_pass
openssh account required /usr/lib/security/pam_aix
openssh password required /usr/lib/security/pam_aix
openssh session required /usr/lib/security/pam_aix
#</OpenPKG>
#<OpenPKG id="/syscfg/opkg:sudo">
sudo auth required /usr/lib/security/pam_aix try_first_pass
sudo account required /usr/lib/security/pam_aix
sudo password required /usr/lib/security/pam_aix
sudo session required /usr/lib/security/pam_aix
#</OpenPKG>
So far all I've had to do is replace 'pam_unix.so' with
'/usr/lib/security/pam_aix'.
Ok, so we have to add AIX support to the "pam" package. The replacement
of "pam_unix.so" with "pam_aix" is ok. I've added this to the "pamtool"
script in the "pam" package now. But why was the /usr/lib/security"
directory not determined by "pam.spec"? Can you provide the output
of a complete "openpkg rpm --rebuild" of the "pam" package plus the
result of "openpkg rc pam info" plus the output of "cat /etc/pam.conf
/etc/pam.d/*"? Perhaps this way we see why the directory prefix is
not correctly determined.
Ralf S. Engelschall
[EMAIL PROTECTED]
www.engelschall.com
'openpkg rpm --rebuild pam":
openpkg rpm --rebuild pam-0-2.5.0.src.rpm
Installing pam-0-2.5.0.src.rpm
Executing(%prep): env -i /syscfg/opkg/lib/openpkg/bash --norc
--noprofile --posix -e /syscfg/opkg/RPM/TMP/rpm-tmp.14184
+ cd /syscfg/opkg/RPM/TMP
+ exit 0
Executing(%build): env -i /syscfg/opkg/lib/openpkg/bash --norc
--noprofile --posix -e /syscfg/opkg/RPM/TMP/rpm-tmp.31022
+ cd /syscfg/opkg/RPM/TMP
+ exit 0
Executing(%install): env -i /syscfg/opkg/lib/openpkg/bash --norc
--noprofile --posix -e /syscfg/opkg/RPM/TMP/rpm-tmp.31022
+ cd /syscfg/opkg/RPM/TMP
+ rm -rf /syscfg/opkg/RPM/TMP/pam-0-root
+ pam_cfgloc=
+ pam_modpfx=
+ pam_incdir=
+ pam_libdir=
+ for cfgloc in /etc/pam.d /etc/pam.conf
+ '[' -f /etc/pam.d -o -d /etc/pam.d ']'
+ for cfgloc in /etc/pam.d /etc/pam.conf
+ '[' -f /etc/pam.conf -o -d /etc/pam.conf ']'
+ pam_cfgloc=/etc/pam.conf
+ break
+ '[' -d /etc/pam.conf ']'
+ '[' -f /etc/pam.conf ']'
++ cat /etc/pam.conf
++ head -1
++ grep '^#*[ ]*other'
++ awk '{ print $4; }'
+ mod=
+ case $mod in
+ for incdir in /usr/include /usr/local/include /opt/include
+ '[' -f /usr/include/security/pam_appl.h ']'
+ pam_incdir=/usr/include
+ break
+ for libdir in /lib /usr/lib /usr/local/lib /opt/lib
+ for ext in a so sl so.0
+ '[' -f /lib/libpam.a ']'
+ pam_libdir=/lib
+ break
+ '[' ./lib '!=' . ']'
+ break
+ '[' ./etc/pam.conf = . ']'
+ '[' ./usr/include = . ']'
+ '[' ./lib = . ']'
+ /syscfg/opkg/lib/openpkg/shtool mkdir -f -p -m 755
/syscfg/opkg/RPM/TMP/pam-0-root/syscfg/opkg/sbin
+ /syscfg/opkg/lib/openpkg/shtool install -c -m 755 -e
's;@l_susr@;root;g' -e 's;@l_sgrp@;system;g' -e 's;@l_suid@;0;g' -e
's;@l_sgid@;0;g' -e 's;@l_musr@;opkg;g' -e 's;@l_mgrp@;opkg;g' -e
's;@l_muid@;700;g' -e 's;@l_mgid@;700;g' -e 's;@l_rusr@;opkg-r;g' -e
's;@l_rgrp@;opkg-r;g' -e 's;@l_ruid@;701;g' -e 's;@l_rgid@;701;g' -e
's;@l_nusr@;opkg-n;g' -e 's;@l_ngrp@;opkg-n;g' -e 's;@l_nuid@;702;g' -e
's;@l_ngid@;702;g' -e 's;@l_prefix@;/syscfg/opkg;g' -e
's;@l_prefix_static@;/syscfg/opkg;g' -e
's;@l_platform@;powerpc-aix5.3;g' /syscfg/opkg/RPM/SRC/pam/pamtool
/syscfg/opkg/RPM/TMP/pam-0-root/syscfg/opkg/sbin/
+ /syscfg/opkg/lib/openpkg/shtool mkdir -f -p -m 755
/syscfg/opkg/RPM/TMP/pam-0-root/syscfg/opkg/etc/rc.d
+ /syscfg/opkg/lib/openpkg/shtool install -c -m 755 -e
's;@l_susr@;root;g' -e 's;@l_sgrp@;system;g' -e 's;@l_suid@;0;g' -e
's;@l_sgid@;0;g' -e 's;@l_musr@;opkg;g' -e 's;@l_mgrp@;opkg;g' -e
's;@l_muid@;700;g' -e 's;@l_mgid@;700;g' -e 's;@l_rusr@;opkg-r;g' -e
's;@l_rgrp@;opkg-r;g' -e 's;@l_ruid@;701;g' -e 's;@l_rgid@;701;g' -e
's;@l_nusr@;opkg-n;g' -e 's;@l_ngrp@;opkg-n;g' -e 's;@l_nuid@;702;g' -e
's;@l_ngid@;702;g' -e 's;@l_prefix@;/syscfg/opkg;g' -e
's;@l_prefix_static@;/syscfg/opkg;g' -e 's;@pam_cfgloc@;/etc/pam.conf;g'
-e 's;@pam_modpfx@;;g' -e 's;@pam_incdir@;/usr/include;g' -e
's;@pam_libdir@;/lib;g' /syscfg/opkg/RPM/SRC/pam/rc.pam
/syscfg/opkg/RPM/TMP/pam-0-root/syscfg/opkg/etc/rc.d/
+ /syscfg/opkg/lib/openpkg/rpmtool files -v -ofiles
-r/syscfg/opkg/RPM/TMP/pam-0-root '%defattr(-,opkg,opkg)' /syscfg/opkg
'%not %dir
{/syscfg/opkg,/syscfg/opkg/*,/syscfg/opkg/etc/rc.d,/syscfg/opkg/man/*}'
rpmtool:files: pass 1 (preparation and syntactical expansions)
rpmtool:files: pass 2 (filesystem-based expansions)
rpmtool:files: pass 3 (duplication removal and cleanup)
+ exit 0
Processing files: pam-0-2.5.0
Wrote: /syscfg/opkg/RPM/PKG/pam-0-2.5.0.powerpc-aix5.3-ibm.rpm
Executing(%clean): env -i /syscfg/opkg/lib/openpkg/bash --norc
--noprofile --posix -e /syscfg/opkg/RPM/TMP/rpm-tmp.16001
+ cd /syscfg/opkg/RPM/TMP
+ rm -rf /syscfg/opkg/RPM/TMP/pam-0-root
+ exit 0
Executing(--clean): env -i /syscfg/opkg/lib/openpkg/bash --norc
--noprofile --posix -e /syscfg/opkg/RPM/TMP/rpm-tmp.72
+ cd /syscfg/opkg/RPM/TMP
+ exit 0
"openpkg rpm pam info":
OpenPKG: info: pam.
PAM Enabled: yes
PAM Config Location: /etc/pam.conf
PAM Module Prefix:
PAM Include Directory: /usr/include
PAM Library Directory: /lib
"cat /etc/pam.conf":
#<OpenPKG id="/syscfg/opkg:openssh">
openssh auth required pam_aix.so try_first_pass
openssh account required pam_aix.so
openssh password required pam_aix.so
openssh session required pam_aix.so
#</OpenPKG>
#<OpenPKG id="/syscfg/opkg:sudo">
sudo auth required pam_aix.so try_first_pass
sudo account required pam_aix.so
sudo password required pam_aix.so
sudo session required pam_aix.so
#</OpenPKG>
______________________________________________________________________
The OpenPKG Project www.openpkg.org
User Communication List openpkg-users@openpkg.org