I've mentioned this to Support. The content type is set incorrectly for this link and I'll let you know when it gets fixed.
Isn't there a working one in 7.0?
Any updates? We have a real need for this grammer file.
we are trying to use the sample sudoers.gm grammar file on a BL 8 SP5 running under Linux. we used the grammar guide and what the guide is pointing out to update some tables is diffrent in 8.0 and one does not exist. do we have a new grammar guide for 8.0? and if someone out there built a grammar for sudoers to use with BL 8, please share if you can.
thanks for any help on this.
Did you get a response to this and did you find a working way to add the new sudoers grammar file?
not yet, here is what I got back from support:
You can use the blcli commands in the ConfigFileGrammar namespace to create grammar files in your environment.
I suggest using the "ConfigFileGrammar : createConfigFileGrammarOnFileServer" command which you can get more details about by looking in the BLCL Help.
I was going to try this and see if it works, I still not sure if my grammer will work since I was not able to test it. I need a working grammer for red hat.
Yep, that's the right CLI command, should just work. You can always try on a standalone BL VM: that's where I usually test new grammars, because I can restart the appserver as necessary, etc. when testing grammars.
This is what I done on a Windows AppServer followed by a restart...
blcli -v defaultProfile -r BLAdmins ConfigFileGrammacreateConfigFileGrammar "/c/Program Files/BladeLogic/OM/NSH/scripts" "sudoers.gm" "sudoers.gm" "sudoers.gm" "sudoers.gm"
This is great, thank you so much for putting the command incase we need to do this again. tried it and works perfect.
Thanks for that command jrellme. It helped me out too!
Here's another question though:
Since sudo version 1.7.2, a special directive was introduced that is similar to an httpd.conf include.
In the sudoers config file this is stated at the bottom:
## (the '#' here does not indicate a comment)
Basically, you can have multiple 'sudoers' files in different locations.
Would it be possible to modify sudoers.gm to read the #includedir line as not a comment?
3 years have passed since your comment, but I'm wondering: did you ever get feedback regarding the #includedir directive? I want to build compliancy rules for our sudoers definitions and would like to be able to parse the /etc/sudoers including this directive (as we heavily rely on it).