Hi !
I did a try yesterday, and failed miserably :
http://www.linuxquestions.org/questi...ssword-751506/
Now i will restart from the very beginning, and i will indicate every step i take.
1-
http://sourceforge.net/projects/cracklib/
tar zxvf cracklib-2.8.13.tar.gz
cd cracklib-2.8.13
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-shared --disable-static
make && make install
(i didn't use a dictionnary, seems useless here but i may be wrong ?)
2-
http://www.kernel.org/pub/linux/libs/pam/library/
tar jxvf Linux-PAM-1.1.0.tar.bz2
cd Linux-PAM-1.1.0
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-shared --disable-selinux
make && make install
3-
http://www.padl.com/OSS/pam_ldap.html
http://www.padl.com/OSS/nss_ldap.html
For both :
./configure --prefix=/usr && make && make install
###Edit : BIG MISTAKE HERE, DON'T USE --prefix=/usr, use only ./configure
4- Copied config files found on a working Ubuntu to /etc :
/ldap/* ldap.conf nsswitch.conf pam.conf pam.d/* pam_ldap.conf
########### May i missed something ? ###########
###Edit : Yes i missed the right ldap conf folder, see below ##
cp /etc/ldap/* /etc/openldap/
5-
http://slackware.at/data/slackware-1...urce/a/shadow/
I changed the package build number, and added --with-libpam in ./configure options.
I was surprised to see a shadow.newgrp.nopam.gz patch, but i don't know it's purpose.
removepkg /var/log/packages/shadow-4.0.3-i486-15
installpkg /tmp/shadow-4.0.3-i486-16.tgz
6- I try to su :
tail -f /var/log/secure
Sep 1 07:25:45 amd64 su[21587]: PAM (su) illegal module type: @include
Sep 1 07:25:45 amd64 su[21587]: PAM pam_parse: expecting return value; [...common-auth]
Sep 1 07:25:45 amd64 su[21587]: PAM (su) no module name supplied
Sep 1 07:25:45 amd64 su[21587]: PAM (su) illegal module type: @include
Sep 1 07:25:45 amd64 su[21587]: PAM pam_parse: expecting return value; [...common-account]
Sep 1 07:25:45 amd64 su[21587]: PAM (su) no module name supplied
Sep 1 07:25:45 amd64 su[21587]: PAM (su) illegal module type: @include
Sep 1 07:25:45 amd64 su[21587]: PAM pam_parse: expecting return value; [...common-session]
Sep 1 07:25:45 amd64 su[21587]: PAM (su) no module name supplied
Sep 1 07:25:45 amd64 su[21587]: PAM (other) illegal module type: @include
Sep 1 07:25:45 amd64 su[21587]: PAM pam_parse: expecting return value; [...common-auth]
Sep 1 07:25:45 amd64 su[21587]: PAM (other) no module name supplied
Sep 1 07:25:45 amd64 su[21587]: PAM (other) illegal module type: @include
Sep 1 07:25:45 amd64 su[21587]: PAM pam_parse: expecting return value; [...common-account]
Sep 1 07:25:45 amd64 su[21587]: PAM (other) no module name supplied
Sep 1 07:25:45 amd64 su[21587]: PAM (other) illegal module type: @include
Sep 1 07:25:45 amd64 su[21587]: PAM pam_parse: expecting return value; [...common-password]
Sep 1 07:25:45 amd64 su[21587]: PAM (other) no module name supplied
Sep 1 07:25:45 amd64 su[21587]: PAM (other) illegal module type: @include
Sep 1 07:25:45 amd64 su[21587]: PAM pam_parse: expecting return value; [...common-session]
Sep 1 07:25:45 amd64 su[21587]: PAM (other) no module name supplied
Sep 1 07:25:45 amd64 su[21587]: pam_authenticate: Autorisation refusée
Sep 1 07:25:45 amd64 su[21587]: - pts/3 test2-root
If i su - knownldapuser :
Sep 1 07:35:16 amd64 su[21598]: nss_ldap: failed to bind to LDAP server ldaps://ldap.home.fr: Can't contact LDAP server
Sep 1 07:35:16 amd64 su[21598]: nss_ldap: failed to bind to LDAP server ldaps://ldap2.home.fr: Can't contact LDAP server
Sep 1 07:35:17 amd64 su[21598]: nss_ldap: failed to bind to LDAP server ldaps://ldap.home.fr: Can't contact LDAP server
Sep 1 07:35:17 amd64 su[21598]: nss_ldap: failed to bind to LDAP server ldaps://ldap2.home.fr: Can't contact LDAP server
Sep 1 07:35:17 amd64 su[21598]: nss_ldap: reconnecting to LDAP server (sleeping 4 seconds)...
etc...
This command works on the client :
ldapsearch -x uid=knownuser
But getent passwd returns only local users...
...goin' to eat