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

svn at pcbsd.org svn at pcbsd.org
Mon Dec 3 07:39:04 PST 2012


Author: kris
Date: 2012-12-03 15:39:04 +0000 (Mon, 03 Dec 2012)
New Revision: 20348

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

Fix some of the variable names we use for AD / LDAP backend



Modified: pcbsd/current/src-qt4/pc-adsldap/adsldap.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-adsldap/adsldap.cpp	2012-12-03 15:33:28 UTC (rev 20347)
+++ pcbsd/current/src-qt4/pc-adsldap/adsldap.cpp	2012-12-03 15:39:04 UTC (rev 20348)
@@ -186,21 +186,21 @@
     // Restart AD service if enabled   
     qDebug() << "Enabling AD";
     Utils::setConfFileValue("/etc/rc.conf", "pc_activedirectory_enable=", "pc_activedirectory_enable=\"YES\"", -1);
-    Utils::runShellCommand("/usr/local/etc/rc.d/pc-adctl start");
+    Utils::runShellCommand("/usr/local/bin/pc-adctl start");
   } else {
      qDebug() << "Disabling AD";
-     Utils::runShellCommand("/usr/local/etc/rc.d/pc-adctl stop");
+     Utils::runShellCommand("/usr/local/bin/pc-adctl stop");
      Utils::setConfFileValue("/etc/rc.conf", "pc_activedirectory_enable=", "pc_activedirectory_enable=\"NO\"", -1);
   }
   
   // Enable the LDAP service
   if ( groupLDAP->isChecked() ) {
     exportLDAP();
-     Utils::setConfFileValue("/etc/rc.conf", "pc_ldapclient_enable=", "pc_ldapclient_enable=\"YES\"", -1);
-     Utils::runShellCommand("/usr/local/etc/rc.d/pc-ldap start");
+     Utils::setConfFileValue("/etc/rc.conf", "pc_ldap_enable=", "pc_ldap_enable=\"YES\"", -1);
+     Utils::runShellCommand("/usr/local/bin/pc-ldapctl start");
   } else {
      qDebug() << "Disabling LDAP";
-     Utils::runShellCommand("/usr/local/etc/rc.d/pc-ldap stop");
-     Utils::setConfFileValue("/etc/rc.conf", "pc_ldapclient_enable=", "pc_ldapclient_enable=\"NO\"", -1);
+     Utils::runShellCommand("/usr/local/bin/pc-ldapctl stop");
+     Utils::setConfFileValue("/etc/rc.conf", "pc_ldap_enable=", "pc_ldap_enable=\"NO\"", -1);
   }
 }



More information about the Commits mailing list