/usr/bin/ldapsearch -h #{internal_it_AD_ipaddress} -p 389 -D
“cn=LDAP n xxxxxxxxx” -x -b “CN=DL LDAP xxxxxxxx” -s sub
“(objectClass=*)” -w ‘#{internal_it_AD_password}’ –LLL
when it shows output but breaks the lines ( long lines)
symptoms are :
http://www.novell.com/communities/node/12117/output-large-attribute-values-ldap-search-single-line
there is a solution like this by using perl :
perl -p00e ‘s/\r?\n //g’
/usr/bin/ldapsearch -h #{internal_it_AD_ipaddress} -p 389 -D
“cn=LDAP n xxxxxxxxx” -x -b “CN=DL LDAP xxxxxxxx” -s sub
“(objectClass=*)” -w ‘#{internal_it_AD_password}’ –LLL | perl -p00e
‘s/\r?\n //g’
Just wanted to know is there any equivalent in ruby (ruby one liner )
??
Thanks