Fixed Typo in HELPERS.pm

master
thooge 4 years ago committed by GitHub
parent 480ab5a07b
commit 77959d700d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      lib/HELPERS.pm

@ -113,8 +113,8 @@ sub parse_dn {
($k, $v) = split(/=/);
next if(not defined($k));
# trim key and value
$k = s/^\s+|\s+$//g;
$v = s/^\s+|\s+$//g;
$k =~ s/^\s+|\s+$//g;
$v =~ s/^\s+|\s+$//g;
if($k =~ /ou/i) {
$tmp->{'OU'} or $tmp->{'OU'} = [];
push(@{$tmp->{'OU'}}, $v);