<br><font size=2 face="sans-serif">I am trying to configure my Red Hat
AS 4.2 box to authenticate users </font>
<br><font size=2 face="sans-serif">using LDAP.  More specifically,
I only want to verify the user's </font>
<br><font size=2 face="sans-serif">password using LDAP, the accounts are
local.  As far as I can tell then </font>
<br><font size=2 face="sans-serif">system is performing the LDAP bind during
the login process; using </font>
<br><font size=2 face="sans-serif">tcpflow I can see the LDAP information
passed to the server. </font>
<br><font size=2 face="sans-serif">Unfortunately, I cannot tell what is
really going on.  Even though I </font>
<br><font size=2 face="sans-serif">have 'debug' option enabled in the pam
config file, the logs do not </font>
<br><font size=2 face="sans-serif">show any pam_ldap activity. </font>
<br>
<br><font size=2 face="sans-serif">Below is a snippet from the sshd pam
config with LDAP: </font>
<br><font size=2 face="sans-serif">#LDAP </font>
<br><font size=2 face="sans-serif">auth       sufficient
  pam_ldap.so use_first_pass debug </font>
<br><font size=2 face="sans-serif">auth       required  
  pam_stack.so service=system-auth </font>
<br><font size=2 face="sans-serif">auth       required  
  pam_nologin.so </font>
<br><font size=2 face="sans-serif">account    required  
 pam_stack.so service=system-auth </font>
<br><font size=2 face="sans-serif">... </font>
<br>
<br><font size=2 face="sans-serif">Originally, I was getting a LDAP bind
error in /var/log/messages. </font>
<br><font size=2 face="sans-serif">After fixing ldap.conf and verifying
the settings using ldapsearch, I no </font>
<br><font size=2 face="sans-serif">longer see the error.  However,
I don't see an specific pam_ldap errors </font>
<br><font size=2 face="sans-serif">in any of my logs now. </font>
<br>
<br><font size=2 face="sans-serif">I have done some searching and found
a few news group posts with </font>
<br><font size=2 face="sans-serif">some sample logs.  It looks like
there is a way to enable more verbose </font>
<br><font size=2 face="sans-serif">logging: </font>
<br>
<br><font size=2 face="sans-serif">Dec  8 10:04:43 linux29 login[2063]:
pam_ldap: error trying to bind as </font>
<br><font size=2 face="sans-serif">user "cn=Linux29,ou=SER,ou=KLK,o=EK"
(Invalid credentials) </font>
<br>
<br><font size=2 face="sans-serif">There is a debug option in ldap.conf,
but that just created a log file </font>
<br><font size=2 face="sans-serif">with output similar to running ldapsearch
with the debugging option. </font>
<br>
<br><font size=2 face="sans-serif">Hopefully someone can point me to the
debugging option so that my logs </font>
<br><font size=2 face="sans-serif">are a bit more helpful in troubleshooting
this issue. </font>
<br>
<br><font size=2 face="sans-serif">thanks, </font>
<br><font size=2 face="sans-serif">John </font>