<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Le 05/07/2016 à 08:06, Maxime Longuet a
écrit :<br>
</div>
<blockquote
cite="mid:1126801647.460156.1467698815697.JavaMail.zimbra@itika.net"
type="cite">
<div style="font-family: tahoma,new york,times,serif; font-size:
12pt; color: #000000">
<div>I would appreciate to add feature of "UseDNS" in ssh
directive :)</div>
<div><br data-mce-bogus="1">
</div>
<div>Regards,</div>
<div><br data-mce-bogus="1">
</div>
<div>Max</div>
</div>
</blockquote>
Hello Maxime,<br>
<br>
Doing this would be quite easy: adding a new version of the
techniques/systemSettings/remoteAccess/sshConfiguration Technique,
and then two things:<br>
<br>
* in config.st, adding before "classes:":<br>
---8<---<br>
rudder_openssh_server_usedns_edit::<br>
"rudder_openssh_server_config[config][UseDNS]"<br>
string => "&OPENSSH_SERVER_USEDNS&";<br>
---8<---<br>
and after "not =>
strcmp("&OPENSSH_SERVER_SYSLOGFACILITY&","dontchange");"<br>
---8<---<br>
# UseDNS edition ?<br>
"rudder_openssh_server_usedns_edit"<br>
not =>
strcmp("&OPENSSH_SERVER_USEDNS&","dontchange");<br>
---8<---<br>
<br>
thus adding a definition for the configuration itself in the
rudder_openssh_server_config array, and a class to select if the
settings needs to be changed.<br>
<br>
* in metadata.xml:<br>
<br>
After "<NAME>OPENSSH_SERVER_MAXSESSIONS</NAME>":<br>
---8<---<br>
<SELECT1><br>
<NAME>OPENSSH_SERVER_USEDNS</NAME><br>
<DESCRIPTION>Try to look up the remote host and verify
if its reverse dns maps to the same IP</DESCRIPTION><br>
<ITEM><br>
<VALUE>yes</VALUE><br>
<LABEL>Yes</LABEL><br>
</ITEM><br>
<ITEM><br>
<VALUE>no</VALUE><br>
<LABEL>No</LABEL><br>
</ITEM><br>
<ITEM><br>
<VALUE>dontchange</VALUE><br>
<LABEL>Don't change</LABEL><br>
</ITEM><br>
<CONSTRAINT><br>
<DEFAULT>dontchange</DEFAULT><br>
</CONSTRAINT><br>
</SELECT1><br>
---8<---<br>
<br>
That should be enough, but probably needs to be tested first.<br>
<br>
Would you mind contributing the modification for everyone to enjoy
afterwards ?
<a class="moz-txt-link-freetext" href="http://www.rudder-project.org/foswiki/Development/HowToContribute">http://www.rudder-project.org/foswiki/Development/HowToContribute</a><br>
<br>
Thanks a lot, and have a nice afternoon,<br>
--<br>
Matthieu CERDA<br>
</body>
</html>