Changes

Jump to: navigation, search

stoney core: OpenLDAP ldapseach and replace

2 bytes removed, 12:21, 14 December 2020
/* Search an replace - Replace a section (part) of an attribute - Step by step */
</source>
We need to create an array of the distinguished namesthe complete result:
<source lang='bash'>
childrenredult=$(ldapsearch -LLL -x -s children \
-H "$ldap_server" \
-b "$ldap_base" \
</source>
Finally, we need ti to loop over all the distinguished names and replace the original (old) content to the attribute with the new content:
<source lang='bash'>
for dn in $children
3,368
edits