From 4216d6e5b6235fb705c4f570664699b721d56b35 Mon Sep 17 00:00:00 2001
From: Timothy Pearson <kb9vqf@pearsoncomputing.net>
Date: Mon, 29 Sep 2025 23:09:27 -0500
Subject: Write NSS configuration file on realm controller creation

Signed-off-by: Timothy Pearson <kb9vqf@pearsoncomputing.net>
---
 src/ldapcontroller.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/ldapcontroller.cpp b/src/ldapcontroller.cpp
index e8465a4..a8d6d15 100644
--- a/src/ldapcontroller.cpp
+++ b/src/ldapcontroller.cpp
@@ -2217,6 +2217,9 @@ int LDAPController::createNewLDAPRealm(TQWidget* dialogparent, LDAPRealmConfig r
 		return -1;
 	}
 
+	// Write NSS configuration file
+	LDAPManager::writeNSSwitchFile();
+
 	// Write the NSS update crontab file and update NSS database
 	LDAPManager::writeClientCronFiles();
 
-- 
cgit v1.2.3

