h1. Helpers h2. Ltool h3. basedn() Returns the basedn specified in the [[ldap config]] h3. escape($str,$all = FALSE) Escapes LDAP filter strings according to "RFC2254":http://www.faqs.org/rfcs/rfc2254.html By default it does not escape the '*' character to keep wildcard search support. Arguments: # _String_ *$str*: The string to escape # _Boolean_ *$all* (false): Set this to true to also escape the wildcard character '*' Examples:
echo Ltool:: escape('(attribute=\abc*)');
// (attribute=\5cabc*)

echo Ltool:: escape('(attribute=\abc*)',TRUE);
// (attribute=\5cabc\2A)