X-Git-Url: http://git.pjr.cc/?p=ga4php.git;a=blobdiff_plain;f=gaas%2Flib%2FgaasdMessages.php;h=3b59931274645077400964b7364d53c51eb4ceea;hp=a0afbebeac7c2137796a997f6d8c7a809746903d;hb=40dc7f97626a703a943e27cdcd1a3d6a332a8f27;hpb=d751cc8f54e6e8b05e5d9d549fedde8fa713aa71 diff --git a/gaas/lib/gaasdMessages.php b/gaas/lib/gaasdMessages.php index a0afbeb..3b59931 100644 --- a/gaas/lib/gaasdMessages.php +++ b/gaas/lib/gaasdMessages.php @@ -33,7 +33,7 @@ function gaasInitServer_server($msg) // IN expects // $m["user"] = "someuser"; // $m["pass"] = "somepass"; - echo "initstate is $initState\n"; + echo "initstate is $initState"; if($initState) { echo "true\n"; } else { @@ -63,10 +63,7 @@ function gaasInitServer_server($msg) // we should check all servers, but lets just go with 0 for now $res = adTestLogin($addom, $adlogin, $adpass); if(!$res) { - echo "AD login test failed\n"; return false; - } else { - echo "AD login test succeeded\n"; } @@ -78,12 +75,12 @@ function gaasInitServer_server($msg) confSetVal("ad.encryptionkey", generateHexString(32)); confSetVal("ad.clientdef", $adclientdef); confSetVal("ad.admindef", $adadmindef); + confSetVal("backend", "AD"); $initState = true; $backEnd = "AD"; // and that should be it... i think cept im in a forked erg.. lets assume it works, need pain i do not. - return true; } else if($msg["backend"] == "IN") { // this ones simpler