Also my monitoring script does that: https://www.stroeder.com/pylib/slapd_checkmk.py
How many entries do you have in your DB?