my $mesg = $Ldap->search
(
- base => get_config ('base_dn'),
+ base => 'ou=Group,' . get_config ('base_dn'),
filter => "(&(objectClass=groupOfNames)(cn=$name))"
);
my $mesg = $Ldap->search
(
- base => get_config ('base_dn'),
+ base => 'ou=Group,' . get_config ('base_dn'),
filter => "(&(objectClass=groupOfNames)(member=$dn))"
);
my $desc = shift;
my @members = @_;
my $dn = _cn_to_dn ($name);
- my ($ou) = get_config ('base_dn') =~ m/\bou\s*=\s*([^,]+)/i;
+ my $ou = 'Group';
my $entry = Net::LDAP::Entry->new ();
my $mesg = $Ldap->search
(
- base => get_config ('base_dn'),
+ base => 'ou=Group,' . get_config ('base_dn'),
filter => "(objectClass=groupOfNames)"
);
my $cn = shift;
my $base_dn = get_config ('base_dn') or die;
- return ('cn=' . $cn . ',' . $base_dn);
+ return ('cn=' . $cn . ',ou=Group,' . $base_dn);
}
sub _update_members
return (undef);
}
- $dn = "cn=$sn $gn," . get_config ('base_dn');
- ($ou) = get_config ('base_dn') =~ m/\bou\s*=\s*([^,]+)/i;
+ $ou = 'Person';
+ $dn = "cn=$sn $gn,ou=$ou," . get_config ('base_dn');
$entry->add (cn => "$sn $gn", ou => $ou);
$entry->dn ($dn);
$mesg = $Ldap->search
(
- base => get_config ('base_dn'),
+ base => 'ou=Person,' . get_config ('base_dn'),
filter => $filter
);
my $mesg = $Ldap->search
(
- base => get_config ('base_dn'),
+ base => 'ou=Person,' . get_config ('base_dn'),
filter => "(cn=$search)"
);
my $sn = $obj->{'sn'};
my $gn = $obj->{'givenName'};
my $cn = "$sn $gn";
- my $dn = "cn=$cn," . get_config ('base_dn');
+ my $dn = "cn=$cn,ou=Person," . get_config ('base_dn');
$obj->{'cn'} = $cn;