With a little side of applesauce...

Monday, November 17, 2008

openLDAP - BASH function causing screen window to crash on Cygwin

The following BASH function was crashing my screen window:

function ldapsearch() { /usr/local/bin/ldapsearch -D cn=admin,dc=example,dc=com -W -b 'dc=example,dc=com' ${1}; }

This was on Cygwin with openLDAP 2.4.12 and GNU screen 4.00.03. The workaround was to change the function name to something besides ldapsearch:

function lsearch() { /usr/local/bin/ldapsearch -D cn=admin,dc=example,dc=com -W -b 'dc=example,dc=com' ${1}; }

No comments: