Sun Java System Directory Server Enterprise Edition 6.2 Developer's Guide

Is the User the Directory Manager?

Answer this question with slapi_dn_isroot(). The bind for the directory superuser, however, as for anonymous users, is handled as a special case. For such users, the server front end handles the bind before calling preoperation bind plug-ins.