diff options
author | Guilhem Moulin <guilhem.moulin@fripost.org> | 2012-04-18 03:23:44 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem.moulin@fripost.org> | 2012-04-18 03:23:44 +0200 |
commit | c7cc448801f8b6f10cdd0d86568180687173f03e (patch) | |
tree | 62e9d79300f53d85681d653b043f9401d480432d /lib/Fripost/Schema/Search.pm | |
parent | bba3f61c1403d09ad2d38a0fab153f87877a1722 (diff) |
wibble
Diffstat (limited to 'lib/Fripost/Schema/Search.pm')
-rw-r--r-- | lib/Fripost/Schema/Search.pm | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/Fripost/Schema/Search.pm b/lib/Fripost/Schema/Search.pm index 30d92d6..7c0ece6 100644 --- a/lib/Fripost/Schema/Search.pm +++ b/lib/Fripost/Schema/Search.pm @@ -51,11 +51,8 @@ sub _domainEntry { my $entry = shift; my %domain; &_get_values( $entry, \%domain, 'domain', 'dc'); - &_get_values( $entry, \%domain, 'isActive'); - my $parent = &_get_dn($entry)->[1]; - unless ($parent eq 'ou=domains') { - $domain{owner} = (split /=/, $parent, 2)[1]; - } + map { &_get_values($entry, \%domain, $_) } + qw /isActive owner/; return \%domain; } |