示例#1
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));
 }
示例#2
0
 protected override void RevokeUserImplementation(LibLogic.Ssh.ISsh sshClient)
 {
     sshClient.WriteLine(string.Format("sed -i '/^{0} pptpd/d' /etc/ppp/chap-secrets", userData.Email));
 }
示例#3
0
文件: PppBase.cs 项目: SuPair/vpn-2
 protected abstract void RevokeUserImplementation(LibLogic.Ssh.ISsh sshClient);