Changes

stoney core: OpenLDAP ldapseach and replace

30 bytes removed, 13:16, 14 December 2020
/* Search an replace - Replace a section (part) of an attribute - Step by step */
# Check, if the line starts with the ldap attribute of which we want to replace a part of the content
if [[ "$line" =~ ^${ldap_attribute}.* ]]; then
echo "# Before: $line" line=${line//stepping stone GmbH${ldap_attribute_old}/stepping stone AG${ldap_attribute_new}} # Replace all matches of pattern ${ldap_attribute_old} with string. website=${website////\\/ldap_attribute_new}.
echo "# After: $line"
fi
SLB, editor, reviewer
3,368
edits