Bug 563956 - autofs should support paged results from ldap server
Summary: autofs should support paged results from ldap server
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: autofs
Version: 5.4
Hardware: All
OS: Linux
urgent
medium
Target Milestone: rc
: ---
Assignee: Ian Kent
QA Contact: Jian Li
URL:
Whiteboard:
Depends On:
Blocks: 691311 704927
TreeView+ depends on / blocked
 
Reported: 2010-02-11 16:23 UTC by Sachin Prabhu
Modified: 2018-11-14 17:47 UTC (History)
12 users (show)

Fixed In Version: autofs-5.0.1-0.rc2.150.el5
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 704927 (view as bug list)
Environment:
Last Closed: 2011-07-21 08:38:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch - add ldap paged query (16.74 KB, patch)
2010-07-08 03:26 UTC, Ian Kent
no flags Details | Diff
Patch - ldap paged query configure fix (10.95 KB, patch)
2010-07-08 03:28 UTC, Ian Kent
no flags Details | Diff
Patch - add ldap paged query (updated) (16.75 KB, patch)
2010-10-15 01:07 UTC, Ian Kent
no flags Details | Diff
Patch - auto adjust ldap page size (3.19 KB, patch)
2010-10-15 01:08 UTC, Ian Kent
no flags Details | Diff
Patch - fix paged ldap map read (1.29 KB, patch)
2011-04-04 11:14 UTC, Ian Kent
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1079 0 normal SHIPPED_LIVE autofs bug fix and enhancement update 2011-07-21 08:37:25 UTC

Description Sachin Prabhu 2010-02-11 16:23:36 UTC
User has a Windows AD server which is used to serve autofs maps to the automount daemon. On a default configuration, the Windows AD server splits the results into multiple pages with each page containing 1000 results. This is not supported by automount daemon. 

In such cases where the results are returned in multiple pages, the automount daemon seg-faults with the message

Jan 28 15:31:24 server1 kernel: automount[23538]: segfault at 0000000000000018 rip 0000002a9687e2b7 rsp 0000007fbfffc680 error 4

The user has been able to work around this problem by making changes to the Windows AD server to increase the limit of results which can be sent in one time to 1200. 

The following patch upstream appears to fix this problem. 
http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-5.0.2-ldap-page-control.patch
We haven't tested this patch in the user environment yet.

Comment 2 Ian Kent 2010-07-08 03:26:28 UTC
Created attachment 430232 [details]
Patch - add ldap paged query

Comment 3 Ian Kent 2010-07-08 03:28:24 UTC
Created attachment 430233 [details]
Patch - ldap paged query configure fix

Comment 4 Ian Kent 2010-07-08 03:32:23 UTC
Apologies, I actually did the back port some time ago but
must have been side tracked and didn't get to build a test
package. In any case there was a mistake in the Conflicts
tag which has been fixed (this revision we requires
cyrus-sasl-lib >= 2.1.22-5.el5_4.3).

A build with the above patch is available at:
http://people.redhat.com/~ikent/autofs-5.0.1-0.rc2.142.bz563956.2.el5

Please test this and report the result.

Comment 8 RHEL Program Management 2010-08-09 18:28:40 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 9 RHEL Program Management 2010-08-10 13:37:20 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 13 yanfu,wang 2010-09-29 08:56:55 UTC
if it will be verified in the user environment?

Comment 20 Ian Kent 2010-10-15 01:07:29 UTC
Created attachment 453607 [details]
Patch - add ldap paged query (updated)

Comment 21 Ian Kent 2010-10-15 01:08:45 UTC
Created attachment 453608 [details]
Patch - auto adjust ldap page size

Comment 32 Ian Kent 2011-04-04 11:14:46 UTC
Created attachment 489738 [details]
Patch - fix paged ldap map read

Comment 34 Jian Li 2011-05-05 07:07:37 UTC
This bug is verified by autotest(https://beaker.engineering.redhat.com/jobs/81494), which uses testcase(/CoreOS/autofs/bugzillas/bz563956) and distro(RHEL5.7-Server-20110504.0.n).

Comment 35 errata-xmlrpc 2011-07-21 08:38:46 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-1079.html

Comment 36 errata-xmlrpc 2011-07-21 12:32:51 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-1079.html


Note You need to log in before you can comment on or make changes to this bug.