utilities.php 259 B

123456789101112
  1. <?php
  2. /* returns an array of group=>group from ldap */
  3. function getGroups()
  4. {
  5. $caller = new ScriptCaller();
  6. $result = $caller->callScript('gm/show');
  7. if (is_string($result))
  8. return array(null);
  9. else return array_combine($result, $result);
  10. }