예제 #1
0
파일: ManagePPTP.cs 프로젝트: SuPair/vpn-2
 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
파일: ManagePPTP.cs 프로젝트: SuPair/vpn-2
 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);