Function __global->cns_get_ldap_hash

Definitions

sources/cns_ldap.php

  • Find the LDAP servers password for a certain member.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$cn string No No required parameter N/A N/A The username

Returns

  • The password (null: no such user)
  • Type: ?string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find the LDAP servers password for a certain member.
 *
 * @param  string $cn The username
 * @return ?string The password (null: no such user)
 */

function cns_get_ldap_hash(string $cn) : ?string