Results 1 to 2 of 2

Thread: "critical extension is unavailable" on bind

Hybrid View

  1. #1
    Join Date
    Dec 2007
    Posts
    14

    Default "critical extension is unavailable" on bind

    Hello!
    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?

  2. #2
    Join Date
    Dec 2007
    Posts
    14

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •