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

sshd_config keys should be case insensitive #15

Closed
domcleal opened this issue Sep 24, 2012 · 5 comments
Closed

sshd_config keys should be case insensitive #15

domcleal opened this issue Sep 24, 2012 · 5 comments
Labels
bug Something isn't working

Comments

@domcleal
Copy link
Contributor

Alexander reported in #13 that sshd_config keys should be case insensitive, so Listenaddress and ListenAddress entries are treated as a single key with multiple values.

Currently Augeas treats path expressions case sensitively, so it may need Raphael's regexpi pathx function and reworking of all the expressions, or a custom aug_match etc.

@raphink
Copy link
Member

raphink commented Dec 2, 2013

Yes, *[label() =~ regexp('#{key}', 'i')] could be used, but that would add a dependency on Augeas 1.0.0 strictly. Is that ok?

@domcleal
Copy link
Contributor Author

domcleal commented Dec 2, 2013

@raphink no, both Debian stable and Ubuntu LTS use 0.10.0 still

@raphink
Copy link
Member

raphink commented Dec 2, 2013

Right, so we need to wait still.

@domcleal
Copy link
Contributor Author

domcleal commented Dec 2, 2013

Yep, or iterate over the nodes ourselves and do a case insensitive comparison instead of using a path expression.

@domcleal
Copy link
Contributor Author

domcleal commented May 5, 2014

Fixed in 4b556d0 (1.1.0).

@domcleal domcleal closed this as completed May 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants