<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-14175</id>
	<title>Nabble - PADL Lists</title>
	<updated>2009-11-20T08:47:51Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/PADL-Lists-f14175.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PADL-Lists-f14175.html" />
	<subtitle type="html">PADL wrote the LDAP nameservice libraries which are now part of every major Linux distribution, and have made substantial contributions to the security and directory service infrastructure of Darwin, the core of Mac OS X. PADL Lists home is &lt;a href=&quot;http://www.padl.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26447724</id>
	<title>RE: Looking for support on nss_ldap issue</title>
	<published>2009-11-20T08:47:51Z</published>
	<updated>2009-11-20T08:47:51Z</updated>
	<author>
		<name>Howard Wilkinson</name>
	</author>
	<content type="html">It is a large patch but you might get better results if you try the patches I have recently released for nss_Ldap 265. They include a complete rewrite of the connect/reconnect code that is designed to honor the timeouts properly.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;If you have trouble building this I can send you a Fedora 11 spec file which may give you a good starting point.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Regards, Howard
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Coherent Technology Limited, 23 Northampton Square, Finsbury, London EC1V 0HL, United Kingdom
&lt;br&gt;Telephone: +44 20 7690 7075 Mobile: +44 7980 639379
&lt;br&gt;Company Email: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26447724&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;coherent@...&lt;/a&gt; Website: &lt;a href=&quot;http://www.cohtech.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cohtech.com&lt;/a&gt;&amp;nbsp;&amp;lt;&lt;a href=&quot;http://www.cohtech.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cohtech.com/&lt;/a&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&lt;br&gt;________________________________
&lt;br&gt;&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26447724&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-nssldap@...&lt;/a&gt; on behalf of Douglas E. Engert
&lt;br&gt;Sent: Thu 2009-11-19 21:03
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26447724&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nssldap@...&lt;/a&gt;
&lt;br&gt;Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26447724&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nssldap@...&lt;/a&gt;
&lt;br&gt;Subject: Re: [nssldap] Looking for support on nss_ldap issue
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26447724&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nssldap@...&lt;/a&gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Tue, 17 Nov 2009, Douglas E. Engert wrote:
&lt;br&gt;&amp;gt;&amp;gt; I don't have a CentOS system but we ran into issues with lost connections
&lt;br&gt;&amp;gt;&amp;gt; and TLS. This sounds a lot like:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; BUG #392: call do_close() if ldap_result() or ldap_parse_result()
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fails (before returning NSS_UNAVAIL)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; and not having a timelimit set.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Fixes for these are in nss_ldap-265 announced on 11/6/2009
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; You may want to try using this newer version, if only to see if it fixes
&lt;br&gt;&amp;gt;&amp;gt; your problem even if CentOS does not have this version yet.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Since this looks like issues with timeouts
&lt;br&gt;&amp;gt;&amp;gt; You may also want to set:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; idle_timelimit 20
&lt;br&gt;&amp;gt;&amp;gt; timelimit 30
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Good luck.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks! &amp;nbsp;I have attached a document.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I downloaded the source for that version that you describe and built it
&lt;br&gt;&amp;gt; into packages for my CentOS machines. &amp;nbsp;I tried it out, but I still
&lt;br&gt;&amp;gt; encounter the timeout related failure. &amp;nbsp;I added the following lines to
&lt;br&gt;&amp;gt; ldap.conf but to no avail:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; bind_timelimit &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5
&lt;br&gt;&amp;gt; idle_timelimit 5
&lt;br&gt;&amp;gt; timelimit 5
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My LDAP servers are local and are not stressed, so I figured a low
&lt;br&gt;&amp;gt; timeout would be acceptable.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The server that I hit with SIGSTOP that is detailed in the debug output
&lt;br&gt;&amp;gt; was ldap1.management.example.com .
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Any additional help would be appreciated, thanks again!
&lt;/div&gt;&lt;br&gt;I am no ldap expert, hopefully someone from Padl will respond.
&lt;br&gt;&lt;br&gt;But if you have all the timeouts set on the client, why
&lt;br&gt;does this line near the end say infinite timeout?
&lt;br&gt;&lt;br&gt;wait4msg ld 0x55556e6dde40 msgid 1 (infinite timeout)
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Douglas E. Engert &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26447724&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DEEngert@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Argonne National Laboratory
&lt;br&gt;&amp;gt;&amp;gt; 9700 South Cass Avenue
&lt;br&gt;&amp;gt;&amp;gt; Argonne, Illinois &amp;nbsp;60439
&lt;br&gt;&amp;gt;&amp;gt; (630) 252-5444
&lt;br&gt;&amp;gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;&amp;nbsp; Douglas E. Engert &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26447724&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DEEngert@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; Argonne National Laboratory
&lt;br&gt;&amp;nbsp; 9700 South Cass Avenue
&lt;br&gt;&amp;nbsp; Argonne, Illinois &amp;nbsp;60439
&lt;br&gt;&amp;nbsp; (630) 252-5444
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Looking-for-support-on-nss_ldap-issue-tp26344398p26447724.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26434876</id>
	<title>Re: Looking for support on nss_ldap issue</title>
	<published>2009-11-19T13:03:51Z</published>
	<updated>2009-11-19T13:03:51Z</updated>
	<author>
		<name>Douglas E. Engert</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26434876&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nssldap@...&lt;/a&gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Tue, 17 Nov 2009, Douglas E. Engert wrote:
&lt;br&gt;&amp;gt;&amp;gt; I don't have a CentOS system but we ran into issues with lost connections
&lt;br&gt;&amp;gt;&amp;gt; and TLS. This sounds a lot like:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; BUG #392: call do_close() if ldap_result() or ldap_parse_result()
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fails (before returning NSS_UNAVAIL)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; and not having a timelimit set.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Fixes for these are in nss_ldap-265 announced on 11/6/2009
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; You may want to try using this newer version, if only to see if it fixes
&lt;br&gt;&amp;gt;&amp;gt; your problem even if CentOS does not have this version yet.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Since this looks like issues with timeouts
&lt;br&gt;&amp;gt;&amp;gt; You may also want to set:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; idle_timelimit 20
&lt;br&gt;&amp;gt;&amp;gt; timelimit 30
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Good luck.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks! &amp;nbsp;I have attached a document.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I downloaded the source for that version that you describe and built it 
&lt;br&gt;&amp;gt; into packages for my CentOS machines. &amp;nbsp;I tried it out, but I still 
&lt;br&gt;&amp;gt; encounter the timeout related failure. &amp;nbsp;I added the following lines to 
&lt;br&gt;&amp;gt; ldap.conf but to no avail:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; bind_timelimit &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5
&lt;br&gt;&amp;gt; idle_timelimit 5
&lt;br&gt;&amp;gt; timelimit 5
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; My LDAP servers are local and are not stressed, so I figured a low 
&lt;br&gt;&amp;gt; timeout would be acceptable.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The server that I hit with SIGSTOP that is detailed in the debug output 
&lt;br&gt;&amp;gt; was ldap1.management.example.com .
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Any additional help would be appreciated, thanks again!
&lt;/div&gt;&lt;br&gt;I am no ldap expert, hopefully someone from Padl will respond.
&lt;br&gt;&lt;br&gt;But if you have all the timeouts set on the client, why
&lt;br&gt;does this line near the end say infinite timeout?
&lt;br&gt;&lt;br&gt;wait4msg ld 0x55556e6dde40 msgid 1 (infinite timeout)
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -- 
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Douglas E. Engert &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26434876&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DEEngert@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Argonne National Laboratory
&lt;br&gt;&amp;gt;&amp;gt; 9700 South Cass Avenue
&lt;br&gt;&amp;gt;&amp;gt; Argonne, Illinois &amp;nbsp;60439
&lt;br&gt;&amp;gt;&amp;gt; (630) 252-5444
&lt;br&gt;&amp;gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;&amp;nbsp; Douglas E. Engert &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26434876&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DEEngert@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; Argonne National Laboratory
&lt;br&gt;&amp;nbsp; 9700 South Cass Avenue
&lt;br&gt;&amp;nbsp; Argonne, Illinois &amp;nbsp;60439
&lt;br&gt;&amp;nbsp; (630) 252-5444
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Looking-for-support-on-nss_ldap-issue-tp26344398p26434876.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26429898</id>
	<title>Re: Looking for support on nss_ldap issue</title>
	<published>2009-11-19T07:51:34Z</published>
	<updated>2009-11-19T07:51:34Z</updated>
	<author>
		<name>Mark Hennessy</name>
	</author>
	<content type="html">On Tue, 17 Nov 2009, Douglas E. Engert wrote:
&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I don't have a CentOS system but we ran into issues with lost connections
&lt;br&gt;&amp;gt; and TLS. This sounds a lot like:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; BUG #392: call do_close() if ldap_result() or ldap_parse_result()
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fails (before returning NSS_UNAVAIL)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; and not having a timelimit set.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Fixes for these are in nss_ldap-265 announced on 11/6/2009
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You may want to try using this newer version, if only to see if it fixes
&lt;br&gt;&amp;gt; your problem even if CentOS does not have this version yet.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Since this looks like issues with timeouts
&lt;br&gt;&amp;gt; You may also want to set:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; idle_timelimit 20
&lt;br&gt;&amp;gt; timelimit 30
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Good luck.
&lt;/div&gt;&lt;/div&gt;Thanks! &amp;nbsp;I have attached a document.
&lt;br&gt;&lt;br&gt;I downloaded the source for that version that you describe and built it 
&lt;br&gt;into packages for my CentOS machines. &amp;nbsp;I tried it out, but I still 
&lt;br&gt;encounter the timeout related failure. &amp;nbsp;I added the following lines to 
&lt;br&gt;ldap.conf but to no avail:
&lt;br&gt;&lt;br&gt;bind_timelimit &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5
&lt;br&gt;idle_timelimit 5
&lt;br&gt;timelimit 5
&lt;br&gt;&lt;br&gt;My LDAP servers are local and are not stressed, so I figured a low timeout 
&lt;br&gt;would be acceptable.
&lt;br&gt;&lt;br&gt;The server that I hit with SIGSTOP that is detailed in the debug output 
&lt;br&gt;was ldap1.management.example.com .
&lt;br&gt;&lt;br&gt;Any additional help would be appreciated, thanks again!
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Douglas E. Engert &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26429898&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DEEngert@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Argonne National Laboratory
&lt;br&gt;&amp;gt; 9700 South Cass Avenue
&lt;br&gt;&amp;gt; Argonne, Illinois &amp;nbsp;60439
&lt;br&gt;&amp;gt; (630) 252-5444
&lt;br&gt;&amp;gt;&lt;br /&gt;ldap_create
&lt;br&gt;ldap_url_parse_ext(ldap://ldap1.management.example.com)
&lt;br&gt;ldap_create
&lt;br&gt;ldap_url_parse_ext(ldap://ldap1.management.example.com)
&lt;br&gt;ldap_extended_operation
&lt;br&gt;ldap_send_initial_request
&lt;br&gt;ldap_new_connection 1 1 0
&lt;br&gt;ldap_int_open_connection
&lt;br&gt;ldap_connect_to_host: TCP ldap1.management.example.com:389
&lt;br&gt;ldap_new_socket: 7
&lt;br&gt;ldap_prepare_socket: 7
&lt;br&gt;ldap_connect_to_host: Trying 192.168.1.2:389
&lt;br&gt;ldap_connect_timeout: fd: 7 tm: 5 async: 0
&lt;br&gt;ldap_ndelay_on: 7
&lt;br&gt;ldap_is_sock_ready: 7
&lt;br&gt;ldap_ndelay_off: 7
&lt;br&gt;ldap_open_defconn: successful
&lt;br&gt;ldap_send_server_request
&lt;br&gt;ber_scanf fmt ({it) ber:
&lt;br&gt;ber_scanf fmt ({) ber:
&lt;br&gt;ber_flush: 31 bytes to sd 7
&lt;br&gt;ldap_result ld 0x55556e62adf0 msgid 1
&lt;br&gt;ldap_chkResponseList ld 0x55556e62adf0 msgid 1 all 1
&lt;br&gt;ldap_chkResponseList returns ld 0x55556e62adf0 NULL
&lt;br&gt;wait4msg ld 0x55556e62adf0 msgid 1 (timeout 5000000 usec)
&lt;br&gt;wait4msg continue ld 0x55556e62adf0 msgid 1 all 1
&lt;br&gt;ldap_chkResponseList ld 0x55556e62adf0 msgid 1 all 1
&lt;br&gt;ldap_chkResponseList returns ld 0x55556e62adf0 NULL
&lt;br&gt;ldap_int_select
&lt;br&gt;ldap_abandon 1
&lt;br&gt;ldap_abandon_ext 1
&lt;br&gt;do_abandon origid 1, msgid 1
&lt;br&gt;ldap_msgdelete
&lt;br&gt;ber_flush: 8 bytes to sd 7
&lt;br&gt;ldap_free_connection 0 1
&lt;br&gt;ldap_free_connection: refcnt 1
&lt;br&gt;ldap_free_request (origid 1, msgid 1)
&lt;br&gt;ldap_err2string
&lt;br&gt;ldap_unbind
&lt;br&gt;ldap_free_connection 1 1
&lt;br&gt;ldap_send_unbind
&lt;br&gt;ber_flush: 7 bytes to sd 7
&lt;br&gt;ldap_free_connection: actually freed
&lt;br&gt;ldap_create
&lt;br&gt;ldap_url_parse_ext(ldap://ldap2.management.example.com)
&lt;br&gt;ldap_extended_operation
&lt;br&gt;ldap_send_initial_request
&lt;br&gt;ldap_new_connection 1 1 0
&lt;br&gt;ldap_int_open_connection
&lt;br&gt;ldap_connect_to_host: TCP ldap2.management.example.com:389
&lt;br&gt;ldap_new_socket: 7
&lt;br&gt;ldap_prepare_socket: 7
&lt;br&gt;ldap_connect_to_host: Trying 192.168.1.3:389
&lt;br&gt;ldap_connect_timeout: fd: 7 tm: 5 async: 0
&lt;br&gt;ldap_ndelay_on: 7
&lt;br&gt;ldap_is_sock_ready: 7
&lt;br&gt;ldap_ndelay_off: 7
&lt;br&gt;ldap_open_defconn: successful
&lt;br&gt;ldap_send_server_request
&lt;br&gt;ber_scanf fmt ({it) ber:
&lt;br&gt;ber_scanf fmt ({) ber:
&lt;br&gt;ber_flush: 31 bytes to sd 7
&lt;br&gt;ldap_result ld 0x55556e634240 msgid 1
&lt;br&gt;ldap_chkResponseList ld 0x55556e634240 msgid 1 all 1
&lt;br&gt;ldap_chkResponseList returns ld 0x55556e634240 NULL
&lt;br&gt;wait4msg ld 0x55556e634240 msgid 1 (timeout 5000000 usec)
&lt;br&gt;wait4msg continue ld 0x55556e634240 msgid 1 all 1
&lt;br&gt;ldap_chkResponseList ld 0x55556e634240 msgid 1 all 1
&lt;br&gt;ldap_chkResponseList returns ld 0x55556e634240 NULL
&lt;br&gt;ldap_int_select
&lt;br&gt;read1msg: ld 0x55556e634240 msgid 1 all 1
&lt;br&gt;ber_get_next
&lt;br&gt;ber_get_next: tag 0x30 len 12 contents:
&lt;br&gt;read1msg: ld 0x55556e634240 msgid 1 message type extended-result
&lt;br&gt;ber_scanf fmt ({eaa) ber:
&lt;br&gt;ber_scanf fmt ({eaa}) ber:
&lt;br&gt;new result: &amp;nbsp;res_errno: 0, res_error: &amp;lt;&amp;gt;, res_matched: &amp;lt;&amp;gt;
&lt;br&gt;read1msg: ld 0x55556e634240 0 new referrals
&lt;br&gt;read1msg: &amp;nbsp;mark request completed, ld 0x55556e634240 msgid 1
&lt;br&gt;request done: ld 0x55556e634240 msgid 1
&lt;br&gt;res_errno: 0, res_error: &amp;lt;&amp;gt;, res_matched: &amp;lt;&amp;gt;
&lt;br&gt;ldap_free_request (origid 1, msgid 1)
&lt;br&gt;ldap_free_connection 0 1
&lt;br&gt;ldap_free_connection: refcnt 1
&lt;br&gt;ldap_parse_result
&lt;br&gt;ber_scanf fmt ({iaa) ber:
&lt;br&gt;ber_scanf fmt (}) ber:
&lt;br&gt;ldap_msgfree
&lt;br&gt;TLS trace: SSL_connect:before/connect initialization
&lt;br&gt;TLS trace: SSL_connect:SSLv2/v3 write client hello A
&lt;br&gt;TLS trace: SSL_connect:SSLv3 read server hello A
&lt;br&gt;TLS certificate verification: depth: 1, err: 0, subject: /C=US/ST=New York/L=New York/O=Example/CN=example.com, issuer: /C=US/ST=New York/L=New York/O=Example/CN=example.com
&lt;br&gt;TLS certificate verification: depth: 0, err: 0, subject: /C=US/ST=New York/O=Example/CN=ldap2.management.example.com, issuer: /C=US/ST=New York/L=New York/O=Example/CN=example.com
&lt;br&gt;TLS trace: SSL_connect:SSLv3 read server certificate A
&lt;br&gt;TLS trace: SSL_connect:SSLv3 read server done A
&lt;br&gt;TLS trace: SSL_connect:SSLv3 write client key exchange A
&lt;br&gt;TLS trace: SSL_connect:SSLv3 write change cipher spec A
&lt;br&gt;TLS trace: SSL_connect:SSLv3 write finished A
&lt;br&gt;TLS trace: SSL_connect:SSLv3 flush data
&lt;br&gt;TLS trace: SSL_connect:SSLv3 read finished A
&lt;br&gt;ldap_simple_bind
&lt;br&gt;ldap_sasl_bind
&lt;br&gt;ldap_send_initial_request
&lt;br&gt;ldap_send_server_request
&lt;br&gt;ber_scanf fmt ({it) ber:
&lt;br&gt;ber_scanf fmt ({i) ber:
&lt;br&gt;ber_flush: 14 bytes to sd 7
&lt;br&gt;ldap_result ld 0x55556e634240 msgid 2
&lt;br&gt;ldap_chkResponseList ld 0x55556e634240 msgid 2 all 0
&lt;br&gt;ldap_chkResponseList returns ld 0x55556e634240 NULL
&lt;br&gt;wait4msg ld 0x55556e634240 msgid 2 (timeout 5000000 usec)
&lt;br&gt;wait4msg continue ld 0x55556e634240 msgid 2 all 0
&lt;br&gt;ldap_chkResponseList ld 0x55556e634240 msgid 2 all 0
&lt;br&gt;ldap_chkResponseList returns ld 0x55556e634240 NULL
&lt;br&gt;ldap_int_select
&lt;br&gt;read1msg: ld 0x55556e634240 msgid 2 all 0
&lt;br&gt;ber_get_next
&lt;br&gt;ber_get_next: tag 0x30 len 12 contents:
&lt;br&gt;read1msg: ld 0x55556e634240 msgid 2 message type bind
&lt;br&gt;ber_scanf fmt ({eaa) ber:
&lt;br&gt;ber_scanf fmt ({eaa}) ber:
&lt;br&gt;new result: &amp;nbsp;res_errno: 0, res_error: &amp;lt;&amp;gt;, res_matched: &amp;lt;&amp;gt;
&lt;br&gt;read1msg: ld 0x55556e634240 0 new referrals
&lt;br&gt;read1msg: &amp;nbsp;mark request completed, ld 0x55556e634240 msgid 2
&lt;br&gt;request done: ld 0x55556e634240 msgid 2
&lt;br&gt;res_errno: 0, res_error: &amp;lt;&amp;gt;, res_matched: &amp;lt;&amp;gt;
&lt;br&gt;ldap_free_request (origid 2, msgid 2)
&lt;br&gt;ldap_free_connection 0 1
&lt;br&gt;ldap_free_connection: refcnt 1
&lt;br&gt;ldap_parse_result
&lt;br&gt;ber_scanf fmt ({iaa) ber:
&lt;br&gt;ber_scanf fmt (}) ber:
&lt;br&gt;ldap_msgfree
&lt;br&gt;ldap_search
&lt;br&gt;put_filter: &amp;quot;(&amp;(objectClass=shadowAccount)(uid=mark))&amp;quot;
&lt;br&gt;put_filter: AND
&lt;br&gt;put_filter_list &amp;quot;(objectClass=shadowAccount)(uid=mark)&amp;quot;
&lt;br&gt;put_filter: &amp;quot;(objectClass=shadowAccount)&amp;quot;
&lt;br&gt;put_filter: simple
&lt;br&gt;put_simple_filter: &amp;quot;objectClass=shadowAccount&amp;quot;
&lt;br&gt;put_filter: &amp;quot;(uid=mark)&amp;quot;
&lt;br&gt;put_filter: simple
&lt;br&gt;put_simple_filter: &amp;quot;uid=mark&amp;quot;
&lt;br&gt;ldap_send_initial_request
&lt;br&gt;ldap_send_server_request
&lt;br&gt;ber_scanf fmt ({it) ber:
&lt;br&gt;ber_scanf fmt ({) ber:
&lt;br&gt;ber_flush: 206 bytes to sd 7
&lt;br&gt;ldap_result ld 0x55556e634240 msgid 3
&lt;br&gt;ldap_chkResponseList ld 0x55556e634240 msgid 3 all 1
&lt;br&gt;ldap_chkResponseList returns ld 0x55556e634240 NULL
&lt;br&gt;wait4msg ld 0x55556e634240 msgid 3 (timeout 5000000 usec)
&lt;br&gt;wait4msg continue ld 0x55556e634240 msgid 3 all 1
&lt;br&gt;ldap_chkResponseList ld 0x55556e634240 msgid 3 all 1
&lt;br&gt;ldap_chkResponseList returns ld 0x55556e634240 NULL
&lt;br&gt;ldap_int_select
&lt;br&gt;read1msg: ld 0x55556e634240 msgid 3 all 1
&lt;br&gt;ber_get_next
&lt;br&gt;ber_get_next: tag 0x30 len 79 contents:
&lt;br&gt;read1msg: ld 0x55556e634240 msgid 3 message type search-entry
&lt;br&gt;wait4msg ld 0x55556e634240 5 secs to go
&lt;br&gt;wait4msg continue ld 0x55556e634240 msgid 3 all 1
&lt;br&gt;ldap_chkResponseList ld 0x55556e634240 msgid 3 all 1
&lt;br&gt;ldap_chkResponseList returns ld 0x55556e634240 NULL
&lt;br&gt;ldap_int_select
&lt;br&gt;read1msg: ld 0x55556e634240 msgid 3 all 1
&lt;br&gt;ber_get_next
&lt;br&gt;ber_get_next: tag 0x30 len 12 contents:
&lt;br&gt;read1msg: ld 0x55556e634240 msgid 3 message type search-result
&lt;br&gt;ber_scanf fmt ({eaa) ber:
&lt;br&gt;ber_scanf fmt ({eaa}) ber:
&lt;br&gt;new result: &amp;nbsp;res_errno: 0, res_error: &amp;lt;&amp;gt;, res_matched: &amp;lt;&amp;gt;
&lt;br&gt;read1msg: ld 0x55556e634240 0 new referrals
&lt;br&gt;read1msg: &amp;nbsp;mark request completed, ld 0x55556e634240 msgid 3
&lt;br&gt;request done: ld 0x55556e634240 msgid 3
&lt;br&gt;res_errno: 0, res_error: &amp;lt;&amp;gt;, res_matched: &amp;lt;&amp;gt;
&lt;br&gt;ldap_free_request (origid 3, msgid 3)
&lt;br&gt;ldap_free_connection 0 1
&lt;br&gt;ldap_free_connection: refcnt 1
&lt;br&gt;adding response ld 0x55556e634240 msgid 3 type 101:
&lt;br&gt;ldap_parse_result
&lt;br&gt;ber_scanf fmt ({iaa) ber:
&lt;br&gt;ber_scanf fmt (}) ber:
&lt;br&gt;ldap_get_values
&lt;br&gt;ber_scanf fmt ({x{{a) ber:
&lt;br&gt;ber_scanf fmt (x}{a) ber:
&lt;br&gt;ber_scanf fmt (x}{a) ber:
&lt;br&gt;ldap_get_values
&lt;br&gt;ber_scanf fmt ({x{{a) ber:
&lt;br&gt;ber_scanf fmt (x}{a) ber:
&lt;br&gt;ber_scanf fmt ([v]) ber:
&lt;br&gt;ldap_get_values
&lt;br&gt;ber_scanf fmt ({x{{a) ber:
&lt;br&gt;ber_scanf fmt ([v]) ber:
&lt;br&gt;ldap_get_values
&lt;br&gt;ber_scanf fmt ({x{{a) ber:
&lt;br&gt;ber_scanf fmt (x}{a) ber:
&lt;br&gt;ber_scanf fmt (x}{a) ber:
&lt;br&gt;ldap_get_values
&lt;br&gt;ber_scanf fmt ({x{{a) ber:
&lt;br&gt;ber_scanf fmt (x}{a) ber:
&lt;br&gt;ber_scanf fmt (x}{a) ber:
&lt;br&gt;ldap_get_values
&lt;br&gt;ber_scanf fmt ({x{{a) ber:
&lt;br&gt;ber_scanf fmt (x}{a) ber:
&lt;br&gt;ber_scanf fmt (x}{a) ber:
&lt;br&gt;ldap_get_values
&lt;br&gt;ber_scanf fmt ({x{{a) ber:
&lt;br&gt;ber_scanf fmt (x}{a) ber:
&lt;br&gt;ber_scanf fmt (x}{a) ber:
&lt;br&gt;ldap_get_values
&lt;br&gt;ber_scanf fmt ({x{{a) ber:
&lt;br&gt;ber_scanf fmt (x}{a) ber:
&lt;br&gt;ber_scanf fmt (x}{a) ber:
&lt;br&gt;ldap_get_values
&lt;br&gt;ber_scanf fmt ({x{{a) ber:
&lt;br&gt;ber_scanf fmt (x}{a) ber:
&lt;br&gt;ber_scanf fmt (x}{a) ber:
&lt;br&gt;ldap_msgfree
&lt;br&gt;ldap_create
&lt;br&gt;ldap_extended_operation_s
&lt;br&gt;ldap_extended_operation
&lt;br&gt;ldap_send_initial_request
&lt;br&gt;ldap_new_connection 1 1 0
&lt;br&gt;ldap_int_open_connection
&lt;br&gt;ldap_connect_to_host: TCP ldap1.management.example.com:389
&lt;br&gt;ldap_new_socket: 10
&lt;br&gt;ldap_prepare_socket: 10
&lt;br&gt;ldap_connect_to_host: Trying 192.168.1.2:389
&lt;br&gt;ldap_connect_timeout: fd: 10 tm: 5 async: 0
&lt;br&gt;ldap_ndelay_on: 10
&lt;br&gt;ldap_is_sock_ready: 10
&lt;br&gt;ldap_ndelay_off: 10
&lt;br&gt;ldap_open_defconn: successful
&lt;br&gt;ldap_send_server_request
&lt;br&gt;ber_scanf fmt ({it) ber:
&lt;br&gt;ber_scanf fmt ({) ber:
&lt;br&gt;ber_flush: 31 bytes to sd 10
&lt;br&gt;ldap_result ld 0x55556e6dde40 msgid 1
&lt;br&gt;ldap_chkResponseList ld 0x55556e6dde40 msgid 1 all 1
&lt;br&gt;ldap_chkResponseList returns ld 0x55556e6dde40 NULL
&lt;br&gt;wait4msg ld 0x55556e6dde40 msgid 1 (infinite timeout)
&lt;br&gt;wait4msg continue ld 0x55556e6dde40 msgid 1 all 1
&lt;br&gt;ldap_chkResponseList ld 0x55556e6dde40 msgid 1 all 1
&lt;br&gt;ldap_chkResponseList returns ld 0x55556e6dde40 NULL
&lt;br&gt;ldap_int_select
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Looking-for-support-on-nss_ldap-issue-tp26344398p26429898.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26398898</id>
	<title>Re: Looking for support on nss_ldap issue</title>
	<published>2009-11-17T13:34:06Z</published>
	<updated>2009-11-17T13:34:06Z</updated>
	<author>
		<name>Douglas E. Engert</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26398898&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nssldap@...&lt;/a&gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Sorry for the repost, but I really would like to find out how to fix 
&lt;br&gt;&amp;gt; this as soon as possible.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If I'm missing something or I'm wrong in the framing of this question in 
&lt;br&gt;&amp;gt; any way, or if I'm asking in the wrong place, I welcome any feedback 
&lt;br&gt;&amp;gt; about that as well.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;I use pam_ldap+nss_ldap with CentOS 5.x, and the problem that I'm seeing
&lt;br&gt;&amp;gt; &amp;nbsp;is that nss_ldap doesn't handle a failure of a server to handshake after
&lt;br&gt;&amp;gt; &amp;nbsp;STARTTLS properly. &amp;nbsp;As such, it just hangs, causing an inability to
&lt;br&gt;&amp;gt; &amp;nbsp;authenticate with and gain access to the host using any user in the LDAP
&lt;br&gt;&amp;gt; &amp;nbsp;base. &amp;nbsp;I have not run tcpdump or strace to verify this, but that
&lt;br&gt;&amp;gt; &amp;nbsp;description of the problem seems to be just as good as any I know of at
&lt;br&gt;&amp;gt; &amp;nbsp;this point. &amp;nbsp;If there's any advice to determine the steps in more detail,
&lt;br&gt;&amp;gt; &amp;nbsp;it would be appreciated.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;This is the ldap.conf file that I have now:
&lt;br&gt;&amp;gt; &amp;nbsp;uri &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ldap://ldaphost1 ldap://ldaphost2
&lt;br&gt;&amp;gt; &amp;nbsp;base &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dc=example,dc=com
&lt;br&gt;&amp;gt; &amp;nbsp;pam_filter &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;objectclass=posixAccount
&lt;br&gt;&amp;gt; &amp;nbsp;pam_login_attribute &amp;nbsp; &amp;nbsp; uid
&lt;br&gt;&amp;gt; &amp;nbsp;pam_member_attribute &amp;nbsp; &amp;nbsp;memberUid
&lt;br&gt;&amp;gt; &amp;nbsp;pam_password &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;md5
&lt;br&gt;&amp;gt; &amp;nbsp;ssl &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; start_tls
&lt;br&gt;&amp;gt; &amp;nbsp;tls_cacertdir &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /etc/openldap/cacerts
&lt;br&gt;&amp;gt; &amp;nbsp;tls_cacertfile &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/etc/openldap/cacerts/cacert.pem
&lt;br&gt;&amp;gt; &amp;nbsp;tls_reqcert &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; demand
&lt;br&gt;&amp;gt; &amp;nbsp;bind_timelimit &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5
&lt;br&gt;&amp;gt; &amp;nbsp;nss_initgroups_ignoreusers root,ldap,named
&lt;br&gt;&amp;gt; &amp;nbsp;bind_policy &amp;nbsp;soft
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;If slapd on ldaphost1 has &amp;quot;kill -SIGSTOP&amp;quot; invoked against it, a condition
&lt;br&gt;&amp;gt; &amp;nbsp;that simulates other possible conditions where the server opens a TCP
&lt;br&gt;&amp;gt; &amp;nbsp;connection but then doesn't have a conversation, the client hangs.
&lt;br&gt;&amp;gt; &amp;nbsp;Again, if I'm wrong here, please chime in.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;I have modified a perl script that someone else has written to handle a
&lt;br&gt;&amp;gt; &amp;nbsp;similar failure condition to handle this condition that may also directly
&lt;br&gt;&amp;gt; &amp;nbsp;relate to how LDAP over TLS works , but it is most definitely a kludgy
&lt;br&gt;&amp;gt; &amp;nbsp;workaround and something that I don't want to deploy across hundreds of
&lt;br&gt;&amp;gt; &amp;nbsp;servers. &amp;nbsp;It's just an alarm stanza wrapped around the logic to check
&lt;br&gt;&amp;gt; &amp;nbsp;whether the LDAP server is alive to cause it to be skipped if it doesn't
&lt;br&gt;&amp;gt; &amp;nbsp;respond in a few seconds.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;The host acting as test case is using nss_ldap-253-5.el5 provided with 
&lt;br&gt;&amp;gt; CentOS
&lt;br&gt;&amp;gt; &amp;nbsp;5.x. (I have hosts that are 5.0-5.3 and have tried them on all versions)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;I already looked this issue up and found that someone was having a similar
&lt;br&gt;&amp;gt; &amp;nbsp;problem with CentOS 4.x and they resolved it by using host and port
&lt;br&gt;&amp;gt; &amp;nbsp;parameters instead of uri. &amp;nbsp;There are two problems with that.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;1. I believe that host and port are deprecated parameters, please 
&lt;br&gt;&amp;gt; correct me
&lt;br&gt;&amp;gt; &amp;nbsp;if I'm wrong.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;2. I actually tried that and found that I had a similar problem where 
&lt;br&gt;&amp;gt; there
&lt;br&gt;&amp;gt; &amp;nbsp;was something of a conversation, but it dropped somewhere because sshd
&lt;br&gt;&amp;gt; &amp;nbsp;dropped right after password entry, as if the conversation was disrupted
&lt;br&gt;&amp;gt; &amp;nbsp;somehow.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;Any advice would be greatly appreciated, thanks!
&lt;/div&gt;&lt;br&gt;I don't have a CentOS system but we ran into issues with lost connections
&lt;br&gt;and TLS. This sounds a lot like:
&lt;br&gt;&lt;br&gt;BUG #392: call do_close() if ldap_result() or ldap_parse_result()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fails (before returning NSS_UNAVAIL)
&lt;br&gt;&lt;br&gt;and not having a timelimit set.
&lt;br&gt;&lt;br&gt;Fixes for these are in nss_ldap-265 announced on 11/6/2009
&lt;br&gt;&lt;br&gt;You may want to try using this newer version, if only to see if it fixes
&lt;br&gt;your problem even if CentOS does not have this version yet.
&lt;br&gt;&lt;br&gt;Since this looks like issues with timeouts
&lt;br&gt;You may also want to set:
&lt;br&gt;&lt;br&gt;idle_timelimit 20
&lt;br&gt;timelimit 30
&lt;br&gt;&lt;br&gt;Good luck.
&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;&amp;nbsp; Douglas E. Engert &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26398898&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DEEngert@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; Argonne National Laboratory
&lt;br&gt;&amp;nbsp; 9700 South Cass Avenue
&lt;br&gt;&amp;nbsp; Argonne, Illinois &amp;nbsp;60439
&lt;br&gt;&amp;nbsp; (630) 252-5444
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Looking-for-support-on-nss_ldap-issue-tp26344398p26398898.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26398413</id>
	<title>Re: Looking for support on nss_ldap issue</title>
	<published>2009-11-17T12:48:48Z</published>
	<updated>2009-11-17T12:48:48Z</updated>
	<author>
		<name>Mark Hennessy</name>
	</author>
	<content type="html">Sorry for the repost, but I really would like to find out how to fix this 
&lt;br&gt;as soon as possible.
&lt;br&gt;&lt;br&gt;If I'm missing something or I'm wrong in the framing of this question in 
&lt;br&gt;any way, or if I'm asking in the wrong place, I welcome any feedback about 
&lt;br&gt;that as well.
&lt;br&gt;&lt;br&gt;Hello,
&lt;br&gt;&lt;br&gt;&amp;nbsp; I use pam_ldap+nss_ldap with CentOS 5.x, and the problem that I'm seeing
&lt;br&gt;&amp;nbsp; is that nss_ldap doesn't handle a failure of a server to handshake after
&lt;br&gt;&amp;nbsp; STARTTLS properly. &amp;nbsp;As such, it just hangs, causing an inability to
&lt;br&gt;&amp;nbsp; authenticate with and gain access to the host using any user in the LDAP
&lt;br&gt;&amp;nbsp; base. &amp;nbsp;I have not run tcpdump or strace to verify this, but that
&lt;br&gt;&amp;nbsp; description of the problem seems to be just as good as any I know of at
&lt;br&gt;&amp;nbsp; this point. &amp;nbsp;If there's any advice to determine the steps in more detail,
&lt;br&gt;&amp;nbsp; it would be appreciated.
&lt;br&gt;&lt;br&gt;&amp;nbsp; This is the ldap.conf file that I have now:
&lt;br&gt;&amp;nbsp; uri &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ldap://ldaphost1 ldap://ldaphost2
&lt;br&gt;&amp;nbsp; base &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dc=example,dc=com
&lt;br&gt;&amp;nbsp; pam_filter &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;objectclass=posixAccount
&lt;br&gt;&amp;nbsp; pam_login_attribute &amp;nbsp; &amp;nbsp; uid
&lt;br&gt;&amp;nbsp; pam_member_attribute &amp;nbsp; &amp;nbsp;memberUid
&lt;br&gt;&amp;nbsp; pam_password &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;md5
&lt;br&gt;&amp;nbsp; ssl &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; start_tls
&lt;br&gt;&amp;nbsp; tls_cacertdir &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /etc/openldap/cacerts
&lt;br&gt;&amp;nbsp; tls_cacertfile &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/etc/openldap/cacerts/cacert.pem
&lt;br&gt;&amp;nbsp; tls_reqcert &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; demand
&lt;br&gt;&amp;nbsp; bind_timelimit &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5
&lt;br&gt;&amp;nbsp; nss_initgroups_ignoreusers root,ldap,named
&lt;br&gt;&amp;nbsp; bind_policy &amp;nbsp;soft
&lt;br&gt;&lt;br&gt;&amp;nbsp; If slapd on ldaphost1 has &amp;quot;kill -SIGSTOP&amp;quot; invoked against it, a condition
&lt;br&gt;&amp;nbsp; that simulates other possible conditions where the server opens a TCP
&lt;br&gt;&amp;nbsp; connection but then doesn't have a conversation, the client hangs.
&lt;br&gt;&amp;nbsp; Again, if I'm wrong here, please chime in.
&lt;br&gt;&lt;br&gt;&amp;nbsp; I have modified a perl script that someone else has written to handle a
&lt;br&gt;&amp;nbsp; similar failure condition to handle this condition that may also directly
&lt;br&gt;&amp;nbsp; relate to how LDAP over TLS works , but it is most definitely a kludgy
&lt;br&gt;&amp;nbsp; workaround and something that I don't want to deploy across hundreds of
&lt;br&gt;&amp;nbsp; servers. &amp;nbsp;It's just an alarm stanza wrapped around the logic to check
&lt;br&gt;&amp;nbsp; whether the LDAP server is alive to cause it to be skipped if it doesn't
&lt;br&gt;&amp;nbsp; respond in a few seconds.
&lt;br&gt;&lt;br&gt;&amp;nbsp; The host acting as test case is using nss_ldap-253-5.el5 provided with CentOS
&lt;br&gt;&amp;nbsp; 5.x. (I have hosts that are 5.0-5.3 and have tried them on all versions)
&lt;br&gt;&lt;br&gt;&amp;nbsp; I already looked this issue up and found that someone was having a similar
&lt;br&gt;&amp;nbsp; problem with CentOS 4.x and they resolved it by using host and port
&lt;br&gt;&amp;nbsp; parameters instead of uri. &amp;nbsp;There are two problems with that.
&lt;br&gt;&lt;br&gt;&amp;nbsp; 1. I believe that host and port are deprecated parameters, please correct me
&lt;br&gt;&amp;nbsp; if I'm wrong.
&lt;br&gt;&lt;br&gt;&amp;nbsp; 2. I actually tried that and found that I had a similar problem where there
&lt;br&gt;&amp;nbsp; was something of a conversation, but it dropped somewhere because sshd
&lt;br&gt;&amp;nbsp; dropped right after password entry, as if the conversation was disrupted
&lt;br&gt;&amp;nbsp; somehow.
&lt;br&gt;&lt;br&gt;&amp;nbsp; Any advice would be greatly appreciated, thanks!
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Looking-for-support-on-nss_ldap-issue-tp26344398p26398413.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26344398</id>
	<title>Looking for support on nss_ldap issue</title>
	<published>2009-11-13T13:18:29Z</published>
	<updated>2009-11-13T13:18:29Z</updated>
	<author>
		<name>Mark Hennessy</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I use nss_ldap with CentOS 5.x, and the problem that I'm seeing is that 
&lt;br&gt;nss_ldap doesn't handle a failure of a server to handshake after STARTTLS 
&lt;br&gt;properly. &amp;nbsp;As
&lt;br&gt;such, it just hangs, causing an inability to authenticate with and gain 
&lt;br&gt;access to the host using any user in the LDAP base.
&lt;br&gt;&lt;br&gt;This is the ldap.conf file that I have now:
&lt;br&gt;uri &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ldap://ldaphost1 ldap://ldaphost2
&lt;br&gt;base &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dc=example,dc=com
&lt;br&gt;pam_filter &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;objectclass=posixAccount
&lt;br&gt;pam_login_attribute &amp;nbsp; &amp;nbsp; uid
&lt;br&gt;pam_member_attribute &amp;nbsp; &amp;nbsp;memberUid
&lt;br&gt;pam_password &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;md5
&lt;br&gt;ssl &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; start_tls
&lt;br&gt;tls_cacertdir &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /etc/openldap/cacerts
&lt;br&gt;tls_cacertfile &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/etc/openldap/cacerts/cacert.pem
&lt;br&gt;tls_reqcert &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; demand
&lt;br&gt;bind_timelimit &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5
&lt;br&gt;nss_initgroups_ignoreusers root,ldap,named
&lt;br&gt;bind_policy &amp;nbsp;soft
&lt;br&gt;&lt;br&gt;If slapd on ldaphost1 has &amp;quot;kill -SIGSTOP&amp;quot; invoked against it, a condition 
&lt;br&gt;that simulates other possible conditions where the server opens a TCP 
&lt;br&gt;connection but then doesn't have a conversation, the client hangs.
&lt;br&gt;&lt;br&gt;I have modified a perl script that someone else has written to handle a 
&lt;br&gt;similar failure condition to handle this condition that may also directly 
&lt;br&gt;relate to how LDAP over TLS works , but it is most definitely a kludgy 
&lt;br&gt;workaround and something that I don't want to deploy across hundreds of 
&lt;br&gt;servers.
&lt;br&gt;&lt;br&gt;The host acting as test case is using nss_ldap-253-5.el5 provided with 
&lt;br&gt;CentOS 5.x.
&lt;br&gt;&lt;br&gt;I already looked this issue up and found that someone was having a similar 
&lt;br&gt;problem with CentOS 4.x and they resolved it by using host and port 
&lt;br&gt;parameters instead of uri. &amp;nbsp;There are two problems with that.
&lt;br&gt;&lt;br&gt;1. I believe that host and port are deprecated parameters, please correct 
&lt;br&gt;me if I'm wrong.
&lt;br&gt;&lt;br&gt;2. I actually tried that and found that I had a similar problem where 
&lt;br&gt;there was something of a conversation, but it dropped somewhere because 
&lt;br&gt;sshd dropped right after password entry, as if the conversation was 
&lt;br&gt;disrupted somehow.
&lt;br&gt;&lt;br&gt;Any advice would be greatly appreciated, thanks!
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Looking-for-support-on-nss_ldap-issue-tp26344398p26344398.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26324100</id>
	<title>Re: nss ldap under RHEL 5 does first connects configured ldap server and than does dns lookup and tries to connect random ldap servers</title>
	<published>2009-11-12T09:51:10Z</published>
	<updated>2009-11-12T09:51:10Z</updated>
	<author>
		<name>Thomas Glanzmann</name>
	</author>
	<content type="html">Hello Buchan,
&lt;br&gt;&lt;br&gt;&amp;gt; referrals no
&lt;br&gt;&lt;br&gt;I owe you a beer or two. Thanks you a lot that solved my problem.
&lt;br&gt;&lt;br&gt;&amp;gt; (I am not sure if it would be enabled or not, but it looks like it is
&lt;br&gt;&amp;gt; chasing referrals, and setting this should stop it).
&lt;br&gt;&lt;br&gt;I didn't know about ldap referrals but I read it up and now have an idea
&lt;br&gt;what they're about.
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://sunschlichter0.informatik.tu-muenchen.de/Java/jnditutorial/ldap/referral/overview.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sunschlichter0.informatik.tu-muenchen.de/Java/jnditutorial/ldap/referral/overview.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;and here it is from the sniff I took:
&lt;br&gt;&lt;br&gt;Lightweight-Directory-Access-Protocol
&lt;br&gt;&amp;nbsp; &amp;nbsp; LDAPMessage searchResRef(2)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; messageID: 2
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; protocolOp: searchResRef (19)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; searchResRef: 1 item
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Item: ldap://DomainDnsZones.ww004.glanzmann.net/DC=DomainDnsZones,DC=ww004,DC=glanzmann,DC=net
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [Response To: 256]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [Time: 0.017066000 seconds]
&lt;br&gt;&lt;br&gt;Again, thank you a lot!
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thomas
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/nss-ldap-under-RHEL-5-does-first-connects-configured-ldap-server-and-than-does-dns-lookup-and-tries-to-connect-random-ldap-servers-tp26317865p26324100.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26323833</id>
	<title>Re: nss ldap under RHEL 5 does first connects configured ldap server and than does dns lookup and tries to connect random ldap servers</title>
	<published>2009-11-12T09:33:40Z</published>
	<updated>2009-11-12T09:33:40Z</updated>
	<author>
		<name>Bugzilla from bgmilne@mandriva.org</name>
	</author>
	<content type="html">On Thursday, 12 November 2009 12:37:20 Thomas Glanzmann wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt; I have RHEL 5.3 nss_ldap connected to active directory. The
&lt;br&gt;&amp;gt; configuration (/etc/ldap.conf) is the following:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; host 157.163.212.208
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; bind_policy soft
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; base DC=ww004,DC=glanzmann,DC=net
&lt;br&gt;&amp;gt; ldap_version 3
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; binddn
&lt;br&gt;&amp;gt; CN=ADLDAPF,OU=ErlF,OU=User,OU=_CentralServices,DC=ww004,DC=glanzmann,DC=net
&lt;br&gt;&amp;gt; bindpw geheim
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; nss_base_passwd &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DC=ww004,DC=glanzmann,DC=net?sub?uid=*
&lt;br&gt;&amp;gt; nss_base_shadow &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DC=ww004,DC=glanzmann,DC=net?sub?uid=*
&lt;br&gt;&amp;gt; nss_base_group &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DC=ww004,DC=glanzmann,DC=net?sub?gidNumber=*
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; nss_map_objectclass posixAccount user
&lt;br&gt;&amp;gt; nss_map_objectclass shadowAccount user
&lt;br&gt;&amp;gt; nss_map_objectclass posixGroup group
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; nss_map_attribute homeDirectory unixHomeDirectory
&lt;br&gt;&amp;gt; nss_map_attribute gecos displayname
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; nss_map_attribute group:cn displayName
&lt;br&gt;&amp;gt; nss_map_attribute uniqueMember member
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; schema rfc2307bis
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When I do a ,,getent passwd'' it shows the local users, the directory
&lt;br&gt;&amp;gt; users, and than hangs. By sniffing the connection, I see that connectes
&lt;br&gt;&amp;gt; to 157.163.212.208 does, search, gets the answer and even lists the
&lt;br&gt;&amp;gt; users. But than it does a DNS lookup for
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DomainDnsZones.ww004.glanzmann.net
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; And tries to connect these servers which results into a hang because there
&lt;br&gt;&amp;gt; is a firewall in place which makes it impossible to connect the machines.
&lt;br&gt;&amp;gt; Is there a way to get rid of this annoying behaviour using a configuration
&lt;br&gt;&amp;gt; option or do I have to rebuild nss ldap?
&lt;/div&gt;&lt;br&gt;Try adding:
&lt;br&gt;&lt;br&gt;referrals no
&lt;br&gt;&lt;br&gt;(I am not sure if it would be enabled or not, but it looks like it is chasing 
&lt;br&gt;referrals, and setting this should stop it).
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Buchan
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/nss-ldap-under-RHEL-5-does-first-connects-configured-ldap-server-and-than-does-dns-lookup-and-tries-to-connect-random-ldap-servers-tp26317865p26323833.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26318900</id>
	<title>Re: nss ldap under RHEL 5 does first connects configured ldap server and than does dns lookup and tries to connect random ldap servers</title>
	<published>2009-11-12T04:53:15Z</published>
	<updated>2009-11-12T04:53:15Z</updated>
	<author>
		<name>Thomas Glanzmann</name>
	</author>
	<content type="html">Hello Rousse,
&lt;br&gt;&lt;br&gt;&amp;gt; Do you have ldap listed for 'hosts' entry in nsswitch.conf, by any chance ?
&lt;br&gt;&lt;br&gt;no, I don't:
&lt;br&gt;&lt;br&gt;[root@deerlf0x84 ~]# cat /etc/nsswitch.conf
&lt;br&gt;# Managed by Cfengine do not edit this file locally
&lt;br&gt;# thor:/var/cfengine/inputs/distributed/erlf_linux/etc/nsswitch.conf
&lt;br&gt;passwd: &amp;nbsp; &amp;nbsp; files ldap
&lt;br&gt;group: &amp;nbsp; &amp;nbsp; &amp;nbsp;files ldap
&lt;br&gt;shadow: &amp;nbsp; &amp;nbsp; files
&lt;br&gt;&lt;br&gt;hosts: &amp;nbsp; &amp;nbsp; &amp;nbsp;files dns
&lt;br&gt;&lt;br&gt;bootparams: files
&lt;br&gt;&lt;br&gt;ethers: &amp;nbsp; &amp;nbsp; files
&lt;br&gt;netmasks: &amp;nbsp; files
&lt;br&gt;networks: &amp;nbsp; files
&lt;br&gt;protocols: &amp;nbsp;files
&lt;br&gt;rpc: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;files
&lt;br&gt;services: &amp;nbsp; files
&lt;br&gt;&lt;br&gt;automount: &amp;nbsp;files
&lt;br&gt;aliases: &amp;nbsp; &amp;nbsp;files
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thomas
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/nss-ldap-under-RHEL-5-does-first-connects-configured-ldap-server-and-than-does-dns-lookup-and-tries-to-connect-random-ldap-servers-tp26317865p26318900.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26318504</id>
	<title>Re: nss ldap under RHEL 5 does first connects configured ldap server	and than does dns lookup and tries to connect random ldap servers</title>
	<published>2009-11-12T04:30:30Z</published>
	<updated>2009-11-12T04:30:30Z</updated>
	<author>
		<name>guillomovitch</name>
	</author>
	<content type="html">Thomas Glanzmann a écrit :
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; When I do a ,,getent passwd'' it shows the local users, the directory
&lt;br&gt;&amp;gt; users, and than hangs. By sniffing the connection, I see that connectes
&lt;br&gt;&amp;gt; to 157.163.212.208 does, search, gets the answer and even lists the
&lt;br&gt;&amp;gt; users. But than it does a DNS lookup for
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DomainDnsZones.ww004.glanzmann.net
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; And tries to connect these servers which results into a hang because there is a
&lt;br&gt;&amp;gt; firewall in place which makes it impossible to connect the machines. Is there a
&lt;br&gt;&amp;gt; way to get rid of this annoying behaviour using a configuration option or do I
&lt;br&gt;&amp;gt; have to rebuild nss ldap?
&lt;/div&gt;Do you have ldap listed for 'hosts' entry in nsswitch.conf, by any chance ?
&lt;br&gt;-- 
&lt;br&gt;BOFH excuse #266:
&lt;br&gt;&lt;br&gt;All of the packets are empty.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/nss-ldap-under-RHEL-5-does-first-connects-configured-ldap-server-and-than-does-dns-lookup-and-tries-to-connect-random-ldap-servers-tp26317865p26318504.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26317885</id>
	<title>Re: nss ldap under RHEL 5 does first connects configured ldap server and than does dns lookup and tries to connect random ldap servers</title>
	<published>2009-11-12T03:50:46Z</published>
	<updated>2009-11-12T03:50:46Z</updated>
	<author>
		<name>Thomas Glanzmann</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DomainDnsZones.ww004.glanzmann.net
&lt;br&gt;&lt;br&gt;&amp;gt; And tries to connect these servers which results into a hang because there is a
&lt;br&gt;&amp;gt; firewall in place which makes it impossible to connect the machines. Is there a
&lt;br&gt;&amp;gt; way to get rid of this annoying behaviour using a configuration option or do I
&lt;br&gt;&amp;gt; have to rebuild nss ldap?
&lt;br&gt;&lt;br&gt;this works, but doesn't give me a chance to use redundant ldap servers:
&lt;br&gt;&lt;br&gt;echo &amp;quot;157.163.212.208 DomainDnsZones.ww004.glanzmann.net&amp;quot; &amp;gt;&amp;gt; /etc/hosts
&lt;br&gt;&lt;br&gt;I hope there is another way. While reading the code, my understanding is
&lt;br&gt;that it only tries to do the lookup if it doesn't have an uri or host
&lt;br&gt;entry. I also tried to modify my host directive into a uri, but the same
&lt;br&gt;problem occurs.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thomas
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/nss-ldap-under-RHEL-5-does-first-connects-configured-ldap-server-and-than-does-dns-lookup-and-tries-to-connect-random-ldap-servers-tp26317865p26317885.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26317865</id>
	<title>nss ldap under RHEL 5 does first connects configured ldap server and than does dns lookup and tries to connect random ldap servers</title>
	<published>2009-11-12T03:37:20Z</published>
	<updated>2009-11-12T03:37:20Z</updated>
	<author>
		<name>Thomas Glanzmann</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;I have RHEL 5.3 nss_ldap connected to active directory. The
&lt;br&gt;configuration (/etc/ldap.conf) is the following:
&lt;br&gt;&lt;br&gt;host 157.163.212.208
&lt;br&gt;&lt;br&gt;bind_policy soft
&lt;br&gt;&lt;br&gt;base DC=ww004,DC=glanzmann,DC=net
&lt;br&gt;ldap_version 3
&lt;br&gt;&lt;br&gt;binddn CN=ADLDAPF,OU=ErlF,OU=User,OU=_CentralServices,DC=ww004,DC=glanzmann,DC=net
&lt;br&gt;bindpw geheim
&lt;br&gt;&lt;br&gt;nss_base_passwd &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DC=ww004,DC=glanzmann,DC=net?sub?uid=*
&lt;br&gt;nss_base_shadow &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DC=ww004,DC=glanzmann,DC=net?sub?uid=*
&lt;br&gt;nss_base_group &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DC=ww004,DC=glanzmann,DC=net?sub?gidNumber=*
&lt;br&gt;&lt;br&gt;nss_map_objectclass posixAccount user
&lt;br&gt;nss_map_objectclass shadowAccount user
&lt;br&gt;nss_map_objectclass posixGroup group
&lt;br&gt;&lt;br&gt;nss_map_attribute homeDirectory unixHomeDirectory
&lt;br&gt;nss_map_attribute gecos displayname
&lt;br&gt;&lt;br&gt;nss_map_attribute group:cn displayName
&lt;br&gt;nss_map_attribute uniqueMember member
&lt;br&gt;&lt;br&gt;schema rfc2307bis
&lt;br&gt;&lt;br&gt;When I do a ,,getent passwd'' it shows the local users, the directory
&lt;br&gt;users, and than hangs. By sniffing the connection, I see that connectes
&lt;br&gt;to 157.163.212.208 does, search, gets the answer and even lists the
&lt;br&gt;users. But than it does a DNS lookup for
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DomainDnsZones.ww004.glanzmann.net
&lt;br&gt;&lt;br&gt;And tries to connect these servers which results into a hang because there is a
&lt;br&gt;firewall in place which makes it impossible to connect the machines. Is there a
&lt;br&gt;way to get rid of this annoying behaviour using a configuration option or do I
&lt;br&gt;have to rebuild nss ldap?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thomas
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/nss-ldap-under-RHEL-5-does-first-connects-configured-ldap-server-and-than-does-dns-lookup-and-tries-to-connect-random-ldap-servers-tp26317865p26317865.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26312168</id>
	<title>Re: nss_ldap-265</title>
	<published>2009-11-11T17:03:34Z</published>
	<updated>2009-11-11T17:03:34Z</updated>
	<author>
		<name>Lukeh-3</name>
	</author>
	<content type="html">Thanks, will be in nss_ldap-266.
&lt;br&gt;&lt;br&gt;On 06/11/2009, at 6:56 PM, Guillaume Rousse wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Luke Howard a écrit :
&lt;br&gt;&amp;gt;&amp;gt; 265 &amp;nbsp; &amp;nbsp; Luke Howard &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312168&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lukeh@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* fix for BUG#132: add versioning information to binary
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* fix for BUG#403: add AM_MAINTAINER_MODE
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* fix for BUG#388: bad LDAP query for ether lookups
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* fix for BUG#391: clarify bind timelimit defaults
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;in ldap.conf
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* fix for BUG#392: call do_close() if ldap_result()
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;or ldap_parse_result() fails (before returning
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NSS_UNAVAIL)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* fix for BUG#401: FreeBSD thread library check
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* fix for BUG#409: deallocate context in
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_nss_ldap_ent_context_release() to avoid bad usage
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* fix for BUG#410: don't leak file descriptors in
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_nss_ldap_readconfig
&lt;br&gt;&amp;gt; I had to use this patch to make it build, as current directory is &amp;nbsp;
&lt;br&gt;&amp;gt; unlikely to be in PATH:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --- nss_ldap-265/Makefile.am	2009-11-06 11:28:08.000000000 +0100
&lt;br&gt;&amp;gt; +++ nss_ldap-265-Makefile/Makefile.am	2009-11-06 15:05:18.000000000 &amp;nbsp;
&lt;br&gt;&amp;gt; +0100
&lt;br&gt;&amp;gt; @@ -109,5 +109,5 @@
&lt;br&gt;&amp;gt; 	@$(NORMAL_UNINSTALL)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; vers.c: $(top_srcdir)/CVSVersionInfo.txt
&lt;br&gt;&amp;gt; -	CVSVERSIONDIR=$(top_srcdir) vers_string -v
&lt;br&gt;&amp;gt; +	CVSVERSIONDIR=$(top_srcdir) $(top_srcdir)/vers_string -v
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; BOFH excuse #20:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; divide-by-zero error
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;www.padl.com | www.fghr.net
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/nss_ldap-265-tp26230441p26312168.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26306613</id>
	<title>FResh release of Mega patch!</title>
	<published>2009-11-11T09:53:15Z</published>
	<updated>2009-11-11T09:53:15Z</updated>
	<author>
		<name>Howard Wilkinson</name>
	</author>
	<content type="html">I have refactored my mega patch into a number of smaller patches along
&lt;br&gt;with one smaller mega patch. These have been published as Bug 412 on the
&lt;br&gt;bugzilla. This patch set is against nss_Ldap 265. I would appreciate any
&lt;br&gt;feedback on the patches or experience in the usage of this code in the
&lt;br&gt;various environment. I have so far only build and run this in Redhat
&lt;br&gt;environments. I intend to try a late release Fedora shortly and will try
&lt;br&gt;Solaris 10 within the next few days. If anybody has other platform
&lt;br&gt;experience that would be very useful.
&lt;br&gt;&lt;br&gt;The Kerberos code should not work and I would be grateful if people
&lt;br&gt;could exercise this using both local credentials acquisition and third
&lt;br&gt;party acquisition, with and without renewal enabled.
&lt;br&gt;&lt;br&gt;TLS/SSL based authentication needs testing - I hope I have not broken
&lt;br&gt;anything.
&lt;br&gt;&lt;br&gt;Anonymous works for me on oen site, and I will test basic authentication
&lt;br&gt;to the LDAP server in the next couple of days.
&lt;br&gt;&lt;br&gt;Most of my testing is against AD and Sun LDAP servers. Usage against
&lt;br&gt;other LDAP environments would also be good.
&lt;br&gt;&lt;br&gt;I have made an attempt at documenting what I have done but all
&lt;br&gt;contributions/criticisms (gratefully/grudgingly) accepted ;-)
&lt;br&gt;&lt;br&gt;Regards, HOward
&lt;br&gt;&lt;br&gt;P.S. I still have things that I need to fix in the core LDAP stuff but
&lt;br&gt;this patch set should make things much more stable/useful going forward.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Howard Wilkinson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26306613&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;howard@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Coherent Technology Limited
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/FResh-release-of-Mega-patch%21-tp26306613p26306613.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26236814</id>
	<title>Re: nss_ldap-265</title>
	<published>2009-11-06T09:56:19Z</published>
	<updated>2009-11-06T09:56:19Z</updated>
	<author>
		<name>guillomovitch</name>
	</author>
	<content type="html">Luke Howard a écrit :
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 265 &amp;nbsp; &amp;nbsp; Luke Howard &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26236814&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lukeh@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * fix for BUG#132: add versioning information to binary
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * fix for BUG#403: add AM_MAINTAINER_MODE
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * fix for BUG#388: bad LDAP query for ether lookups
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * fix for BUG#391: clarify bind timelimit defaults
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; in ldap.conf
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * fix for BUG#392: call do_close() if ldap_result()
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; or ldap_parse_result() fails (before returning
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NSS_UNAVAIL)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * fix for BUG#401: FreeBSD thread library check
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * fix for BUG#409: deallocate context in
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _nss_ldap_ent_context_release() to avoid bad usage
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * fix for BUG#410: don't leak file descriptors in
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _nss_ldap_readconfig
&lt;/div&gt;I had to use this patch to make it build, as current directory is 
&lt;br&gt;unlikely to be in PATH:
&lt;br&gt;&lt;br&gt;--- nss_ldap-265/Makefile.am	2009-11-06 11:28:08.000000000 +0100
&lt;br&gt;+++ nss_ldap-265-Makefile/Makefile.am	2009-11-06 15:05:18.000000000 +0100
&lt;br&gt;@@ -109,5 +109,5 @@
&lt;br&gt;&amp;nbsp; 	@$(NORMAL_UNINSTALL)
&lt;br&gt;&lt;br&gt;&amp;nbsp; vers.c: $(top_srcdir)/CVSVersionInfo.txt
&lt;br&gt;-	CVSVERSIONDIR=$(top_srcdir) vers_string -v
&lt;br&gt;+	CVSVERSIONDIR=$(top_srcdir) $(top_srcdir)/vers_string -v
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;BOFH excuse #20:
&lt;br&gt;&lt;br&gt;divide-by-zero error
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/nss_ldap-265-tp26230441p26236814.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26230579</id>
	<title>pam_ldap-185</title>
	<published>2009-11-06T02:29:44Z</published>
	<updated>2009-11-06T02:29:44Z</updated>
	<author>
		<name>Lukeh-3</name>
	</author>
	<content type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body style=&quot;word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; &quot;&gt;&lt;div&gt;185 &amp;nbsp; &amp;nbsp; Luke Howard &amp;lt;lukeh@padlcom&amp;gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* fix for BUG#232: LDAP write on userPassword fails&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;when chasing referral and cached policy error is&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;POLICY_ERROR_PASSWORD_EXPIRED&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* fix for BUG#366: only request attributes that are&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;actually used&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* fix for BUG#394: canonicalize PAM_USER name&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Helvetica; font-size: 12px; &quot;&gt;&lt;div style=&quot;word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; &quot;&gt;&lt;div style=&quot;word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; &quot;&gt;&lt;div&gt;--&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://www.padl.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;www.padl.com&lt;/a&gt; | &lt;a href=&quot;http://www.fghr.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;www.fghr.net&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;br&gt;&lt;/body&gt;&lt;/html&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PAM-LDAP-f14178.html&quot; embed=&quot;fixTarget[14178]&quot; target=&quot;_top&quot; &gt;PAM LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/pam_ldap-185-tp26230579p26230579.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26230441</id>
	<title>nss_ldap-265</title>
	<published>2009-11-06T02:28:55Z</published>
	<updated>2009-11-06T02:28:55Z</updated>
	<author>
		<name>Lukeh-3</name>
	</author>
	<content type="html">265 &amp;nbsp; &amp;nbsp; Luke Howard &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26230441&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lukeh@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* fix for BUG#132: add versioning information to binary
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* fix for BUG#403: add AM_MAINTAINER_MODE
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* fix for BUG#388: bad LDAP query for ether lookups
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* fix for BUG#391: clarify bind timelimit defaults
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;in ldap.conf
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* fix for BUG#392: call do_close() if ldap_result()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;or ldap_parse_result() fails (before returning
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NSS_UNAVAIL)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* fix for BUG#401: FreeBSD thread library check
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* fix for BUG#409: deallocate context in
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_nss_ldap_ent_context_release() to avoid bad usage
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* fix for BUG#410: don't leak file descriptors in
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_nss_ldap_readconfig
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/nss_ldap-265-tp26230441p26230441.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26218167</id>
	<title>Re: Call for nss_ov and nss-ldapd Testers</title>
	<published>2009-11-05T07:47:35Z</published>
	<updated>2009-11-05T07:47:35Z</updated>
	<author>
		<name>Matthew Hardin</name>
	</author>
	<content type="html">On Nov 5, 2009, at 2:54 AM, stephen mulcahy wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Hi Matthew,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Apologies for asking but what is nss_ov? A quick google didn't shed &amp;nbsp;
&lt;br&gt;&amp;gt; any light on it.
&lt;br&gt;&lt;br&gt;Not at all- maybe a little history is in order:
&lt;br&gt;&lt;br&gt;Those of you familiar with Arthur's work will know that the nss-ldapd &amp;nbsp;
&lt;br&gt;project originally consisted of a very small nss_ldap library module &amp;nbsp;
&lt;br&gt;that communicated with a local daemon called ldapd, which in turn &amp;nbsp;
&lt;br&gt;communicated with a remote LDAP server. Many instances of the nss_ldap &amp;nbsp;
&lt;br&gt;library communicated with a single ldapd process. The ldapd process &amp;nbsp;
&lt;br&gt;performed the heavy lifting, and the nss_ldap module was therefore &amp;nbsp;
&lt;br&gt;much smaller, simpler and faster. In addition, consolidating the LDAP &amp;nbsp;
&lt;br&gt;communication functions into a daemon would make it easier to develop &amp;nbsp;
&lt;br&gt;caching strategies and enhanced access control features. &amp;nbsp;
&lt;br&gt;Unfortunately, since the ldapd was and is still relatively new, these &amp;nbsp;
&lt;br&gt;features are yet to be developed.
&lt;br&gt;&lt;br&gt;Howard Chu looked at Arthur's work and realized that the OpenLDAP &amp;nbsp;
&lt;br&gt;server daemon, slapd, already had everything needed to implement &amp;nbsp;
&lt;br&gt;caching, replication, and many more desirable features, and only &amp;nbsp;
&lt;br&gt;needed a listener to let it interface to the new nss_ldap module. Thus &amp;nbsp;
&lt;br&gt;was born nss_ov, a slapd overlay that listens for requests from nss- 
&lt;br&gt;ldapd's nss_ldap library and turns them into the appropriate internal &amp;nbsp;
&lt;br&gt;slapd operations for processing. A slapd server process could now &amp;nbsp;
&lt;br&gt;replace the original ldap process. For it's part, slapd could be &amp;nbsp;
&lt;br&gt;configured as a cache server, or as a full or partial replica of &amp;nbsp;
&lt;br&gt;another OpenLDAP server. The replication strategy allowed for fully &amp;nbsp;
&lt;br&gt;disconnected operation if desired. OpenLDAP's rich access control &amp;nbsp;
&lt;br&gt;policies enabled the creation of many more methods of managing login &amp;nbsp;
&lt;br&gt;access to systems.
&lt;br&gt;&lt;br&gt;The work done for nss_ldap was a great step forward, but any system &amp;nbsp;
&lt;br&gt;using it still had need of PAM functionality to handle LDAP &amp;nbsp;
&lt;br&gt;authentication. Configuring pam_ldap entailed installing and managing &amp;nbsp;
&lt;br&gt;much of the same infrastructure needed for the original nss_ldap code, &amp;nbsp;
&lt;br&gt;so it actually became more difficult to configure and manage systems &amp;nbsp;
&lt;br&gt;using pam_ldap and the new nss_ldap/ldapd combination. Our goal was to &amp;nbsp;
&lt;br&gt;only have to manage a single system, so Howard developed a small &amp;nbsp;
&lt;br&gt;pam_ldap module that could communicate with nss_ov/slapd and added the &amp;nbsp;
&lt;br&gt;necessary support functions to nss_ov. When Howard submitted the new &amp;nbsp;
&lt;br&gt;PAM module for inclusion in the nss-ldapd project, Arthur added the &amp;nbsp;
&lt;br&gt;requisite functionality to the ldapd daemon to support PAM operations.
&lt;br&gt;&lt;br&gt;So now the nss-ldapd pam_ldap and nss_ldap libraries can be used &amp;nbsp;
&lt;br&gt;either with Arthur's ldapd daemon, or with the OpenLDAP Project's &amp;nbsp;
&lt;br&gt;slapd daemon. Each has their advantages: ldapd is relatively small and &amp;nbsp;
&lt;br&gt;light, but at present doesn't support caching and is relatively &amp;nbsp;
&lt;br&gt;untested. The slapd daemon is larger and can consume more resources, &amp;nbsp;
&lt;br&gt;but offers caching, replication, a richer access control model, and &amp;nbsp;
&lt;br&gt;many more capabilities as discussed above. The need for additional &amp;nbsp;
&lt;br&gt;resources is mitigated by the fact that most systems these days can &amp;nbsp;
&lt;br&gt;provide them, and the fact that the functionality brought by using &amp;nbsp;
&lt;br&gt;slapd is well worth the additional resources.
&lt;br&gt;&lt;br&gt;With SUUM v4, Symas is providing an integrated package that blends the &amp;nbsp;
&lt;br&gt;nss_ldap and pam_ldap modules from the nss-ldapd project with a &amp;nbsp;
&lt;br&gt;version of OpenLDAP tailored to run on a client in any of several &amp;nbsp;
&lt;br&gt;modes. Sample configuration files will help the new user get started &amp;nbsp;
&lt;br&gt;quickly.
&lt;br&gt;&lt;br&gt;I should also point out that new work on OpenLDAP's pcache overlay &amp;nbsp;
&lt;br&gt;greatly enhances the ability of a client to run in disconnected mode &amp;nbsp;
&lt;br&gt;with master servers other than OpenLDAP, but that's a discussion for &amp;nbsp;
&lt;br&gt;another time.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;&lt;br&gt;-Matt
&lt;br&gt;&lt;br&gt;Matthew Hardin
&lt;br&gt;Symas Corporation - The LDAP Guys
&lt;br&gt;&lt;a href=&quot;http://www.symas.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.symas.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -stephen
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; Stephen Mulcahy, DI2, Digital Enterprise Research Institute,
&lt;br&gt;&amp;gt; NUI Galway, IDA Business Park, Lower Dangan, Galway, Ireland
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://di2.deri.ie&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://di2.deri.ie&lt;/a&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://webstar.deri.ie&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://webstar.deri.ie&lt;/a&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://sindice.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sindice.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Call-for-nss_ov-and-nss-ldapd-Testers-tp26204866p26218167.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26204866</id>
	<title>Call for nss_ov and nss-ldapd Testers</title>
	<published>2009-11-04T12:22:57Z</published>
	<updated>2009-11-04T12:22:57Z</updated>
	<author>
		<name>Matthew Hardin</name>
	</author>
	<content type="html">For those of you interested in the intersection of the excellent work &amp;nbsp;
&lt;br&gt;done by Arthur de Jong on nss-ldapd and Howard Chu on nss_ov, Symas is &amp;nbsp;
&lt;br&gt;developing an integrated package consisting of the nss_ldap and &amp;nbsp;
&lt;br&gt;pam_ldap libraries from nss-ldapd and the OpenLDAP server configured &amp;nbsp;
&lt;br&gt;with the nss_ov overlay.
&lt;br&gt;&lt;br&gt;The new package has been dubbed Symas Unified User Management version &amp;nbsp;
&lt;br&gt;4 and is available now without download restrictions. Symas will &amp;nbsp;
&lt;br&gt;provide complimentary technical support during the testing period.
&lt;br&gt;&lt;br&gt;Available platforms include Solaris and Red Hat Linux, with more &amp;nbsp;
&lt;br&gt;platforms becoming available as we have the opportunity to port to &amp;nbsp;
&lt;br&gt;them. As always, the results of our work are submitted for inclusion &amp;nbsp;
&lt;br&gt;upstream in the nss-ldapd and OpenLDAP projects.
&lt;br&gt;&lt;br&gt;The release announcement is here: &lt;a href=&quot;http://www.symas.com/updates/?p=37&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.symas.com/updates/?p=37&lt;/a&gt;. &amp;nbsp;
&lt;br&gt;Subscribe to this blog's RSS feed to stay abreast of new releases as &amp;nbsp;
&lt;br&gt;they become available.
&lt;br&gt;&lt;br&gt;Please direct support questions to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26204866&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;support@...&lt;/a&gt;. We'll do our &amp;nbsp;
&lt;br&gt;best to resolve any issues as quickly as possible.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;&lt;br&gt;-Matt
&lt;br&gt;&lt;br&gt;Matthew Hardin
&lt;br&gt;Symas Corporation - The LDAP Guys
&lt;br&gt;&lt;a href=&quot;http://www.symas.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.symas.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Call-for-nss_ov-and-nss-ldapd-Testers-tp26204866p26204866.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26159175</id>
	<title>Re: disconnected nss_ldap</title>
	<published>2009-11-01T22:24:06Z</published>
	<updated>2009-11-01T22:24:06Z</updated>
	<author>
		<name>Brian J. Murrell</name>
	</author>
	<content type="html">On Sun, 2009-11-01 at 22:19 -0500, Brian J. Murrell wrote: 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;Hrm. &amp;nbsp;I spoke too soon. &amp;nbsp;:-(
&lt;br&gt;&lt;br&gt;&amp;gt; Some debugging in nscd reveals that the problem lies in that the
&lt;br&gt;&amp;gt; only error value that nscd is allowing for the &amp;quot;unreachable server&amp;quot; case
&lt;br&gt;&amp;gt; is EAGAIN. &amp;nbsp;However, in my case (at least), where I am blocking the LDAP
&lt;br&gt;&amp;gt; server with iptables configured to send back TCP RST, the error value is
&lt;br&gt;&amp;gt; ENOTCONN and when I tell nscd that ENOTCONN is a vaild error for the
&lt;br&gt;&amp;gt; &amp;quot;unreachable&amp;quot; case, nscd seems to hold on to the entries it had before
&lt;br&gt;&amp;gt; the LDAP server became unreachable.
&lt;br&gt;&lt;br&gt;But in testing what nscd does when the network connection is down
&lt;br&gt;altogether, it would seem that __getpw{nam|uuid}_r() returns an ENOENT
&lt;br&gt;(2). &amp;nbsp;Which of course it not valid for the &amp;quot;server unreachable&amp;quot; clause
&lt;br&gt;of nscd which simply allows the cached record to live on.
&lt;br&gt;&lt;br&gt;I'm not sure why that is TBH. &amp;nbsp;It seems reasonable that an ENOENT is
&lt;br&gt;suitable for the local, /etc/passwd entry (in absence of any other
&lt;br&gt;databases), but surely when configured with nss_ldap (&amp;quot;passwd: compat
&lt;br&gt;ldap&amp;quot; in /etc/nsswitch.conf), an ENOENT for a missing /etc/passwd entry
&lt;br&gt;is suppressed and the return from nss_ldap is the final return for the
&lt;br&gt;__getpw{nam|uuid}_r() functions, yes?
&lt;br&gt;&lt;br&gt;b.
&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (204 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26159175/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/disconnected-nss_ldap-tp26035873p26159175.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26158177</id>
	<title>Re: disconnected nss_ldap</title>
	<published>2009-11-01T19:19:32Z</published>
	<updated>2009-11-01T19:19:32Z</updated>
	<author>
		<name>Brian J. Murrell</name>
	</author>
	<content type="html">On Sun, 2009-11-01 at 19:59 -0500, Brian J. Murrell wrote: 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; What can I do to help narrow this down?
&lt;br&gt;&lt;br&gt;OK. &amp;nbsp;Some debugging in nscd reveals that the problem lies in that the
&lt;br&gt;only error value that nscd is allowing for the &amp;quot;unreachable server&amp;quot; case
&lt;br&gt;is EAGAIN. &amp;nbsp;However, in my case (at least), where I am blocking the LDAP
&lt;br&gt;server with iptables configured to send back TCP RST, the error value is
&lt;br&gt;ENOTCONN and when I tell nscd that ENOTCONN is a vaild error for the
&lt;br&gt;&amp;quot;unreachable&amp;quot; case, nscd seems to hold on to the entries it had before
&lt;br&gt;the LDAP server became unreachable.
&lt;br&gt;&lt;br&gt;More time will tell for sure.
&lt;br&gt;&lt;br&gt;b.
&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (204 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26158177/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/disconnected-nss_ldap-tp26035873p26158177.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26157564</id>
	<title>Re: Re: disconnected nss_ldap</title>
	<published>2009-11-01T18:01:13Z</published>
	<updated>2009-11-01T18:01:13Z</updated>
	<author>
		<name>Howard Chu</name>
	</author>
	<content type="html">Brian J. Murrell wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I got it to build and install without much ado.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Unfortunately, it doesn't seem to do much better than we had before.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I am using an iptables rule (which sends back a TCP RST to existing and
&lt;br&gt;&amp;gt; new connection attempts) at my ldap server to simulate disconnection.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; For a short while after &amp;quot;disconnection&amp;quot; &amp;quot;id brian&amp;quot; returns a result, but
&lt;br&gt;&amp;gt; as before, not very long after disconnection it starts failing.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; What can I do to help narrow this down?
&lt;/div&gt;&lt;br&gt;You're chasing a dead-end. Even if you get this aspect working, nscd still
&lt;br&gt;doesn't cache enumerations, which are the most expensive nss lookup operation.
&lt;br&gt;(e.g., an unqualified &amp;quot;getent&amp;quot; call). nscd is broken by design.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp; -- Howard Chu
&lt;br&gt;&amp;nbsp; CTO, Symas Corp. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.symas.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.symas.com&lt;/a&gt;&lt;br&gt;&amp;nbsp; Director, Highland Sun &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://highlandsun.com/hyc/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://highlandsun.com/hyc/&lt;/a&gt;&lt;br&gt;&amp;nbsp; Chief Architect, OpenLDAP &amp;nbsp;&lt;a href=&quot;http://www.openldap.org/project/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.openldap.org/project/&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/disconnected-nss_ldap-tp26035873p26157564.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26157216</id>
	<title>Re: disconnected nss_ldap</title>
	<published>2009-11-01T16:59:51Z</published>
	<updated>2009-11-01T16:59:51Z</updated>
	<author>
		<name>Brian J. Murrell</name>
	</author>
	<content type="html">On Sun, 2009-11-01 at 15:19 -0400, Ryan Lynch wrote: 
&lt;br&gt;&amp;gt; Not yet--i ran into some problems compiling w/ Howard's 'mega'
&lt;br&gt;&amp;gt; patch--there are some conflicts between ./configure options that I
&lt;br&gt;&amp;gt; don't understand. Howard hasn't gotten back to me, yet, so I'm
&lt;br&gt;&amp;gt; probably going to have to go trial-and-error on Monday.
&lt;br&gt;&lt;br&gt;I got it to build and install without much ado.
&lt;br&gt;&lt;br&gt;Unfortunately, it doesn't seem to do much better than we had before.
&lt;br&gt;&lt;br&gt;I am using an iptables rule (which sends back a TCP RST to existing and
&lt;br&gt;new connection attempts) at my ldap server to simulate disconnection.
&lt;br&gt;&lt;br&gt;For a short while after &amp;quot;disconnection&amp;quot; &amp;quot;id brian&amp;quot; returns a result, but
&lt;br&gt;as before, not very long after disconnection it starts failing.
&lt;br&gt;&lt;br&gt;What can I do to help narrow this down?
&lt;br&gt;&lt;br&gt;b.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (204 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26157216/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/disconnected-nss_ldap-tp26035873p26157216.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26154371</id>
	<title>Re: disconnected nss_ldap</title>
	<published>2009-11-01T11:19:51Z</published>
	<updated>2009-11-01T11:19:51Z</updated>
	<author>
		<name>Ryan B. Lynch</name>
	</author>
	<content type="html">Not yet--i ran into some problems compiling w/ Howard's 'mega'
&lt;br&gt;patch--there are some conflicts between ./configure options that I
&lt;br&gt;don't understand. Howard hasn't gotten back to me, yet, so I'm
&lt;br&gt;probably going to have to go trial-and-error on Monday.
&lt;br&gt;&lt;br&gt;-Ryan
&lt;br&gt;&lt;br&gt;&lt;br&gt;On 2009-11-01, Brian J. Murrell &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26154371&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;brian@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; On Tue, 2009-10-27 at 22:10 -0400, Ryan Lynch wrote:
&lt;br&gt;&amp;gt;&amp;gt; I'm sorry, I got busy with another project, and didn't get paste
&lt;br&gt;&amp;gt;&amp;gt; making the RPMs. I'll see about it, tomorrow.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Any progress there Ryan?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; b.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Ryan B. Lynch
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26154371&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ryan.b.lynch@...&lt;/a&gt;
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/disconnected-nss_ldap-tp26035873p26154371.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26139945</id>
	<title>Re: disconnected nss_ldap</title>
	<published>2009-10-30T21:05:20Z</published>
	<updated>2009-10-30T21:05:20Z</updated>
	<author>
		<name>Brian J. Murrell</name>
	</author>
	<content type="html">On Tue, 2009-10-27 at 22:10 -0400, Ryan Lynch wrote: 
&lt;br&gt;&amp;gt; I'm sorry, I got busy with another project, and didn't get paste
&lt;br&gt;&amp;gt; making the RPMs. I'll see about it, tomorrow.
&lt;br&gt;&lt;br&gt;Any progress there Ryan?
&lt;br&gt;&lt;br&gt;b.
&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (204 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26139945/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/disconnected-nss_ldap-tp26035873p26139945.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26088646</id>
	<title>Re: disconnected nss_ldap</title>
	<published>2009-10-27T19:10:23Z</published>
	<updated>2009-10-27T19:10:23Z</updated>
	<author>
		<name>Ryan B. Lynch</name>
	</author>
	<content type="html">I'm sorry, I got busy with another project, and didn't get paste
&lt;br&gt;making the RPMs. I'll see about it, tomorrow.
&lt;br&gt;&lt;br&gt;-Ryan
&lt;br&gt;&lt;br&gt;On 2009-10-27, Ryan Lynch &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26088646&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ryan.b.lynch@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Tue, Oct 27, 2009 at 11:27, Howard Wilkinson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26088646&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;howard@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; Ryan,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; please try this out - it applies and runs in the environment here but I
&lt;br&gt;&amp;gt;&amp;gt; would not call that an exhaustive test!
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; This is very much a hack - but without a complete write through the
&lt;br&gt;&amp;gt;&amp;gt; ldap-nss logic is too complex to do this any other way today.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I should have something back to you in a few hours.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -Ryan
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Ryan B. Lynch
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26088646&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ryan.b.lynch@...&lt;/a&gt;
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/disconnected-nss_ldap-tp26035873p26088646.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26080714</id>
	<title>Re: Re: Re: disconnected nss_ldap</title>
	<published>2009-10-27T08:38:46Z</published>
	<updated>2009-10-27T08:38:46Z</updated>
	<author>
		<name>Ryan B. Lynch</name>
	</author>
	<content type="html">On Tue, Oct 27, 2009 at 11:27, Howard Wilkinson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26080714&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;howard@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Ryan,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; please try this out - it applies and runs in the environment here but I would not call that an exhaustive test!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This is very much a hack - but without a complete write through the ldap-nss logic is too complex to do this any other way today.
&lt;br&gt;&lt;br&gt;I should have something back to you in a few hours.
&lt;br&gt;&lt;br&gt;-Ryan
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/disconnected-nss_ldap-tp26035873p26080714.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26080675</id>
	<title>RE: Re: Re: disconnected nss_ldap</title>
	<published>2009-10-27T08:27:00Z</published>
	<updated>2009-10-27T08:27:00Z</updated>
	<author>
		<name>Howard Wilkinson</name>
	</author>
	<content type="html">Ryan,
&lt;br&gt;&amp;nbsp;
&lt;br&gt;please try this out - it applies and runs in the environment here but I would not call that an exhaustive test!
&lt;br&gt;&amp;nbsp;
&lt;br&gt;This is very much a hack - but without a complete write through the ldap-nss logic is too complex to do this any other way today.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Howard.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;On Tue, Oct 27, 2009 at 10:35, Howard Wilkinson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26080675&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;howard@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; I am working on this now and hope to have something out today. The internals of nss_ldap are a bit of mess in this area, but I think I have a handle on it.
&lt;br&gt;&lt;br&gt;Fire when ready.
&lt;br&gt;&lt;br&gt;&amp;gt; This will have to go on the top of the mega patch as the original code is even worse in this area..... ;-(
&lt;br&gt;&lt;br&gt;That's good--I was in the process of rebuilding RPMs with your latest
&lt;br&gt;mega rev when I saw your original message, so I can save a little time
&lt;br&gt;testing both at once.
&lt;br&gt;&lt;br&gt;-Ryan
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt;diff -ruN nss_ldap-264-save/nss_ldap-264/ldap-nss.c nss_ldap-264/nss_ldap-264/ldap-nss.c
&lt;br&gt;--- nss_ldap-264-save/nss_ldap-264/ldap-nss.c	2009-10-26 11:05:50.659588000 +0000
&lt;br&gt;+++ nss_ldap-264/nss_ldap-264/ldap-nss.c	2009-10-27 15:19:42.053806000 +0000
&lt;br&gt;@@ -308,6 +308,11 @@
&lt;br&gt;&amp;nbsp;static NSS_STATUS do_map_error (int rc);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;/*
&lt;br&gt;+ * Map status to status and errno - handles out of buffer fudges
&lt;br&gt;+ */
&lt;br&gt;+static NSS_STATUS do_map_errno (NSS_STATUS status, int *errnop);
&lt;br&gt;+
&lt;br&gt;+/*
&lt;br&gt;&amp;nbsp; * support the sasl interaction
&lt;br&gt;&amp;nbsp; */
&lt;br&gt;&amp;nbsp;static int do_sasl_interact (LDAP * ld, unsigned flags, void *defaults, void *p);
&lt;br&gt;@@ -1665,7 +1670,7 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-void
&lt;br&gt;+static void
&lt;br&gt;&amp;nbsp;do_init_mechs (ldap_session_t *session)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp;int i;
&lt;br&gt;@@ -2523,7 +2528,7 @@
&lt;br&gt;&amp;nbsp;#define _APPEND_STRING(_buffer, _buflen, _s, _len) do { \
&lt;br&gt;&amp;nbsp;		if ((_buflen) &amp;lt; (size_t)((_len) + 1)) \
&lt;br&gt;&amp;nbsp;		{ \
&lt;br&gt;-			return NSS_TRYAGAIN; \
&lt;br&gt;+			return NSS_RETURN; \
&lt;br&gt;&amp;nbsp;		} \
&lt;br&gt;&amp;nbsp;		memcpy((_buffer), (_s), (_len)); \
&lt;br&gt;&amp;nbsp;		(_buffer)[(_len)] = '\0'; \
&lt;br&gt;@@ -2610,7 +2615,7 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;len = strlen (filter);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (buflen &amp;lt; len + 1 /* ')' */ )
&lt;br&gt;-	return NSS_TRYAGAIN;
&lt;br&gt;+	return NSS_RETURN;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;memcpy (bufptr, filter, len);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bufptr[len] = '\0';
&lt;br&gt;@@ -2619,7 +2624,7 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;if (buflen &amp;lt; 2)
&lt;br&gt;- &amp;nbsp; &amp;nbsp;return NSS_TRYAGAIN;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;return NSS_RETURN;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;*bufptr++ = ')';
&lt;br&gt;&amp;nbsp; &amp;nbsp;*bufptr++ = '\0';
&lt;br&gt;@@ -2705,7 +2710,7 @@
&lt;br&gt;&amp;nbsp;					 &amp;nbsp; &amp;nbsp; args-&amp;gt;la_arg1.la_triple.user,
&lt;br&gt;&amp;nbsp;					 &amp;nbsp; &amp;nbsp; args-&amp;gt;la_arg1.la_triple.domain,
&lt;br&gt;&amp;nbsp;					 &amp;nbsp; &amp;nbsp; filterBufP, filterSiz);
&lt;br&gt;-	 &amp;nbsp; &amp;nbsp; &amp;nbsp;if (stat == NSS_TRYAGAIN)
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp; &amp;nbsp;if (stat == NSS_RETURN)
&lt;br&gt;&amp;nbsp;		{
&lt;br&gt;&amp;nbsp;		 &amp;nbsp;filterBufP = *dynamicUserBuf = realloc (*dynamicUserBuf,
&lt;br&gt;&amp;nbsp;							 &amp;nbsp;2 * filterSiz);
&lt;br&gt;@@ -2714,7 +2719,7 @@
&lt;br&gt;&amp;nbsp;		 &amp;nbsp;filterSiz *= 2;
&lt;br&gt;&amp;nbsp;		}
&lt;br&gt;&amp;nbsp;	 &amp;nbsp; &amp;nbsp;}
&lt;br&gt;-	 &amp;nbsp;while (stat == NSS_TRYAGAIN);
&lt;br&gt;+	 &amp;nbsp;while (stat == NSS_RETURN);
&lt;br&gt;&amp;nbsp;	 &amp;nbsp;break;
&lt;br&gt;&amp;nbsp;#endif /* HAVE_NSSWITCH_H || HAVE_IRS_H */
&lt;br&gt;&amp;nbsp;	case LA_TYPE_STRING_LIST_OR:
&lt;br&gt;@@ -2724,7 +2729,7 @@
&lt;br&gt;&amp;nbsp;	 &amp;nbsp; &amp;nbsp; &amp;nbsp;stat = do_aggregate_filter (args-&amp;gt;la_arg1.la_string_list,
&lt;br&gt;&amp;nbsp;					 &amp;nbsp;args-&amp;gt;la_type,
&lt;br&gt;&amp;nbsp;					 &amp;nbsp;filterprot, filterBufP, filterSiz);
&lt;br&gt;-	 &amp;nbsp; &amp;nbsp; &amp;nbsp;if (stat == NSS_TRYAGAIN)
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp; &amp;nbsp;if (stat == NSS_RETURN)
&lt;br&gt;&amp;nbsp;		{
&lt;br&gt;&amp;nbsp;		 &amp;nbsp;filterBufP = *dynamicUserBuf = realloc (*dynamicUserBuf,
&lt;br&gt;&amp;nbsp;							 &amp;nbsp;2 * filterSiz);
&lt;br&gt;@@ -2733,7 +2738,7 @@
&lt;br&gt;&amp;nbsp;		 &amp;nbsp;filterSiz *= 2;
&lt;br&gt;&amp;nbsp;		}
&lt;br&gt;&amp;nbsp;	 &amp;nbsp; &amp;nbsp;}
&lt;br&gt;-	 &amp;nbsp;while (stat == NSS_TRYAGAIN);
&lt;br&gt;+	 &amp;nbsp;while (stat == NSS_RETURN);
&lt;br&gt;&amp;nbsp;	 &amp;nbsp;break;
&lt;br&gt;&amp;nbsp;	default:
&lt;br&gt;&amp;nbsp;	 &amp;nbsp;return NSS_UNAVAIL;
&lt;br&gt;@@ -2963,6 +2968,7 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp;int maxtries;
&lt;br&gt;&amp;nbsp; &amp;nbsp;int hard;
&lt;br&gt;&amp;nbsp; &amp;nbsp;int firstTime = 1;
&lt;br&gt;+ &amp;nbsp;int errnotmp = 0;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;debug (&amp;quot;==&amp;gt; do_with_reconnect&amp;quot;);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;@@ -3116,7 +3122,7 @@
&lt;br&gt;&amp;nbsp;	 &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;nss_ldap: could not %s %sconnect to LDAP server - %s&amp;quot;,
&lt;br&gt;&amp;nbsp;	 &amp;nbsp; &amp;nbsp; &amp;nbsp;hard ? &amp;quot;hard&amp;quot; : &amp;quot;soft&amp;quot;, tries ? &amp;quot;re&amp;quot; : &amp;quot;&amp;quot;,
&lt;br&gt;&amp;nbsp;	 &amp;nbsp; &amp;nbsp; &amp;nbsp;ldap_err2string (rc));
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp;stat = NSS_UNAVAIL;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;/* stat = NSS_UNAVAIL; */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;break;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;case NSS_SUCCESS:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (log != 0)
&lt;br&gt;@@ -3148,6 +3154,8 @@
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;debug (&amp;quot;&amp;lt;== do_with_reconnect returns %s(%d)&amp;quot;, __nss_ldap_status2string(stat), stat);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+ &amp;nbsp;stat = do_map_errno(stat, &amp;errnotmp);
&lt;br&gt;+
&lt;br&gt;&amp;nbsp; &amp;nbsp;return stat;
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;@@ -3273,10 +3281,10 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp;return rc;
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-static void
&lt;br&gt;+static NSS_STATUS
&lt;br&gt;&amp;nbsp;do_map_errno (NSS_STATUS status, int *errnop)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;- &amp;nbsp;if (status == NSS_TRYAGAIN)
&lt;br&gt;+ &amp;nbsp;if (status == NSS_RETURN)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp;#ifdef HAVE_NSSWITCH_H
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;errno = ERANGE;
&lt;br&gt;@@ -3284,11 +3292,17 @@
&lt;br&gt;&amp;nbsp;#else
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*errnop = errno = ERANGE;
&lt;br&gt;&amp;nbsp;#endif
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;status = NSS_TRYAGAIN;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ &amp;nbsp;else if (status == NSS_TRYAGAIN)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;{
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;*errnop = errno = EAGAIN;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp;else
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*errnop = 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ &amp;nbsp;return status;
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;/*
&lt;br&gt;@@ -3342,7 +3356,7 @@
&lt;br&gt;&amp;nbsp;			 &amp;nbsp;buffer, buflen);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* hold onto the state if we're out of memory XXX */
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp;ctx-&amp;gt;ec_state.ls_retry = (parseStat == NSS_TRYAGAIN &amp;&amp; buffer != NULL ? 1 : 0);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;ctx-&amp;gt;ec_state.ls_retry = (parseStat == NSS_RETURN &amp;&amp; buffer != NULL ? 1 : 0);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* free entry is we're moving on */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (ctx-&amp;gt;ec_state.ls_retry == 0 &amp;&amp;
&lt;br&gt;@@ -3356,7 +3370,7 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp;while (parseStat == NSS_NOTFOUND);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;- &amp;nbsp;do_map_errno (parseStat, errnop);
&lt;br&gt;+ &amp;nbsp;parseStat = do_map_errno (parseStat, errnop);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;debug (&amp;quot;&amp;lt;== do_parse&amp;quot;);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;@@ -3408,17 +3422,17 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * If we do not parse the entry because of a schema
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * violation, the parser should return NSS_NOTFOUND.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * We'll keep on trying subsequent entries until we
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; * find one which is parseable, or exhaust avialable
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; * find one which is parseable, or exhaust available
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * entries, whichever is first.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;parseStat = parser (e, &amp;ctx-&amp;gt;ec_state, result, buffer, buflen);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* hold onto the state if we're out of memory XXX */
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp;ctx-&amp;gt;ec_state.ls_retry = (parseStat == NSS_TRYAGAIN &amp;&amp; buffer != NULL ? 1 : 0);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;ctx-&amp;gt;ec_state.ls_retry = (parseStat == NSS_RETURN &amp;&amp; buffer != NULL ? 1 : 0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp;while (parseStat == NSS_NOTFOUND);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;- &amp;nbsp;do_map_errno (parseStat, errnop);
&lt;br&gt;+ &amp;nbsp;parseStat = do_map_errno (parseStat, errnop);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;debug (&amp;quot;&amp;lt;== do_parse_s&amp;quot;);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;@@ -4076,7 +4090,7 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp;if (bytesleft (buffer, buflen, char *) &amp;lt; (valcount + 1) * sizeof (char *))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ldap_value_free (vals);
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp;return NSS_TRYAGAIN;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;return NSS_RETURN;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;align (buffer, buflen, char *);
&lt;br&gt;@@ -4110,7 +4124,7 @@
&lt;br&gt;&amp;nbsp;	 &amp;nbsp;if (buflen &amp;lt; (size_t) (vallen + 1))
&lt;br&gt;&amp;nbsp;	 &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp;	 &amp;nbsp; &amp;nbsp; &amp;nbsp;ldap_value_free (vals);
&lt;br&gt;-	 &amp;nbsp; &amp;nbsp; &amp;nbsp;return NSS_TRYAGAIN;
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp; &amp;nbsp;return NSS_RETURN;
&lt;br&gt;&amp;nbsp;	 &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	 &amp;nbsp;/* copy this value into the next block of buffer space */
&lt;br&gt;@@ -4156,7 +4170,7 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;vallen = strlen (ovr);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (*buflen &amp;lt; (size_t) (vallen + 1))
&lt;br&gt;&amp;nbsp;	{
&lt;br&gt;-	 &amp;nbsp;return NSS_TRYAGAIN;
&lt;br&gt;+	 &amp;nbsp;return NSS_RETURN;
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*valptr = *buffer;
&lt;br&gt;@@ -4184,7 +4198,7 @@
&lt;br&gt;&amp;nbsp;	 &amp;nbsp;vallen = strlen (def);
&lt;br&gt;&amp;nbsp;	 &amp;nbsp;if (*buflen &amp;lt; (size_t) (vallen + 1))
&lt;br&gt;&amp;nbsp;	 &amp;nbsp; &amp;nbsp;{
&lt;br&gt;-	 &amp;nbsp; &amp;nbsp; &amp;nbsp;return NSS_TRYAGAIN;
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp; &amp;nbsp;return NSS_RETURN;
&lt;br&gt;&amp;nbsp;	 &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	 &amp;nbsp;*valptr = *buffer;
&lt;br&gt;@@ -4207,7 +4221,7 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp;if (*buflen &amp;lt; (size_t) (vallen + 1))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ldap_value_free (vals);
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp;return NSS_TRYAGAIN;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;return NSS_RETURN;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;*valptr = *buffer;
&lt;br&gt;@@ -4304,7 +4318,7 @@
&lt;br&gt;&amp;nbsp;	 &amp;nbsp;ldap_value_free (vals);
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;debug (&amp;quot;&amp;lt;== _nss_ldap_assign_userpassword&amp;quot;);
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp;return NSS_TRYAGAIN;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;return NSS_RETURN;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;*valptr = *buffer;
&lt;br&gt;@@ -4679,6 +4693,7 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;debug (&amp;quot;&amp;lt;== _nss_ldap_proxy_bind (empty password not permitted)&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* XXX overload */
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;do_map_errno(NSS_TRYAGAIN, &amp;rc);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return NSS_TRYAGAIN;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;@@ -4749,6 +4764,8 @@
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;debug (&amp;quot;&amp;lt;== _nss_ldap_proxy_bind&amp;quot;);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+ &amp;nbsp;stat = do_map_errno(stat, &amp;rc);
&lt;br&gt;+
&lt;br&gt;&amp;nbsp; &amp;nbsp;return stat;
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/disconnected-nss_ldap-tp26035873p26080675.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26080092</id>
	<title>Re: Re: Re: disconnected nss_ldap</title>
	<published>2009-10-27T07:59:14Z</published>
	<updated>2009-10-27T07:59:14Z</updated>
	<author>
		<name>Ryan B. Lynch</name>
	</author>
	<content type="html">On Tue, Oct 27, 2009 at 10:35, Howard Wilkinson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26080092&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;howard@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; I am working on this now and hope to have something out today. The internals of nss_ldap are a bit of mess in this area, but I think I have a handle on it.
&lt;br&gt;&lt;br&gt;Fire when ready.
&lt;br&gt;&lt;br&gt;&amp;gt; This will have to go on the top of the mega patch as the original code is even worse in this area..... ;-(
&lt;br&gt;&lt;br&gt;That's good--I was in the process of rebuilding RPMs with your latest
&lt;br&gt;mega rev when I saw your original message, so I can save a little time
&lt;br&gt;testing both at once.
&lt;br&gt;&lt;br&gt;-Ryan
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/disconnected-nss_ldap-tp26035873p26080092.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26079783</id>
	<title>RE: Re: Re: disconnected nss_ldap</title>
	<published>2009-10-27T07:35:31Z</published>
	<updated>2009-10-27T07:35:31Z</updated>
	<author>
		<name>Howard Wilkinson</name>
	</author>
	<content type="html">Hi Ryan,
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Howard,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; On Tue, Oct 27, 2009 at 08:24, Howard Wilkinson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26079783&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;howard@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt; If anybody who understands the nsswitch internals can confirm which is the correct response I will patch the nss_ldap library (I have half a patch already) and try this out.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I'm in a position to test patches for this, even if they're a bit
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rough--I have a couple of throwaway VMs specifically intended for
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this. Feel free to send anything you have, I'd love to see this issue
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; resolved, soon.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&lt;br&gt;I am working on this now and hope to have something out today. The internals of nss_ldap are a bit of mess in this area, but I think I have a handle on it.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Also, will your patch for this issue sit on top of your &amp;quot;mega&amp;quot; patch,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; or on the unpatched PADL tree?
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -Ryan
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;This will have to go on the top of the mega patch as the original code is even worse in this area..... ;-(
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Howard.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/disconnected-nss_ldap-tp26035873p26079783.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26079494</id>
	<title>Re: Re: Re: disconnected nss_ldap</title>
	<published>2009-10-27T07:21:28Z</published>
	<updated>2009-10-27T07:21:28Z</updated>
	<author>
		<name>Ryan B. Lynch</name>
	</author>
	<content type="html">Howard,
&lt;br&gt;&lt;br&gt;On Tue, Oct 27, 2009 at 08:24, Howard Wilkinson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26079494&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;howard@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; If anybody who understands the nsswitch internals can confirm which is the correct response I will patch the nss_ldap library (I have half a patch already) and try this out.
&lt;br&gt;&lt;br&gt;I'm in a position to test patches for this, even if they're a bit
&lt;br&gt;rough--I have a couple of throwaway VMs specifically intended for
&lt;br&gt;this. Feel free to send anything you have, I'd love to see this issue
&lt;br&gt;resolved, soon.
&lt;br&gt;&lt;br&gt;Also, will your patch for this issue sit on top of your &amp;quot;mega&amp;quot; patch,
&lt;br&gt;or on the unpatched PADL tree?
&lt;br&gt;&lt;br&gt;-Ryan
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/disconnected-nss_ldap-tp26035873p26079494.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26077606</id>
	<title>RE: Re: Re: disconnected nss_ldap</title>
	<published>2009-10-27T05:24:37Z</published>
	<updated>2009-10-27T05:24:37Z</updated>
	<author>
		<name>Howard Wilkinson</name>
	</author>
	<content type="html">Brian et al,
&lt;br&gt;&amp;nbsp;
&lt;br&gt;I think the problem with the nscd issue may be a bug in nss_ldap's interface with the nsswitch interface. 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;.......
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nscd really does seem like it would complete the solution if it didn't
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; suffer from redhat bug 2132.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Cheers,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b.
&lt;br&gt;&lt;br&gt;I have looked into the nss_ldap code and it responds with NSS_STATUS_UNAVAIL, errno = EPERM for the following cases.
&lt;br&gt;&lt;br&gt;LDAP_SERVER_DOWN, LDAP_TIMEOUT, LDAP_UNAVAILABLE, LDAP_BUSY, LDAP_CONNECT_ERROR, LDAP_LOCAL_ERROR, LDAP_INVALID_CREDENTIALS.
&lt;br&gt;&lt;br&gt;The last 2 are I suspect correct but the first 5 are really candidates for 'server has gone away'. I suspect, but can't quite decide whether I am right, that the code should respond with either NSS_STATUS_TRYAGAIN, errno != ERANGE, or NSS_STATUS_UNAVAIL, errno = EAGAIN for the cache to continue to be populated with the entry.
&lt;br&gt;&lt;br&gt;If anybody who understands the nsswitch internals can confirm which is the correct response I will patch the nss_ldap library (I have half a patch already) and try this out.
&lt;br&gt;&lt;br&gt;Howard.
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/disconnected-nss_ldap-tp26035873p26077606.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26063274</id>
	<title>Re: Re: Re: how disable shadow map</title>
	<published>2009-10-26T08:53:03Z</published>
	<updated>2009-10-26T08:53:03Z</updated>
	<author>
		<name>Brian J. Murrell</name>
	</author>
	<content type="html">On Mon, 2009-10-26 at 09:50 -0500, Douglas E. Engert wrote:
&lt;br&gt;&amp;gt; Well then set the userPassword attributes to &amp;quot;{crypt}NP&amp;quot;
&lt;br&gt;&amp;gt; as I described on 10/21. pam_unix will not complain,
&lt;br&gt;&lt;br&gt;I'm not so sure of this. &amp;nbsp;But as I posted to this thread a few days ago,
&lt;br&gt;the real solution is to remove the shadowAccount object class from
&lt;br&gt;records you don't want shadow information made available for.
&lt;br&gt;&lt;br&gt;b.
&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (204 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26063274/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/how-disable-shadow-map-tp25996411p26063274.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26062289</id>
	<title>Re: Re: Re: how disable shadow map</title>
	<published>2009-10-26T07:50:22Z</published>
	<updated>2009-10-26T07:50:22Z</updated>
	<author>
		<name>Douglas E. Engert</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;Brian J. Murrell wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Fri, 2009-10-23 at 20:16 -0700, Paul B. Henson wrote:
&lt;br&gt;&amp;gt;&amp;gt; Sorry, I wasn't paying attention to the beginning of this thread, so I
&lt;br&gt;&amp;gt;&amp;gt; don't recall what OS you're using. Linux variants of pam_unix support the
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;broken_shadow&amp;quot; option:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;broken_shadow
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ignore errors reading shadow information for users in the
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;account management module.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Which I think will do exactly what you want, if you're running Linux.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Indeed, it does and I tested that before posting. &amp;nbsp;But my distro
&lt;br&gt;&amp;gt; (Ubuntu) maintainer reports that not having shadow map entries when the
&lt;br&gt;&amp;gt; password is &amp;quot;x&amp;quot; is just broken (which given what I have read, I agree)
&lt;br&gt;&amp;gt; and I tend to think they will likely refuse to use such hacks and insist
&lt;br&gt;&amp;gt; that the breakage be fixed instead.
&lt;/div&gt;&lt;br&gt;Well then set the userPassword attributes to &amp;quot;{crypt}NP&amp;quot;
&lt;br&gt;as I described on 10/21. pam_unix will not complain,
&lt;br&gt;and since you are using pam_krb5 for authentication this works
&lt;br&gt;fine with our Ubuntu systems.
&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm starting to feel like I'm pissing up a rope with regard to the basic
&lt;br&gt;&amp;gt; bug here though.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; b.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;&amp;nbsp; Douglas E. Engert &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26062289&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DEEngert@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; Argonne National Laboratory
&lt;br&gt;&amp;nbsp; 9700 South Cass Avenue
&lt;br&gt;&amp;nbsp; Argonne, Illinois &amp;nbsp;60439
&lt;br&gt;&amp;nbsp; (630) 252-5444
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/how-disable-shadow-map-tp25996411p26062289.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26050520</id>
	<title>Re: Mega patch against nss_ldap 264</title>
	<published>2009-10-25T07:12:48Z</published>
	<updated>2009-10-25T07:12:48Z</updated>
	<author>
		<name>Howard Wilkinson</name>
	</author>
	<content type="html">I have revisited this code and posted some new patches to the bugzilla.
&lt;br&gt;This now includes more comprehensive recovery code when the connection
&lt;br&gt;to the server goes down.
&lt;br&gt;&lt;br&gt;I know of one outstanding issue with the group stuff, where recursion is
&lt;br&gt;used to expand nested groups the recovery code fails. I intend to remove
&lt;br&gt;the recursion and replace with list walking code to produce the
&lt;br&gt;transitive closure needed for this function.
&lt;br&gt;&lt;br&gt;Anybody who is feeling brave and would like to test this out then I need
&lt;br&gt;to know I have not broken any of:
&lt;br&gt;1. Plain text password binds
&lt;br&gt;2. Anonymous binds
&lt;br&gt;3. SSL/TLS binds
&lt;br&gt;4. Other LDAP backends - my major testing has been against Active
&lt;br&gt;Directory, so tests against the Fedora Directory Server (389DS) and
&lt;br&gt;OpenLDAP would be useful.
&lt;br&gt;&lt;br&gt;Furthermore, I have tested but not implemented in production the keytab
&lt;br&gt;based renewal code. So if someone can hammer this it would be great.
&lt;br&gt;&lt;br&gt;Howard.
&lt;br&gt;&lt;br&gt;P.S. I think the hard/soft features in the Bind code should now function
&lt;br&gt;as advertised - can somebody check this as well?
&lt;br&gt;&lt;br&gt;On Tue, 2008-12-09 at 22:13 +0000, Luke Howard wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Thanks Howard! I am a bit snowed under now but I really look forward 
&lt;br&gt;&amp;gt; to taking a look at this.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -- Luke
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On 10/12/2008, at 5:30 AM, Howard Wilkinson wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; I have just pushed a large patch against nss_Ldap 264 up to the 
&lt;br&gt;&amp;gt; &amp;gt; bugzilla.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; This is a structural alteration at the source code level to ldap-
&lt;br&gt;&amp;gt; &amp;gt; nss.c which is generally just changing how it reads. However, it 
&lt;br&gt;&amp;gt; &amp;gt; fixes some bugs in the kerberos pathways and also commons up code 
&lt;br&gt;&amp;gt; &amp;gt; that had multiple copies in the code source.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I would be very grateful if anybody could try it out and let me
&lt;br&gt;&amp;gt; know 
&lt;br&gt;&amp;gt; &amp;gt; what I have broken.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; My intention with this is to make the critical path through the
&lt;br&gt;&amp;gt; code 
&lt;br&gt;&amp;gt; &amp;gt; run the minimal code when a connection to the LDAP server exists, 
&lt;br&gt;&amp;gt; &amp;gt; make recovery on failure more resilient, and provide for multiple 
&lt;br&gt;&amp;gt; &amp;gt; SASL mechs without need to alter the ldap-nss code.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Comments, improvements and fault reports much appreciated.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I am hoping that Luke will push this out as the basis for the main 
&lt;br&gt;&amp;gt; &amp;gt; development downstream, so that I can add the extra features on the 
&lt;br&gt;&amp;gt; &amp;gt; kerberos side I am looking for.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Howard.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; www.padl.com | www.fghr.net
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;-- 
&lt;br&gt;Howard Wilkinson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26050520&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;howard@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Coherent Technology Limited
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/NSS-LDAP-f14177.html&quot; embed=&quot;fixTarget[14177]&quot; target=&quot;_top&quot; &gt;NSS LDAP&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Mega-patch-against-nss_ldap-264-tp20921966p26050520.html" />
</entry>

</feed>
