7.3 and ldap

Rick Stevens rstevens at vitalstream.com
Tue Oct 5 22:20:18 UTC 2004


Francisco Ruiz wrote:
> I made the mistake in messing around with the ldap.conf file and now I'm
> not able to log in period.  Is there a work around this problem anyone?

Boot in single user mode (enter "linux single" at the "boot:" prompt).
You then have to do some magic:

	cd /etc
	mv pam.conf pam.conf.backup (don't worry if pam.conf is missing)
	mv pam.d pam.d.backup
	mkdir pam.d
	cd pam.d
	echo "auth required pam_unix.so" >other
	echo "account required pam_unix.so" >>other
	echo "password required pam_unix.so" >>other
	echo "session required pam_unix.so" >>other

Yes, the first "echo" uses a single ">" the other three use two (">>").
You should be able to exit from single user mode and reboot and get
logged in.  Fix your stuff, then:

	cd /etc
	rm -rf pam.d
	mv pam.d.backup pam.d
	mv pam.conf.backup pam.conf

to restore the previous PAM setup.  And don't futz with ldap.conf
unless you know what you're doing!  ;-)  <snicker!>

----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer     rstevens at vitalstream.com -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-                      LOOK OUT!!! BEHIND YOU!!!                     -
----------------------------------------------------------------------




More information about the Redhat-install-list mailing list