]> eyrie.org Git - kerberos/heimdal-kadm5.git/commitdiff
Fixed bug with disable and enable leading to mask problems
authorJon Robertson <jonrober@stanford.edu>
Fri, 5 Feb 2010 22:01:18 +0000 (14:01 -0800)
committerJon Robertson <jonrober@stanford.edu>
Fri, 5 Feb 2010 22:01:18 +0000 (14:01 -0800)
modifyPrincipal now sets the mask to 0 if it is not given a mask, rather
than passing along the undefined mask.  This directly affected the
disablePrincipal and enablePrincipal functions, which would call
modifyPrincipal without a given mask and led to problems on my system.

Kadm5.pm

index cb902a00d73557ed7b4cf0139d80f0ae3b40c857..1c683fe2c502bc8e3ac70bd774bd6445be9e20c4 100644 (file)
--- a/Kadm5.pm
+++ b/Kadm5.pm
@@ -313,6 +313,7 @@ sub modifyPrincipal
   {
     my ($self,$principal,$mask) = @_;
     
+    $mask = 0 unless $mask;
     eval
       {
        $self->handle->c_modify_principal($principal,$mask);