Beispiel #1
0
 protected override void RevokeUserImplementation(LibLogic.Ssh.ISsh sshClient)
 {
     sshClient.WriteLine(string.Format("sed -i '/^{0} pptpd/d' /etc/ppp/chap-secrets", userData.Email));
 }
Beispiel #2
0
 protected override void AddUserImplementation(LibLogic.Ssh.ISsh sshClient)
 {
     // TODO: will need an unhashed user password
     sshClient.WriteLine(string.Format("echo \"{0} {1} {2} *\" >> /etc/ppp/chap-secrets",
                                       userData.Email, "pptpd", this.userRequestedPassword));
 }