]> 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>
Wed, 18 Mar 2015 20:18:06 +0000 (16:18 -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)

ticket: 8155
version_fixed: 1.13.2
status: resolved

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)