Browse Source

Use ldap IP to fix startup issues

gluster
m1cr0man 2 years ago
parent
commit
38fa59bf65
4 changed files with 10 additions and 3 deletions
  1. +1
    -1
      common/sysconfig.nix
  2. +2
    -1
      common/variables.nix
  3. +6
    -0
      services/dns/default.nix
  4. +1
    -1
      services/postfix/default.nix

+ 1
- 1
common/sysconfig.nix View File

@@ -29,7 +29,7 @@ in {
# Enable LDAP
users.ldap.enable = true;
users.ldap.timeLimit = 2;
users.ldap.server = "ldap://ldap.internal/";
users.ldap.server = "ldap://${common.ldapHost}/";
users.ldap.base = "o=redbrick";

# List packages installed in system profile. To search, run:


+ 2
- 1
common/variables.nix View File

@@ -8,7 +8,8 @@
dovecotSaslPort = 3659;
dovecotLmtpPort = 24;

ldapHost = "ldap.internal";
# Hard coded otherwise NSCD will crash systems during boot if network is down
ldapHost = "192.168.0.4";

bondConfig = interfaces: address: {
bonds.bond0 = {


+ 6
- 0
services/dns/default.nix View File

@@ -1,3 +1,4 @@
{ lib, ... }:
{
services.bind = {
enable = true;
@@ -32,6 +33,11 @@
];
};

# Fix issues where services can't resolve their targets
systemd.services.bind.requiredBy = [
"syslog.service"
];

networking.firewall.allowedTCPPorts = [ 53 ];
networking.firewall.allowedUDPPorts = [ 53 ];
}

+ 1
- 1
services/postfix/default.nix View File

@@ -3,7 +3,7 @@ let
common = import ../../common/variables.nix;

ldapCommon = ''
server_host = ldap://ldap.internal/
server_host = ldap://${common.ldapHost}/
version = 3
bind = no
'';


Loading…
Cancel
Save