about summary refs log tree commit diff
path: root/ops/nixos/modules/tvl-slapd
diff options
context:
space:
mode:
authorKane York <kanepyork@gmail.com>2020-06-10T21·57-0700
committerVincent Ambo <tazjin@google.com>2020-06-11T21·13+0000
commit6d4cae9359a0027430830890c18157c89b582f4e (patch)
tree3cac35c78210928db2504d2f034b24642f446044 /ops/nixos/modules/tvl-slapd
parent35df1b94fca201a7b780c2c897a034b84b5ed49e (diff)
chore(ops/nixos/modules): Add riking to slapd r/902
Diffstat (limited to 'ops/nixos/modules/tvl-slapd')
-rw-r--r--ops/nixos/modules/tvl-slapd/contents.ldif9
-rw-r--r--ops/nixos/modules/tvl-slapd/genpasswd.rb5
2 files changed, 14 insertions, 0 deletions
diff --git a/ops/nixos/modules/tvl-slapd/contents.ldif b/ops/nixos/modules/tvl-slapd/contents.ldif
index 4f883926f619..16d51ca7c7a9 100644
--- a/ops/nixos/modules/tvl-slapd/contents.ldif
+++ b/ops/nixos/modules/tvl-slapd/contents.ldif
@@ -27,3 +27,12 @@ sn: tazjin
 title: tazjin
 mail: mail@tazj.in
 userPassword: {SSHA}67H341jRfAFBDz/R9+T3fHQiPfjwTbpQ
+
+dn: cn=riking,ou=users,dc=tvl,dc=fyi
+objectClass: organizationalPerson
+objectClass: inetOrgPerson
+cn: Kane York
+sn: riking
+title: riking
+mail: rikingcoding@gmail.com
+userPassword: {SSHA}6rPxMOofHMGNTEYdyBOYbza7NT/RmiGz
diff --git a/ops/nixos/modules/tvl-slapd/genpasswd.rb b/ops/nixos/modules/tvl-slapd/genpasswd.rb
new file mode 100644
index 000000000000..8f6f8d75842e
--- /dev/null
+++ b/ops/nixos/modules/tvl-slapd/genpasswd.rb
@@ -0,0 +1,5 @@
+require 'securerandom'
+
+passwd = SecureRandom.urlsafe_base64(15)
+
+puts "your password: [[#{passwd}]]"