]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Log invalid restrictions strings
authorGreg Hudson <ghudson@mit.edu>
Fri, 13 Mar 2015 17:30:49 +0000 (13:30 -0400)
committerTom Yu <tlyu@mit.edu>
Tue, 12 May 2015 19:41:27 +0000 (15:41 -0400)
In kadm5int_acl_parse_restrictions(), output a log message if we break
out of the parsing loop with an error.  The current structure of the
loop makes it difficult to pinpoint the bad restrictions field, so
just output the whole string.

(cherry picked from commit e9eaafeab12b2b62595f4dff2fca3345b2d95b4a)
(cherry picked from commit 1ff2ecc7890ae4b843c77c2ba68f5a152806bf05)

ticket: 8185 (new)
version_fixed: 1.12.4
status: resolved

src/lib/kadm5/srv/server_acl.c

index 9d971a9e5286077a2ce05371822a16b0db95c09a..5021f5b52ffccc0c44caa43a4f4a45347c42fdf8 100644 (file)
@@ -350,6 +350,10 @@ kadm5int_acl_parse_restrictions(s, rpp)
                     }
                 }
             }
+            if (code) {
+                krb5_klog_syslog(LOG_ERR, _("%s: invalid restrictions: %s"),
+                                 acl_acl_file, s);
+            }
         }
     }
     if (sp)