[Samba] ldbsearch and long lines...

Rowland penny rpenny at samba.org
Mon Jan 27 16:32:41 UTC 2020


On 27/01/2020 16:23, Marco Gaiarin via samba wrote:
> I've noted that 'ldbsearch' truncate long lines in output, as is usual
> in ldap.
>
> For now i've solved with:
>
> 	sed -zre 's/\n //g'
>
> but... there's a bright/better solution?
>
>
> Thanks.
>
I take it you get lines like this:

objectCategory: 
CN=Person,CN=Schema,CN=Configuration,DC=samdom,DC=example,DC=c
  om

And you want them like this:

objectCategory: 
CN=Person,CN=Schema,CN=Configuration,DC=samdom,DC=example,DC=com

Add '--show-binary' after 'ldbsearch'

Rowland





More information about the samba mailing list