From 0e775789d1b2ab583b1980ccab3dda4fb4e9d74e Mon Sep 17 00:00:00 2001 From: root Date: Fri, 18 Sep 2020 22:46:31 +0000 Subject: [PATCH] added some users --- configuration.nix | 1 + openldap.nix | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index da94343..b76df16 100644 --- a/configuration.nix +++ b/configuration.nix @@ -59,6 +59,7 @@ networking.firewall.extraCommands = '' iptables -A INPUT -p tcp -s 95.90.121.54 -j ACCEPT ''; + services.fail2ban.enable = true; # Define a user account. Don't forget to set a password with ‘passwd’. users.users.loooph = { diff --git a/openldap.nix b/openldap.nix index 74389e7..45fcffe 100644 --- a/openldap.nix +++ b/openldap.nix @@ -29,11 +29,27 @@ dn: cn=test, ou=users, o=bib3, c=DE objectclass: InetOrgPerson - cn: testcn + cn: test sn: testsn givenName: test test mail: test@test.de userPassword: {CRYPT}$6$ssV7iTyDF7VMB.gx$DKUJgb/M5q.nd0/ilBTQRaR/pw9bMGhbrCp0CSD9Mt1epgoXYu9LA9P4UtWOyVV/QV3LHvJNoiBsfZMcBMAQN. + + dn: cn=loooph, ou=users, o=bib3, c=DE + objectclass: InetOrgPerson + cn: loooph + sn: + givenName: Christoph + mail: + userPassword: {CRYPT}$6$ssV7iTyDF7VMB.gx$DKUJgb/M5q.nd0/ilBTQRaR/pw9bMGhbrCp0CSD9Mt1epgoXYu9LA9P4UtWOyVV/QV3LHvJNoiBsfZMcBMAQN. + + dn: cn=lmux, ou=users, o=bib3, c=DE + objectclass: InetOrgPerson + cn: lmux + sn: + givenName: + mail: + userPassword: {CRYPT}$6$NGdlZVYAvETLQAb2$AXyC9myezCAGGq94HvyKRgjpvt04MGZXcMSMS5vP10Y.LzPot/DyRdIvx2LBs9rsOtTGsFYPCpTx7dnEK1LDs0 ''; }; # TODO move users to seperate files