[Date Prev][Date Next]
Re: Shell backend: read_and_send_results
On Fri, Apr 14, 2006 at 12:57:08PM +0400, Dmitriy Kirhlarov wrote:
> >Timur Izhbulatov writes:
> >> I'm running openldap-2.3.20 from FreeBSD 6.1-prerelease ports. The
> >> slapd server is configured to run my backend shell script. But the
> >> server fails to parse my output.
> >> (...)
> >> The slapd log looks like this:
> >> (...)
> >> Apr 13 13:53:17 fbsd slapd: shell search reading line (RESULT
> >> )
> >It works with OpenLDAP HEAD, and the code has not been changed
> Very strange.
> Are you test it?
> >However OpenLDAP outputs
> >shell search reading line (RESULT
> >so it looks like the FreeBSD folks have fixed that with a patch which
> >replaces the newline with space. If they did that naively, they also
> >concatenate the lines with spaces instead of newlines between them and
> >feed that to slapd's entry parser. That's not likely to work...
> In freebsd ports no patch for this.
> I test it issue today on linux RHEL3.
> openldap 2.3.11
We find problem. Return code must be LAST string in backend output and
this string must be without \n on the end.
OILspace, 26 Leninskaya sloboda, bld. 2, 2nd floor, 115280 Moscow, Russia
P:+7 495 105 7247 ext.203 F:+7 495 105 7246 E:DmitriyKirhlarov@oilspace.com
OILspace - The resource enriched - www.oilspace.com