https://bugs.openldap.org/show_bug.cgi?id=9803
--- Comment #3 from Howard Chu hyc@openldap.org --- Since you're able to reproduce it, please provide the exact sequence of API calls used, along with their parameters.
Note that this is likely a WONTFIX, as getting a LOCAL_ERROR means you've misused something in the API.