Home
Random
Watchlist
Uploads
Settings
Log in
About stoney cloud
Disclaimers
Changes
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>
Michael
SLB,
editor
,
reviewer
3,368
edits