]> 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)
committerGreg Hudson <ghudson@mit.edu>
Sat, 14 Mar 2015 03:32:44 +0000 (23:32 -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.

ticket: 8155
target_version: 1.13.2
tags: pullup

src/lib/kadm5/srv/server_acl.c

index 86e136741e7309a6112a063b672d9777a021fd31..64f738540893aa70224c730908fdab9a3ffded1f 100644 (file)
@@ -349,6 +349,10 @@ kadm5int_acl_parse_restrictions(s, rpp)
                     }
                 }
             }
+            if (code) {
+                krb5_klog_syslog(LOG_ERR, _("%s: invalid restrictions: %s"),
+                                 acl_acl_file, s);
+            }
         }
     }
     if (sp)