sudo apt-get update && sudo apt-get install libpam-usb pamusb-tools
Il est possible de compiler le paquet pour les distributions n'ayant pas de paquet...
| # ---- edit data below ------------ | |
| LDAP_HOST = 'promdmnet.cloudapp.net' | |
| LDAP_PORT = 636 # 636 or 389 | |
| LDAP_BASE = "dc=promdm, dc=net" | |
| LDAP_BIND_USER = "[email protected]" # format is username@domain | |
| LDAP_BIND_PASS = "ldapbindpassword" | |
| samaccountname = "zm" | |
| password = "userpassword" | |
| # ----- edit end ------------------ |
| ####################################################################################################################### | |
| # This Gist is some crib notes/tests/practice/whatever for talking to Active Directory via LDAP. The (surprisingly | |
| # helpful) documentation for Net::LDAP can be found here: http://net-ldap.rubyforge.org/Net/LDAP.html | |
| ####################################################################################################################### | |
| require 'rubygems' | |
| require 'net/ldap' | |
| ####################################################################################################################### | |
| # HELPER/UTILITY METHOD |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| class ApplicationController < ActionController::Base | |
| # Creates an accessor which is exposed to the view | |
| def self.view_accessor(*names) | |
| attr_accessor *names | |
| helper_method *names | |
| end | |
| end |
| # Modify this file accordingly for your specific requirement. | |
| # http://www.thegeekstuff.com | |
| # 1. Delete all existing rules | |
| iptables -F | |
| # 2. Set default chain policies | |
| iptables -P INPUT DROP | |
| iptables -P FORWARD DROP | |
| iptables -P OUTPUT DROP |