<div dir="ltr"><br><br><div class="gmail_quote">On Fri, Jul 25, 2008 at 1:32 PM, Dharmin Mandalia <span dir="ltr"><<a href="mailto:dharmin98@hotmail.com">dharmin98@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hello<br>
<br>
commented out "ssl start_tls" and added "ssl on" , in ldap.conf file  get below errors in /var/log/secure file :-<br>
<br>
<br>
Jul 24 15:55:40 matrix sshd[2480]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=<a href="http://matrix.trues.co.uk" target="_blank">matrix.trues.co.uk</a>  user=test1<br>
Jul 24 15:55:40 matrix sshd[2480]: pam_ldap: ldap_simple_bind Can't contact LDAP server<br>
Jul 24 15:55:40 matrix sshd[2480]: pam_ldap: reconnecting to LDAP server...<br>
Jul 24 15:55:40 matrix sshd[2480]: pam_ldap: ldap_simple_bind Can't contact LDAP server<br>
Jul 24 15:55:42 matrix sshd[2480]: Failed password for test1 from <a href="http://192.168.1.129" target="_blank">192.168.1.129</a> port 59436 ssh2<br>
</blockquote><div><br>What do you see in the FDS logs  (tail /var/log/dirsrv/slapd-<instance-name>/access<br>Can you check the basic things <br><br>1. Is the DIrectory server running on port 636 (netstat -tlnp | grep 636)<br>
<br>2. If you do ldapsearch -x -ZZ -b "your basedn" are you able to search <br><br>3. Does getent passwd and getent group enumerate users on the client ?<br><br>Regards<br>Niranjan<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
where the server matrix is FDS  what I did was from FDS  "ssh <a href="http://matrix.trues.co.uk" target="_blank">matrix.trues.co.uk</a> -l test1"  where test1 users exists in ldap dir<br>
<br>
Regards<br>
Dharmin<br>
<br>
<br>
<br>
Hi,<br>
<br>
Can you check What happens if you specify<br>
<br>
ssl start_tls<br>
<br>
instead of "ssl on"<br>
<br>
Regards<br>
Niranjan<br>
<br>
<br>
On Thu, Jul 24, 2008 at 9:29 PM, Dharmin Mandalia<br>
wrote:<br>
<br>
><br>
> Hello  Nalin and all<br>
><br>
> I just added "ssl  on"  to below /etc/ldap.conf file and get below error<br>
> msg in var/log/secure file :-<br>
><br>
><br>
> sshd[6212]: pam_unix(sshd:session): session closed for user test1<br>
> sshd[6248]: pam_unix(sshd:auth): authentication failure; logname= uid=0<br>
> euid=0 tty=ssh ruser= rhost=<a href="http://192.168.1.1" target="_blank">192.168.1.1</a>  user=test1<br>
> sshd[6248]: Accepted password for test1 from <a href="http://192.168.1.1" target="_blank">192.168.1.1</a> port 47171 ssh2<br>
> sshd[6248]: pam_unix(sshd:session): session opened for user test1 by<br>
> (uid=0)<br>
> sshd[6248]: pam_unix(sshd:session): session closed for user test1<br>
> sshd[6284]: pam_unix(sshd:auth): authentication failure; logname= uid=0<br>
> euid=0 tty=ssh ruser= rhost=<a href="http://192.168.1.1" target="_blank">192.168.1.1</a>  user=test1<br>
> sshd[6284]: pam_ldap: ldap_simple_bind Can't contact LDAP server<br>
> shd[6284]: pam_ldap: reconnecting to LDAP server...<br>
> sshd[6284]: pam_ldap: ldap_simple_bind Can't contact LDAP server<br>
> sshd[6284]: Failed password for test1 from <a href="http://192.168.1.1" target="_blank">192.168.1.1</a> port 47172 ssh2<br>
><br>
> With "ssl on" in ldap.conf, am unable to login via ssh<br>
><br>
> any helpers please...<br>
><br>
> regards<br>
> Dharmin<br>
><br>
><br>
><br>
> ----------------------------------------<br>
>> Date: Thu, 24 Jul 2008 11:26:46 -0400<br>
>> From: [EMAIL PROTECTED]<br>
>> To: [EMAIL PROTECTED]<br>
>> CC: <a href="mailto:fedora-directory-users@redhat.com">fedora-directory-users@redhat.com</a><br>
>> Subject: Re: [Fedora-directory-users] TLS Issue<br>
>><br>
>> On Thu, Jul 24, 2008 at 03:11:59PM +0000, Dharmin Mandalia wrote:<br>
>>> I've enabled TLS and am getting below error msg's in /var/log/secure<br>
> file on Fedora 9, which is my newly configured FDS , if disable TLS , am<br>
> able to ssh onto the FDS server and with TLS enabled unable to login via<br>
> ssh.<br>
>> [snip]<br>
>>> sshd[5487]: nss_ldap: could not search LDAP server - Server is<br>
> unavailable<br>
>> [snip]<br>
>>> /etc/ldap.conf file on Fedora 9, (FDS server ) shows as :-<br>
>> [snip]<br>
>>> ssl start_tls<br>
>>> tls_checkpeer yes<br>
>>> tls_cacertfile  /etc/openldap/cacerts/cacert.asc<br>
>>> pam_password md5<br>
>>> uri ldap://<a href="http://127.0.0.1/" target="_blank">127.0.0.1/</a><br>
>>> tls_cacertdir /etc/openldap/cacerts<br>
>><br>
>> If you're using SSL or TLS, the LDAP client library is going to compare<br>
>> the names in the certificate that the server uses against the value that<br>
>> was given in the client's configuration (in this case "<a href="http://127.0.0.1" target="_blank">127.0.0.1</a>"), and<br>
>> it looks like they're not matching up here.<br>
>><br>
>> Typically the certificate uses an actual hostname as a "CN" value in its<br>
>> subject, so you'd need to specify the server URI using a hostname rather<br>
>> than an IP address to make sure that they match.<br>
>><br>
>> If that's not what's going on here, please post a copy of the<br>
>> certificate that the server's using so that we can have a look.<br>
>><br>
>> HTH,<br>
>><br>
>> Nalin<br>
><br>
<br>
_________________________________________________________________<br>
Use video conversation to talk face-to-face with Windows Live Messenger.<br>
<a href="http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_video_072008" target="_blank">http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_video_072008</a><br>

<font color="#888888"><br>
--<br>
Fedora-directory-users mailing list<br>
<a href="mailto:Fedora-directory-users@redhat.com">Fedora-directory-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/fedora-directory-users" target="_blank">https://www.redhat.com/mailman/listinfo/fedora-directory-users</a><br>
</font></blockquote></div><br></div>