diff options
| author | fukachan <fukachan> | 2003-02-01 05:27:51 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2003-02-01 05:27:51 +0000 |
| commit | e43d869538b0c6e4c2e844321ff33fac32c7b751 (patch) | |
| tree | 9ec96184aef253ad5412b53b66402e1ab6a204f7 /fml/lib/FML/Command/UserControl.pm | |
| parent | fe2c36d41ad887eb8522aca7939d4b0bf3356fa3 (diff) | |
| download | fml8-e43d869538b0c6e4c2e844321ff33fac32c7b751.tar.gz fml8-e43d869538b0c6e4c2e844321ff33fac32c7b751.tar.bz2 fml8-e43d869538b0c6e4c2e844321ff33fac32c7b751.zip | |
try exact matching just before changing user.
Diffstat (limited to 'fml/lib/FML/Command/UserControl.pm')
| -rw-r--r-- | fml/lib/FML/Command/UserControl.pm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/fml/lib/FML/Command/UserControl.pm b/fml/lib/FML/Command/UserControl.pm index 8f421707..d9b15199 100644 --- a/fml/lib/FML/Command/UserControl.pm +++ b/fml/lib/FML/Command/UserControl.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: UserControl.pm,v 1.21 2003/01/07 11:42:23 fukachan Exp $ +# $FML: UserControl.pm,v 1.22 2003/01/09 10:41:14 fukachan Exp $ # package FML::Command::UserControl; @@ -75,6 +75,10 @@ sub useradd $_map =~ s/file://; my $cred = new FML::Credential $curproc; + + # exatct match as could as possible. + $cred->set_compare_level( 100 ); + unless ($cred->has_address_in_map($map, $config, $address)) { $msg_args->{ _arg_map } = $curproc->which_map_nl($map); @@ -134,6 +138,10 @@ sub userdel $_map =~ s/file://; my $cred = new FML::Credential $curproc; + + # exatct match as could as possible. + $cred->set_compare_level( 100 ); + if ($cred->has_address_in_map($map, $config, $address)) { $msg_args->{ _arg_map } = $curproc->which_map_nl($map); |
