summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Barrett <tom@tombarrett.xyz>2020-02-21 08:17:03 -0600
committerTom Barrett <tom@tombarrett.xyz>2020-02-21 08:17:03 -0600
commit01e2662903dadce5903581eac738d0b413e521c2 (patch)
treebb51df97bbdae985794acdf049a6864b96ec0015
parent876baeb4d455fb811897a00e31fb5231512becd6 (diff)
startup for ldap
-rw-r--r--README.md2
-rw-r--r--configs/hosts1
-rw-r--r--configs/ldap/interfaces14
-rwxr-xr-xcreate3
-rwxr-xr-xdestroy4
-rwxr-xr-xscripts/ldap5
6 files changed, 27 insertions, 2 deletions
diff --git a/README.md b/README.md
index 372c324..470b4eb 100644
--- a/README.md
+++ b/README.md
@@ -3,8 +3,6 @@ lxc fun
ideas
-set up dhcp / dns server ?
--as temp do static with host file?
--set up kerberos
-set up nfs
-set up two clients
-ldap?
diff --git a/configs/hosts b/configs/hosts
index de1585f..02e9d2c 100644
--- a/configs/hosts
+++ b/configs/hosts
@@ -5,3 +5,4 @@ ff02::2 ip6-allrouters
192.168.122.100 krb.hades.hr
192.168.122.110 nfs.hades.hr
+192.168.122.120 ldap.hades.hr
diff --git a/configs/ldap/interfaces b/configs/ldap/interfaces
new file mode 100644
index 0000000..78fd4c1
--- /dev/null
+++ b/configs/ldap/interfaces
@@ -0,0 +1,14 @@
+# This file describes the network interfaces available on your system
+# and how to activate them. For more information, see interfaces(5).
+
+# The loopback network interface
+auto lo
+iface lo inet loopback
+
+auto eth0
+iface eth0 inet static
+ address 192.168.122.120/24
+ post-up route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.122.1
+ pre-down route del -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.122.1
+
+source /etc/network/interfaces.d/*.cfg
diff --git a/create b/create
index 925c1f4..9790514 100755
--- a/create
+++ b/create
@@ -6,3 +6,6 @@ lxc-info -n kerberos
scripts/nfs > logs/nfs
lxc-info -n nfs
+
+scripts/ldap > logs/ldap
+lxc-info -n ldap
diff --git a/destroy b/destroy
index 09a8c54..4f26cc9 100755
--- a/destroy
+++ b/destroy
@@ -7,3 +7,7 @@ ssh-keygen -R "192.168.122.100"
lxc-stop -n nfs
lxc-destroy -n nfs
ssh-keygen -R "192.168.122.110"
+
+lxc-stop -n ldap
+lxc-destroy -n ldap
+ssh-keygen -R "192.168.122.120"
diff --git a/scripts/ldap b/scripts/ldap
new file mode 100755
index 0000000..26afcf8
--- /dev/null
+++ b/scripts/ldap
@@ -0,0 +1,5 @@
+#!/bin/bash
+set -e
+
+scripts/debian_roll ldap
+#lxc-attach -n ldap -v DEBIAN_FRONTEND=noninteractive -- apt-get -y install slapd ldap-utils ldapscripts