[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[augeas-devel] augeas: master - Sshd: add test showing how to add a Subsystem



Gitweb:        http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=3ce70f278fc34fca07b373137f7a193c7b3ebfdf
Commit:        3ce70f278fc34fca07b373137f7a193c7b3ebfdf
Parent:        51d47e6918828b5dc6010d3217e0da9fa9f8621e
Author:        David Lutterkort <lutter redhat com>
AuthorDate:    Fri Mar 6 14:40:48 2009 -0800
Committer:     David Lutterkort <lutter redhat com>
CommitterDate: Fri Mar 6 14:40:48 2009 -0800

Sshd: add test showing how to add a Subsystem

---
 lenses/tests/test_sshd.aug |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/lenses/tests/test_sshd.aug b/lenses/tests/test_sshd.aug
index d0d8234..85c2ea8 100644
--- a/lenses/tests/test_sshd.aug
+++ b/lenses/tests/test_sshd.aug
@@ -59,6 +59,18 @@ Banner /etc/welcome.txt
 	                { "Host"  = "white.house.*" } }
 	  { "Settings"  { "Banner" = "/etc/welcome.txt" } } }
 
+  test Sshd.lns put match_blocks after
+    insb "Subsystem" "/Match[1]";
+    set "/Subsystem/sftp" "/usr/libexec/openssh/sftp-server"
+  = "X11Forwarding yes
+Subsystem sftp /usr/libexec/openssh/sftp-server
+Match User sarko Group pres.*
+  Banner /etc/bienvenue.txt
+  X11Forwarding no
+Match User bush Group pres.* Host white.house.*
+Banner /etc/welcome.txt\n"
+
+
 (* Local Variables: *)
 (* mode: caml       *)
 (* End:             *)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]