Hello otrs,

  just to improve debug, i suggest the following changes in
  Kernel/System/Auth/LDAP.pm

  the goal is just to log that the bind is successfull.

    # ldap connect and bind (maybe with SearchUserDN and SearchUserPw)
    my $LDAP = Net::LDAP->new($Self->{Host}, %{$Self->{Params}}) or die "$@";
    if (!$LDAP->bind(dn => $Self->{SearchUserDN}, password => 
$Self->{SearchUserPw})) {
        $Self->{LogObject}->Log(
          Priority => 'error',
          Message => "First bind failed!",
        );
        return;
    }
        elsif($Self->{Debug} > 0){
                $Self->{LogObject}->Log(
          Priority => 'notice',
          Message => "Net:LDAP Successfully bind to the ldap server",
        );
        }
    # build filter

    

-- 
Best regards,
 Mathieu                          mailto:[EMAIL PROTECTED]

_______________________________________________
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
Support oder Consulting für Ihr OTRS System?
=> http://www.otrs.de/

Reply via email to