Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

krb5conf: wrong parsing when [realms] is a last section #45

Closed
dpotapov opened this issue Nov 7, 2017 · 0 comments · Fixed by #46
Closed

krb5conf: wrong parsing when [realms] is a last section #45

dpotapov opened this issue Nov 7, 2017 · 0 comments · Fixed by #46
Assignees

Comments

@dpotapov
Copy link
Contributor

dpotapov commented Nov 7, 2017

Hi,

When [realms] section is last in the config file, it is not detecting last realm:

[libdefaults]
...

[domain_realm]
...

[realms]
 TEST.GOKRB5 = {
  kdc = 10.80.88.88:88
 }
 EXAMPLE.COM = {
        kdc = kerberos.example.com
 }

Test fails:

--- FAIL: TestLoad (0.65s)
	assertions.go:239: 
	Error Trace:	krb5conf_test.go:66
	Error:      	Not equal: 
	            	expected: 2
	            	actual: 1
	Messages:   	Number of realms not as expected
@jcmturner jcmturner self-assigned this Nov 7, 2017
jcmturner added a commit that referenced this issue Nov 7, 2017
@jcmturner jcmturner mentioned this issue Nov 7, 2017
jcmturner added a commit that referenced this issue Nov 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants