hercules-team / augeas

A configuration editing tool and API
http://augeas.net/
GNU Lesser General Public License v2.1
486 stars 199 forks source link

opendkim.conf unable to set Domain value to * #762

Open rudybroersma opened 2 years ago

rudybroersma commented 2 years ago

With the current Opendkim lens from https://raw.githubusercontent.com/hercules-team/augeas/master/lenses/opendkim.aug I am unable to set Domain to value *:

augtool> set /files/etc/opendkim.conf/Domain *
augtool> save
error: Failed to execute command
saving failed (run 'errors' for details)
augtool> errors
Error in /etc/opendkim.conf at node /files/etc/opendkim.conf/ (put_failed)
  Unexpected node '/files/etc/opendkim.conf/Domain': can not match tree

     { "Domain" = "*" }

 with pattern
   (    { /#comment/ = /[^\t\n\r ].*[^\t\n\r ]|[^\t\n\r ]/ }
      | { }
      | { /AutoRestartCount|ClockDrift|DNSTimeout|LDAPKeepaliveIdle|LDAPKeepaliveInterval|LDAPKeepaliveProbes|LDAPTimeout|MaximumHeaders|MaximumSignaturesToVerify|MaximumSignedBytes|MilterDebug|MinimumKeyBits|SignatureTTL|UMask/ = /[0-9]+/ }
      | { /AddAllSignatureResults|ADSPNoSuchDomain|AllowSHA1Only|AlwaysAddARHeader|AuthservIDWithJobID|AutoRestart|Background|CaptureUnknownErrors|Diagnostics|DisableADSP|DisableCryptoInit|DNSConnect|FixCRLF|IdentityHeaderRemove|LDAPDisableCache|LDAPSoftStart|LDAPUseTLS|MultipleSignatures|NoHeaderB|Quarantine|QueryCache|RemoveARAll|RemoveOldSignatures|ResolverTracing|SelectorHeaderRemove|SendADSPReports|SendReports|SoftwareHeader|StrictHeaders|StrictTestMode|SubDomains|Syslog|SyslogSuccess|VBR-TrustedCertifiersOnly|WeakSyntaxChecks|LogWhy/ = /[Tt]rue|[Ff]alse|[Yy]es|[Nn]o|1|0/ }
      | { /ADSPAction|AuthservID|AutoRestartRate|BaseDirectory|BogusKey|BogusPolicy|Canonicalization|ChangeRootDirectory|DiagnosticDirectory|FinalPolicyScript|IdentityHeader|Include|KeyFile|LDAPAuthMechanism|LDAPAuthName|LDAPAuthRealm|LDAPAuthUser|LDAPBindPassword|LDAPBindUser|Minimum|Mode|MTACommand|Nameservers|On-BadSignature|On-Default|On-DNSError|On-InternalError|On-KeyNotFound|On-NoSignature|On-PolicyError|On-Security|On-SignatureError|PidFile|ReplaceRules|ReportAddress|ReportBccAddress|ResolverConfiguration|ScreenPolicyScript|SelectCanonicalizationHeader|Selector|SelectorHeader|SenderMacro|SetupPolicyScript|SignatureAlgorithm|SMTPURI|Socket|StatisticsName|StatisticsPrefix|SyslogFacility|TemporaryDirectory|TestPublicKeys|TrustAnchorFile|UnprotectedKey|UnprotectedPolicy|UserID|VBR-Certifiers|VBR-PurgeFields|VBR-TrustedCertifiers|VBR-Type|BodyLengthDB|Domain|DontSignMailTo|ExemptDomains|ExternalIgnoreList|InternalHosts|KeyTable|LocalADSP|MacroList|MTA|MustBeSigned|OmitHeaders|OversignHeaders|PeerList|POPDBFile|RemoveARFrom|ResignMailTo|SenderHeaders|SignHeaders|SigningTable|TrustSignaturesFrom/ = /[\/-9A-Za-z][^\t\n #]+/ })*

  Lens: /usr/share/augeas/lenses/dist/opendkim.aug:68.12-.38: