in reply to Searching Ldap by user id or nisNetgroupTriple

This is just a wild guess - but perhaps
chomp $uid;
prior to using it for the ldap call may help.

Please try it, and , for the benefit of others (and the opportunity to earn even more XP), report back whether or not it works.

        What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against?
              -Larry Wall, 1992

Replies are listed 'Best First'.
Re^2: Searching Ldap by user id or nisNetgroupTriple
by Sabiha (Initiate) on Feb 20, 2014 at 08:08 UTC
    Hi,chomp $uid is not working either.
      What was the value of $uid before and after chomp? DDumper it
      dd( $uid ); ... sub dd { use Data::Dumper; print Data::Dumper->new([@_])->Sortkeys(1) ->Indent(1)->Useqq(1)->Dump . "\n"; }