[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: LDap Search query returning null value

Check that resource limits are disabled for your authenticating user (or globally), and/or your ldap library handles connection timeout, if the LDAP server drops your connection.

On 02/11/2009, at 7:09 PM, Vinay Jain <jainvinayk@gmail.com> wrote:


I m using following piece of code for fetching the subscriber
information from the base of about 85 million.
After deployment it is returning proper response from LDap for some
time. but as hit increases it is returning null value for the same
search. And after redeploying the project it again starts working
fine. Any help in this regards will be appreciated. Thanks in

  public Subscriber findSubscriberByMdn(String mdn) {
     logger.info("Entered method findSubscriberByMdn with mdn "+mdn);
     Subscriber subscriber=null;
     AndFilter filter = new AndFilter();
filter.and(new EqualsFilter("objectclass", subscriberObjectClass));
     filter.and(new EqualsFilter("mdn", mdn));
     List list=ldapTemplate.search(
        new SubscriberAttributeMapper() );
     if(list!=null && !list.isEmpty()){
     logger.info("The subscriber found is "+subscriber);
     return subscriber;

Vinay Jain