From d671e2f180985fc33c05a76c36634e65fa73c123 Mon Sep 17 00:00:00 2001 From: Josh North Date: Mon, 8 Dec 2014 11:32:02 -0500 Subject: [PATCH] Added attachment dir to copy over... --- README.md | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 53b3167..c6f869a 100644 --- a/README.md +++ b/README.md @@ -52,15 +52,16 @@ source ./vars exit ``` 6. Copy client directory to openvpn directory `sudo cp -R /tmp/ovpn-ad-sync/oas_clients /etc/openvpn` -7. Edit the client template to match your IP, etc `sudo nano /etc/openvpn/oas_clients/template.ovpn` -7. Copy server files into place `sudo cp -R /tmp/ovpn-ad-sync/oas_configs/* /etc/openvpn` -8. Edit server file `sudo nano /etc/openvpn/vpn.example.com.conf` -9. Edit LDAP auth file `sudo nano /etc/openvpn/vpn.example.com.ldap` -10. Copy main program into place `sudo cp /tmp/ovpn-ad-sync/ovpn-ad-sync.sh /usr/local/bin` -11. Edit main program variables - IMPORTANT! `sudo nano /usr/local/bin/ovpn-ad-sync.sh` -12. Allow program to execute `sudo chmod +x /usr/local/bin/ovpn-ad-sync.sh` -13. On your Active Directory, make sure you have created a group (by default, OpenVPNUsers). -14. On your Active Directory, make sure the oas_user exists and has a proper password set. -15. Check the rest of the items in the assumptions list above and double-check they are all checked before running. -16. All checked? Let's add it to cron. `sudo crontab -e` and add a line like this `0,10,20,30,40,50 * * * * /usr/local/bin/ovpn-ad-sync.sh >/dev/null 2>&1` -17. Now go to Active Directory and add a new user, set a valid email address for them, and add them to the group. Within 10 minutes that email should receive a message with the config and user guide attached! +7. Copy user guide directory to openvpn directory `sudo cp -R /tmp/ovpn-ad-sync/oas_attachments /etc/openvpn` +8. Edit the client template to match your IP, etc `sudo nano /etc/openvpn/oas_clients/template.ovpn` +9. Copy server files into place `sudo cp -R /tmp/ovpn-ad-sync/oas_configs/* /etc/openvpn` +10. Edit server file `sudo nano /etc/openvpn/vpn.example.com.conf` +11. Edit LDAP auth file `sudo nano /etc/openvpn/vpn.example.com.ldap` +12. Copy main program into place `sudo cp /tmp/ovpn-ad-sync/ovpn-ad-sync.sh /usr/local/bin` +13. Edit main program variables - IMPORTANT! `sudo nano /usr/local/bin/ovpn-ad-sync.sh` +14. Allow program to execute `sudo chmod +x /usr/local/bin/ovpn-ad-sync.sh` +15. On your Active Directory, make sure you have created a group (by default, OpenVPNUsers). +16. On your Active Directory, make sure the oas_user exists and has a proper password set. +17. Check the rest of the items in the assumptions list above and double-check they are all checked before running. +18. All checked? Let's add it to cron. `sudo crontab -e` and add a line like this `0,10,20,30,40,50 * * * * /usr/local/bin/ovpn-ad-sync.sh >/dev/null 2>&1` +19. Now go to Active Directory and add a new user, set a valid email address for them, and add them to the group. Within 10 minutes that email should receive a message with the config and user guide attached!