Skip to content

Commit

Permalink
fix(krb5conf.config): push auth_to_local fix to v8
Browse files Browse the repository at this point in the history
  • Loading branch information
Matcha committed Sep 20, 2024
1 parent 59bc3f9 commit 15a98f2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions v8/config/krb5conf.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,10 @@ func (r *Realm) parseLines(name string, lines []string) (err error) {
ignore = true
err = UnsupportedDirective{"v4 configurations are not supported"}
}
if strings.Contains(line, "auth_to_local") {
ignore = true
err = UnsupportedDirective{"auth_to_local* configurations are not supported"}
}
if strings.Contains(line, "{") {
c++
if ignore {
Expand All @@ -373,7 +377,11 @@ func (r *Realm) parseLines(name string, lines []string) (err error) {
continue
}
}
if !strings.Contains(line, "=") {
return InvalidErrorf(
"gokrb5.v8.config.krb5conf.Realm.parseLines: abnormal parser situation, probably unsupported config directive for realm %s", r.Realm)

}
p := strings.Split(line, "=")
key := strings.TrimSpace(strings.ToLower(p[0]))
v := strings.TrimSpace(p[1])
Expand Down

0 comments on commit 15a98f2

Please sign in to comment.