# User
$edn = "uid=example, ".$dn;
@attrs = ( "cn", "Example user",
+ "sn", "Example user",
"uid", "example",
"uidNumber", 9999,
"gidNumber", 9999,
"loginShell", "/bin/sh",
"homeDirectory", "/home/example",
- "objectClass", [ "posixAccount" ],
+ "objectClass", [ "posixAccount", "person" ],
"userPassword", "*LK*" );
if ($in{'example'} == 2) {
# With mail
{
local ($a, $p) = @_;
local @v = ( 'to' );
-if ($p->{'what'} =~ /^\S+$/) {
- push(@v, $p->{'what'});
- }
-else {
- push(@v, "\"$p->{'what'}\"");
- }
+push(@v, $p->{'what'});
if ($p->{'filter'}) {
push(@v, "filter=$p->{'filter'}");
}
}
foreach my $b (@{$p->{'by'}}) {
push(@v, "by");
- if ($b->{'who'} =~ /^\S+$/) {
- push(@v, $b->{'who'});
- }
- else {
- push(@v, "\"$b->{'who'}\"");
- }
+ push(@v, $b->{'who'});
push(@v, $b->{'access'});
push(@v, @{$b->{'control'}});
}