in reply to Re: strange LDAP bust
in thread strange LDAP bust

I am able to open the file without a problem. The search works for the first container, but fails for the rest. The same script worked fine on my other box. If I don't chomp the string, all the queries fail, but at least I see "test" printed

Replies are listed 'Best First'.
Re: Re: Re: strange LDAP bust
by blue_cowdawg (Monsignor) on Dec 22, 2003 at 18:56 UTC

        I am able to open the file without a problem.
    OK. (digging a little deeper...) What happens when you do something like:
      #!/usr/bin/perl -w $|++; use strict; use warnings; use diagnostics; open(STUFF,"< containers.txt") or die "containters.txt:$!"; my @slurp=<STUFF>; close STUFF: chomp @slurp; printf "%s\n",join(",",@slurp);
    Are you seeing all your data?

    Another (random) thought: Are you checking error codes from LDAP?


    Peter L. Berghold -- Unix Professional
    Peter at Berghold dot Net
       Dog trainer, dog agility exhibitor, brewer of fine Belgian style ales. Happiness is a warm, tired, contented dog curled up at your side and a good Belgian ale in your chalice.
      That prints all my containers successfully. This is so wierd!! And there is no LDAP error.

      I had a similar odd behavior on my original box, but after fiddling with chomp(pending on if I chomped $_ or chomped the variable I gave the value of $_) the script finally worked.
      I'm going to play around with it some more....