Run the reload-index tool with the --index rdn
and --index uid options.
$ bin/reload-index --task --bindPassword password \
--baseDN "dc=example,dc=com" --index rdn --index uid --background