public CertsOpenVpnRevokeCommand(int userId, Ssh.ISsh sshClient)
        {
            using (var db = Setup.DbFactory)
            {
                db.Open();
                this.userData = db.Get <LibPoco.Users>(userId);
            }

            this.sshClient = sshClient;
        }
        public CertsOpenVpnRevokeCommand(int userId, Ssh.ISsh sshClient)
        {
            using (var db = InitializeSettings.DbFactory)
            {
                db.Open();
                this.userData = db.Get <Majorsilence.Vpn.Poco.Users>(userId);
            }

            this.sshClient = sshClient;
        }
Exemple #3
0
        protected PppBase(int userId, int vpnServerId, Ssh.ISsh sshNewServer, Ssh.ISsh sshRevokeServer)
        {
            using (var db = InitializeSettings.DbFactory)
            {
                this.userData = db.Get <Majorsilence.Vpn.Poco.Users>(userId);
                this.vpnData  = db.Get <Majorsilence.Vpn.Poco.VpnServers>(vpnServerId);
            }

            this.sshNewServer          = sshNewServer;
            this.sshRevokeServer       = sshRevokeServer;
            this.userRequestedPassword = GeneratePassword();
        }
Exemple #4
0
        protected PppBase(int userId, int vpnServerId, Ssh.ISsh sshNewServer, Ssh.ISsh sshRevokeServer)
        {
            using (var db = Setup.DbFactory)
            {
                this.userData = db.Get <LibPoco.Users>(userId);
                this.vpnData  = db.Get <LibPoco.VpnServers>(vpnServerId);
            }

            this.sshNewServer          = sshNewServer;
            this.sshRevokeServer       = sshRevokeServer;
            this.userRequestedPassword = GeneratePassword();
        }
        public CertsOpenVpnGenerateCommand(int userId, int vpnServerId, Ssh.ISsh sshClientNewServer,
                                           Ssh.ISsh sshClientRevokeServer, Ssh.ISftp sftpClient)
        {
            using (var db = InitializeSettings.DbFactory)
            {
                db.Open();
                this.userData = db.Get <Majorsilence.Vpn.Poco.Users>(userId);
                this.vpnData  = db.Get <Majorsilence.Vpn.Poco.VpnServers>(vpnServerId);
            }

            this.sshClientNewServer    = sshClientNewServer;
            this.sshClientRevokeServer = sshClientRevokeServer;
            this.sftpClient            = sftpClient;
        }
Exemple #6
0
 public ManagePPTP(int userId, int vpnServerId, Ssh.ISsh sshNewServer, Ssh.ISsh sshRevokeServer)
     : base(userId, vpnServerId, sshNewServer, sshRevokeServer)
 {
 }
Exemple #7
0
 public IpSec(int userId, int vpnServerId, Ssh.ISsh sshNewServer, Ssh.ISsh sshRevokeServer)
     : base(userId, vpnServerId, sshNewServer, sshRevokeServer)
 {
 }