X-Git-Url: http://git.pjr.cc/?p=ga4php.git;a=blobdiff_plain;f=gaas%2Flib%2FglobalLib.php;fp=gaas%2Flib%2FglobalLib.php;h=a49f1ef0883ae6703f78c666afff4a12cc3ec4b9;hp=f3fe9fb3ba8938b8c3f1958ccbd57f69ff4fcb2b;hb=7ab48347fa3382418a4b7dd59a978c075ef530c2;hpb=6ae20292cc7aa6a712b492de306613192733e756 diff --git a/gaas/lib/globalLib.php b/gaas/lib/globalLib.php index f3fe9fb..a49f1ef 100644 --- a/gaas/lib/globalLib.php +++ b/gaas/lib/globalLib.php @@ -19,6 +19,7 @@ define("MSG_SET_CLIENT_GROUP", 21); define("MSG_SET_ADMIN_GROUP", 22); define("MSG_PROVISION_USER",23); define("MSG_GET_USERS", 24); +define("MSG_DELETE_USER", 25); // the gaasd call's $MESSAGE[]_server() for the server side // and $MESSAGE[]_client() for the client side @@ -29,6 +30,7 @@ $MESSAGES[MSG_SET_CLIENT_GROUP] = "gaasSetClientGroup"; // groupname $MESSAGES[MSG_SET_ADMIN_GROUP] = "gaasSetAdminGroup"; $MESSAGES[MSG_PROVISION_USER] = "gaasProvisionUser"; // username $MESSAGES[MSG_GET_USERS] = "gaasGetUsers"; // [admin|client], [name pattern], [only with tokens] +$MESSAGES[MSG_DELETE_USER] = "gaasDeleteUser"; // username global $MESSAGES; @@ -198,9 +200,7 @@ function getUsersInGroup($domain, $adlogin, $adpass, $group) $i = 0; foreach($info as $kpot => $lpot) { if(isset($lpot["samaccountname"])) { - $arbi[$i]["username"] = $lpot["samaccountname"][0]; - $arbi[$i]["realname"] = $lpot["name"][0]; - $i++; + $arbi[$lpot["samaccountname"][0]] = $lpot["name"][0]; } }