Ldapsearch

De Linuxmemo.

(Différences entre les versions)
Ligne 3 : Ligne 3 :
Client d'annuaire LDAP
Client d'annuaire LDAP
-
ldapsearch [options] "filtre" attrs [attib] [attib]...
+
ldapsearch [options] "filtre" attrib [attrib] [attrib]...
; Options:
; Options:

Version du 30 avril 2013 à 11:23


Client d'annuaire LDAP

ldapsearch [options] "filtre" attrib [attrib] [attrib]...

Options
   -LLL Affichage au format LDIF (sans commentaires, sans version LDIF)
   -x Authentification simple (sans utiliser SASL)
   -D dn DN de connexion
   -W Demande le mot de passe
   -h uri URI du serveur LDAP
   -b base Base de la recherche
   -s scope Etendue de la recherche (base, one, sub)
   -S "attr" trie selon l'attribut

Configuration

Fichiers: /etc/openldap/ldap.conf, .ldaprc


#
# LDAP Defaults
#
# See ldap.conf(5) for details
# This file should be world readable but not world writable.
#BASE    dc=example, dc=com
#URI    ldap://ldap.example.com ldap://ldap-master.example.com:666
#SIZELIMIT    12
TIMELIMIT   10   
#DEREF        never
TLS_REQCERT allow
BASE        dc=xxxx,dc=xxxx,dc=fr
URI            ldap://machine.domain.topdomain:389
BINDDN

Filtres

Voir: Ldap

Outils personnels