[PC-BSD Commits] r18259 - pcbsd/current/src-qt4/pc-adsldap

svn at pcbsd.org svn at pcbsd.org
Mon Aug 6 11:31:38 PDT 2012


Author: kris
Date: 2012-08-06 18:31:38 +0000 (Mon, 06 Aug 2012)
New Revision: 18259

Modified:
   pcbsd/current/src-qt4/pc-adsldap/adsldap.cpp
Log:

Change the AD config file, and add Trusted Domains value



Modified: pcbsd/current/src-qt4/pc-adsldap/adsldap.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-adsldap/adsldap.cpp	2012-08-06 18:27:38 UTC (rev 18258)
+++ pcbsd/current/src-qt4/pc-adsldap/adsldap.cpp	2012-08-06 18:31:38 UTC (rev 18259)
@@ -16,7 +16,8 @@
 #include <pcbsd-utils.h>
 #include "adsldap.h"
 
-#define ADCONF QString("/usr/local/etc/AD.conf")
+#define ADCONF QString("/usr/local/etc/pc-activedirectory.conf")
+#define LDCONF QString("/usr/local/etc/pc-ldap.conf")
 
 void pcADSLDAP::programInit()
 {
@@ -122,13 +123,18 @@
 
   QString tmp;
 
-  // Now write /usr/local/etc/AD.conf values
+  // Now write ADCONF values
   Utils::setConfFileValue(ADCONF, "ad_domainname =", "ad_domainname = " + lineADSDomainName->text(), -1);
   Utils::setConfFileValue(ADCONF, "ad_adminname =", "ad_adminname = " + lineADSAdminName->text(), -1);
   Utils::setConfFileValue(ADCONF, "ad_adminpw =", "ad_adminpw = " + lineADSAdminPW->text(), -1);
   Utils::setConfFileValue(ADCONF, "ad_workgroup =", "ad_workgroup = " + lineADSWorkgroup->text().toUpper(), -1);
   Utils::setConfFileValue(ADCONF, "ad_netbiosname =", "ad_netbiosname = " + lineADSNetBIOS->text().toUpper(), -1);
   
+  if ( checkADSTrustedDomains->isChecked() )
+    Utils::setConfFileValue(ADCONF, "ad_allow_trusted_doms =", "ad_allow_trusted_doms = yes", -1);
+  else
+    Utils::setConfFileValue(ADCONF, "ad_allow_trusted_doms =", "ad_allow_trusted_doms = no", -1);
+
   // Restart AD service if enabled   
   qDebug() << "Enabling AD";
   Utils::setConfFileValue("/etc/rc.conf", "activedirectory_enable=", "activedirectory_enable=\"YES\"", -1);



More information about the Commits mailing list