You are here

function ldap_api_get_server_objects in Lightweight Directory Access Protocol (LDAP) 6

get one or more ldap_api_server objects

Parameters

$server:

  • integer representing server id,
  • or name => value array of server parameters,
  • or instantiated server object
  • or NULL signifying find all servers configured

$module: if present, only return servers which a module has enabled.

$reset: clear any cached servers

Return value

Array of ldap_server objects or single server object if server id passed in

File

includes/ldap.functions.inc, line 32
Other LDAP Functions

Code

function ldap_api_get_server_objects($server = NULL, $module = NULL, $reset = FALSE) {
  require_once 'ldap_api.functions.inc';
  return _ldap_api_get_server_objects($server, $module, $reset);
}