You are here

function ldap_servers_drush_command in Lightweight Directory Access Protocol (LDAP) 7.2

Implements hook_drush_command().

Return value

An associative array describing your command(s).

See also

drush_parse_command()

File

ldap_servers/ldap_servers.drush.inc, line 16
LDAP module drush integration.

Code

function ldap_servers_drush_command() {
  $items['ldap-servers-set-password'] = [
    'description' => 'Set the password of an otherwise already configured LDAP server.',
    'aliases' => [
      'lssp',
    ],
    'arguments' => [
      'ldap_sid' => 'The configured LDAP server ID.',
    ],
    'options' => [
      'password' => 'The password to set for the server.',
    ],
    'examples' => [
      'drush lssp LDAP_SERVER_ID --password="PASSWORD"' => 'Sets the password for LDAP_SERVER_ID. Replace LDAP_SERVER_ID with the "Machine name for this configuration." of
        the server found at /admin/config/people/ldap/servers, and replace PASSWORD with your password.',
    ],
  ];
  return $items;
}