Problem with LDAP (Get whole user DN)

I am trying to enable LDAP authentication. I have verified that LDAP.pm is able to connect to my LDAP server, bind, and get $Result back. The problem occurs in this piece of code: foreach my $Entry ($Result->all_entries) { $UserDN = $Entry->dn(); $Self->{LogObject}->Log( Priority => 'notice', Message => "found UserDN $UserDN", ); } It appears that it is not being evaluated, but I do not know why. You can see that I put a LogObject in there, but when I check my log file, there is no entry - not even a "found UserDN ". Obviously this block is dependant on $Result: my $Filter = "$Self->{UID}=$Param{User}"; my $Result = $LDAP->search ( base => $Self->{BaseDN}, filter => $Filter, ); When I do a LogObject that print $Result to the log, I get the following in the log: Net::LDAP::Search=HASH(0x237c214) So, I know that the LDAP query is working right up to the foreach loop. Any idea why the loop itself is not returning any result (or even appearing to be evaluated)? Thanks, Tyler Hepworth
participants (1)
-
Tyler Hepworth