Changes

Jump to: navigation, search

stoney core: OpenLDAP ldapseach and replace

134 bytes added, 11:25, 14 December 2020
/* Search an replace - Replace the content of sstMailFrom attribute */
for dn in $children
do
echo cat <<EOF | sed 's/^ \{4\}//' | ldapmodify -x \ -H "# $ldap_server" \ -D "$ldap_bind_account" \ -w "$ldap_bind_password"   dn: ${dn}"echo "# changetype: modify"echo "# replace: ${ldap_attribute}"echo "# ${ldap_attribute}: ${ldap_attribute_new}EOF
done
</source>
3,368
edits