bash/ldap failures

Ralph Böhme slow at
Fri Mar 16 12:20:27 UTC 2018

Hi Aurélien,

On Fri, Mar 16, 2018 at 02:54:31PM +0100, Aurélien Aptel via samba-technical wrote:
> Rowland Penny via samba-technical <samba-technical at>
> writes:
> > The earlier output is echoed through grep and if the return code
> > isn't zero, a message is printed, 'failed doing volume command'.
> >
> > If there is an error here, it possibly isn't coming from smbclient. It
> > could be wrong data in $out, an 'echo' error or a 'grep'
> > error.
> >
> > What I am trying to say is, the test could fail for something that is
> > nothing to do with 'smbclient'.
> As I said in my previous email, the script expects the input to be
> copied to the output:
> The script sends "volume\nquit\n" as input to smbclient and expects this
> back:
>   Try "help" to get a list of possible commands.
>   smb: \> volume
>   Volume: |tmp| serial number 0xad80a8b3
>   smb: \> quit
> But the input isnt copied to the output, so it actually gets this back:
>   Try "help" to get a list of possible commands.
>   smb: \> Volume: |tmp| serial number 0xad80a8b3
>   smb: \> 
> The pattern "^Volume" matches only the first thing, not the second but
> the test is just looking for this Volume chain. The failure is
> incorrect.
> I have no idea why the input isnt copied on the output. I've tried
> running this on a different machine and it passes. It could be that the
> shell have different behaviours regarding eval/echo/backticks together.

while I haven't really read into your description, I just wanted to mention that
maybe this is another dashism? Remember, sn-devel runs dash...


Ralph Boehme, Samba Team
Samba Developer, SerNet GmbH
GPG Key Fingerprint:           FAE2 C608 8A24 2520 51C5
                               59E4 AA1E 9B71 2639 9E46

More information about the samba-technical mailing list