The workings of the rewrite library are described in the REWRITING section of the slapd-meta(5) manual page.