Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7854701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T20:09:09+00:00 2026-06-02T20:09:09+00:00

I am using Grails 2, Groovy 1.8.5, Grails Ldap plugin to perform lookups via

  • 0

I am using Grails 2, Groovy 1.8.5, Grails Ldap plugin to perform lookups via LDAP on Active Directory and I am getting javax.naming.PartialResultException: Unprocessed Continuation Reference(s); remaining name ‘/’. For authorization I use Spring LDAP which works fine with no problems.
I have looked around and most threads are talking about automatically following referrals which I use this flag for derefLinkFlag = true
I have even tried to pass this argument to JVM -Djava.naming.referral=follow

Has anyone come across this? Any suggestions are welcomed. Do you think it is something related to how AD is set up and if yes, what should I look for, I am new to AD.

I can avoid this exception because it happens my Active Directory to be Global Catalog, so I just connect to port 3268 and everything works fine. However, there is a caveat, not all attributes are added to Global Catalog, such as physicalDeliveryOfficeName. Which is also something that can be solved by replicating/including the attribute to GC schema, but it is something I do not wish to do for a number of reasons.

The code follows:
The config

ldap {
  directories {
   rootdir {
    url = "ldap://my.company.com:389"
    base = "DC=my,DC=company,DC=com"
    userDn = "cn=User Name,cn=Users,dc=my,dc=company,dc=com"
    password = "secret"
    searchControls {
    countLimit = 400
    timeLimit = 6000
    searchScope = "subtree"
    derefLinkFlag = true
    }
  }
}

schemas = [
   com.mycompany.ldap.User,
   com.mycompany.ldap.Group
]
}

The domain

@GldapoSchemaFilter("(objectclass=person)")
class User {
@GldapoNamingAttribute
String cn

String dn
String mail
String sn
String physicalDeliveryOfficeName
}

The Controller

 class UserController {

   def index() {
        redirect(action: "list")
   }

   def list(){
    List users = User.findAll()
    [userInstanceList: users, userInstanceTotal: users.size()]
   }
 }

The exception:

Unprocessed Continuation Reference(s). Stacktrace follows:
javax.naming.PartialResultException: Unprocessed Continuation Reference(s); remaining      name '/'
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2846)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2820)
at com.sun.jndi.ldap.LdapNamingEnumeration.getNextBatch(LdapNamingEnumeration.java:129)
at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreImpl(LdapNamingEnumeration.java:198)
at com.sun.jndi.ldap.LdapNamingEnumeration.hasMore(LdapNamingEnumeration.java:171)
at gldapo.GldapoDirectory.nonPagedSearch(GldapoDirectory.groovy:162)
at gldapo.GldapoDirectory.search(GldapoDirectory.groovy:144)
at gldapo.schema.GldapoSchemaClassInjecto$__clinit__closure35.doCall(GldapoSchemaClassInjecto.groovy:374)
at gldapo.schema.GldapoSchemaClassInjecto$__clinit__closure38.doCall(GldapoSchemaClassInjecto.groovy:390)
at uk.co.mycomp.myapp.ldap.UserController.list(UserController.groovy:15)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

Many thanks,
G

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T20:09:12+00:00Added an answer on June 2, 2026 at 8:09 pm

    The solution is to include the following line to your ldap settings in Config.groovy

    ignorePartialResultExcepton = true
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the current version of SpringSource Tool Suite with the Groovy/Grails plugin
I'm using Grails Spring Security Core plugin and I need to perform a few
I'm using Grails 1.3.7 and the db-migration plug-in. I have generated a chagelog.groovy-file containing
From the book Groovy and Grails recipes I'm using the following code snippet: String
Hi I'm using grails navigation plugin and when it generates menus it put the
I am using groovy/grails, and I have a ResultList in my service which I
We have developed a Web Application using grails, groovy and oracle as database with
I'm using: Grails xfire plugin and I created the service mobile containing the following
Using Grails 2.0.x and the spring security plugin with the default @Secured annotations how
I'm using Grails 1.3.7 + MySQL 5.5 + Liquibase through the database-migration plugin 0.2.1.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.