Ldapsearch
De Linuxmemo.
Version du 30 avril 2013 à 09:50 par Linuxmemo (discuter | contributions)
Client d'annuaire LDAP
ldapsearch [options] "filtre" attrs
- 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