cant quite figure out why the client messages for init server arent working correctly
[ga4php.git] / gaas / lib / gaasClientMessages.php
index ee4233f..5e5e2ce 100644 (file)
@@ -18,6 +18,9 @@ function gaasStatus_clientrecv($params)
 // IN: "IN", "user", "pass"
 function gaasInitServer_clientsend($params)
 {
+       echo "backend:\n";
+       print_r($params);
+       echo "\n";
        $msg["backend"] = $params[0];
        $msg["user"] = $params[1];
        $msg["pass"] = $params[2];
@@ -25,7 +28,7 @@ function gaasInitServer_clientsend($params)
        if($msg["backend"] == "AD") {
                $msg["domain"] = $params[3];
                $msg["clientdef"] = $params[4];
-               $msg["admindef"] = $params[4];
+               $msg["admindef"] = $params[5];
        } else if($msg["backend"] == "IN") {
                // we dont do anything
        } else {
@@ -39,6 +42,18 @@ function gaasInitServer_clientsend($params)
 // pretty simple, it either works or doesnt, we just pass on the result
 function gaasInitServer_clientrecv($params)
 {
+       echo "in recv, params\n";
+       print_r($params);
        return $params;
 }
+
+function gaasSetADLogin_clientsend($params)
+{
+       
+}
+
+function gaasSetADLogin_clientrecv($params)
+{
+       
+}
 ?>
\ No newline at end of file