Changes

Jump to: navigation, search

stoney core: OpenLDAP ldapseach and replace

67 bytes added, 13:02, 14 December 2020
/* Search an replace - Replace a section (part) of an attribute - Step by step */
Finally, we need to loop over all the distinguished names and replace the original (old) content to the attribute with the new content:
<source lang='bash'>
for while IFS= read -r line in $result; do if [[ "$line" =~ ^dn.* ]]; then echo "# $line" fidone<<< "$result"
</source>
3,368
edits