|Don't ask to ask, just ask|
Readable ldapsearch outputby brx (Pilgrim)
|on Apr 06, 2012 at 11:21 UTC||Need Help??|
*update* : simplification with xx_XX.UTF-8 "locale" (see below)
When you are using ldapsearch to find quickly some informations in LDAP directory, there are some problems.
For instance, with this command :
Just "pipe" the result in this Perl filter :
This way, the Lord of the Rings can see the entire block (LDAP entry) matched by the regex you want (a single lady, in this example).
Warning : the output is NOT LDIF-compatible, it's just 'text'.
update : depending of your context (locale with or without UTF-8), you can simplify the command-line, like this: