MessageGordon,

    Thank you VERY VERY Much this was my issue :)

Jason Riedel

  ----- Original Message ----- 
  From: Gordon Jenkins 
  To: 'Jason Riedel' 
  Sent: Tuesday, September 16, 2003 6:02 PM
  Subject: RE: Issues returning data on anything other then the search query sent!


  Your string is too full in the first four queries rather than not full enough. That 
is, you're passing the newline in the search string. Try chomping each of your 
macaddress lines:

  sub passer {
      my $count=0;
      foreach my $mac (@macs) {
          ## Formatting the Mac for LDAP ##
                  chomp $mac;
          $mac =~ s/\.//g;
          .
          .
    -----Original Message-----
    From: Jason Riedel [mailto:[EMAIL PROTECTED] 
    Sent: Tuesday, September 16, 2003 7:30 pm
    To: [EMAIL PROTECTED]
    Subject: Issues returning data on anything other then the search query sent!


    Hello,    

    I am new to Net::LDAP and this list, although I don't believe my subscription to 
the list has gone through yet so please CC any responses to [EMAIL PROTECTED]

    That being said I have an issue that has been plauging me for quite some time, a 
while back I posted to perlmonks.org, but came up empty handed. I gave up for that 
time, but now I am back and trying to figure out why exactly I can return data only 
for the last query I send my searchobject. Basically for the data I parse and then 
send out of cablemodems.txt I want this script to go through each mac and send it to 
LDAP and return attributes. For some reason only the last mac I send no matter what 
mac it is will return any data. I am attaching my code for this issue as well as a log 
of what the debug outputs. Please also notice what I believe to be the problem. The 
string being sent under APPLICATION in the debug is not full in the first 4 query's 
like it is on the last one. They are returning APPLICATION 3 instead of 4 & o=cableone 
instead of the full string with cn=mac, ou=cmdevice, o =cableone, I just dont know why 
its doing this !

    Psuedo txt file cablemodems.txt:
    000b.06f2.cfde
    0008.0e36.c066
    0090.833c.fba4
    0090.8341.5055
    0090.833c.9da5

    EOF

    Perl Monks Thread:
    http://www.perlmonks.org/index.pl?node_id=269796

    The Debug and Code are attached. Please help and make sure you CC my email 
address. I am running this on ActivePerl 5.8 build 806.

    Thanks,
    Jason Riedel

Reply via email to