Hummm, judging from the error message and the code at those lines, I'd say one (or more) of the configured LDAP contexts is possible misstyped.
Saludos.
Iñaki.
Enrolment
ldap enrolling error
This discussion has been locked so you can no longer reply to it.