Code

Updated password method heimdal
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 25 Apr 2008 08:13:47 +0000 (08:13 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 25 Apr 2008 08:13:47 +0000 (08:13 +0000)
-Skip the ldap based heimdal password method, if the SI based MIT method is available and we have running SI kerberos setup

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10681 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/heimdal/admin/systems/services/kerberos/class_password-methods-heimdal.inc

index a6505b00ffc9194fd87db080b3ecb37d9fbba61f..e76bd986805a5c96fed02f366a48127a08385ba0 100644 (file)
@@ -110,6 +110,14 @@ class passwordMethodheimdal extends passwordMethod
        function is_available()
        {
     global $config;
+
+    /* If we have a running SI-Server which support kerberos support
+        skip this ldap based method.
+    */
+    if(class_available("passwordMethodMIT") && passwordMethodMIT::is_available()){
+      return(FALSE);
+    }
+
     $cmd = "";
     if(isset($config->current['HEIMDAL_KEYGEN'])){
       $cmd = $config->current['HEIMDAL_KEYGEN'];