Changes

Jump to: navigation, search

stoney core: OpenLDAP ldapseach and replace

33 bytes removed, 12:20, 14 December 2020
/* Search an replace - Replace a section (part) of an attribute - Step by step */
-D "$ldap_bind_account" \
-w "$ldap_bind_password" \
"(${ldap_attribute}=*${ldap_attribute_old}*)" \ | awk '{ if (/^ /) { sub(/^ /, ""); } else printf "\n"; printf "%s", $0 }' \ | awk '/^dn: / { print $2 }'
</source>
3,368
edits