Feb 11th, 2012, 10:35 AM
"critical extension is unavailable" on bind
I am trying to bind a entry to ldap, and getting "critical extension is unavailable", error 12 in return.
By stepping through the code I have narrowed it down to the following. When sending the bind request, the LdapCtx has two values in reqCtls, com.sun.jndi.ldap.ManageReferralControl and javax.naming.ldap.PagedResultsControl.
If I remove the PagedResultsControl, values are binded.
When listing the content of the directory and doing modifications everything is fine.
Does anyone have any idea how I may prevent the PagedResultsControl from being used when binding?
Feb 11th, 2012, 02:24 PM
Before I try to bind, I loop through the directory in order to find the highest employee number. Since I use pageing in this operation, the LdapCtx get PagedResultsControl set. To get the paging to work, I needed to set it up such that the same connection is used every time.
So I ended up using two LdapTemplates.
Tags for this Thread