Univention Bugzilla – Bug 48683
append -o ldif-wrap=no in univention-ldapsearch
Last modified: 2019-03-20 12:29:27 CET
Imho this would be really handy. Would replace a lot of bash aliases on test and customer systems. +++ This bug was initially created as a clone of Bug #41677 +++ It would be very nice if univention-ldapsearch would also append the arguments "-LLLo ldif-wrap=no" to ldapsearch.
*** Bug 41677 has been marked as a duplicate of this bug. ***
Arvid suggested to also add: -E pr=1000/noprompt
(In reply to Florian Best from comment #2) > Arvid suggested to also add: -E pr=1000/noprompt This would be an API change, we cannot do this I think. Just adjusting univetion-ldapsearch by appending the options would work and wouldn't break existing aliases. univention-ldapsearch -LLLo ldif-wrap=no -LLLo ldif-wrap=no
Patch has been applied. "-E pr=1000/noprompt" has been left out because giving it twice yields errors. I think there is no need for our python script "| ldapsearch-wrapper" anymore, which could increase performance. univention-config-registry (14.0.0-2) 97d97d90ffed | Bug #48683: Add -LLLo ldif-wrap=no to univention-ldapsearch univention-config-registry.yaml 97d97d90ffed | Bug #48683: Add -LLLo ldif-wrap=no to univention-ldapsearch
Verified: * Code * Function * Backwards-Compatibility: I can still do univention-ldapsearch -o ldif-wrap=80 I don't know if we really want -LLL, though. I cannot disable that once it's passed by default. So I cannot see any longer: ========================================== # search result search: 3 result: 0 Success # numResponses: 380 # numEntries: 379 ==========================================
Okay, if you want to see the number of entries, I will revert the -LLL and just keep the -o ldif-wrap=no. Therefore we cannot remove "| ldapsearch-wrapper". univention-config-registry (14.0.0-3) c5dca007f8b7 | Bug #48683: univention-ldapsearch makes -o ldif-wrap=no by default now
Ok. > Therefore we cannot remove "| ldapsearch-wrapper". As discussed, ldapsearch-wrapper doesn't do anything with comments, so we may get rid of it if we want to. But I would keep it, because it's useful for univention-s4search.
<http://errata.software-univention.de/ucs/4.4/6.html>