X-Git-Url: http://git.pjr.cc/?p=ga4php.git;a=blobdiff_plain;f=gaas%2Flib%2FgaasdMessages.php;fp=gaas%2Flib%2FgaasdMessages.php;h=3b59931274645077400964b7364d53c51eb4ceea;hp=5ca73a0ffc10c06f58ceb2d57ce886d214995316;hb=40dc7f97626a703a943e27cdcd1a3d6a332a8f27;hpb=2acdbc5f052f24af5de2ab013a4fae5eeb1c3305 diff --git a/gaas/lib/gaasdMessages.php b/gaas/lib/gaasdMessages.php index 5ca73a0..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 { @@ -45,9 +45,6 @@ function gaasInitServer_server($msg) } if($msg["backend"] == "AD") { - echo "Backend is AD with params of\n"; - print_r($msg); - echo "\n"; $backEnd = "AD"; // attempt connect to AD, verify creds $addom = $msg["domain"]; @@ -66,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"; } @@ -81,13 +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. - echo "its all good at the server\n"; - return true; } else if($msg["backend"] == "IN") { // this ones simpler