openldap:ldapsearch

ldapsearch

ldapsearch [options] [filter [attributes...]]
 
ldapsearch -x -W -D 'cn=Manager,dc=zerotymer,dc=net' -b "" -s base -H ldap://localhost
  • ldapsearch [options] filter attribute
  • options
    • -b DN: base on DN
    • -f FILE: 검색 필터를 파일에서 불러오기
    • -s SCOPE: 검색 범위 지정. (sub | one | base)
    • -D DN: bind DN(지정된 사용자 자격증명으로 바인딩)
    • -w password: 비밀번호 입력
    • -W: 비밀번호 입력 프롬프트
    • -h HOST: LDAP HOST
    • -p PORT: LDAP PORT
    • -H URI: LDAP URI (ldap://localhost
    • -x: Simple authentication
    • -f FILE: 파일에서 비밀번호 불러오기
    • -L: 출력 표기 형식(default) overloads
  • filter
  • attribute 표기 대상 어트리뷰트
  • "(objectclass=*)" 모든 항목 검색
  • "(cn=babs jensen)": 특정 이름 검색
  • "(&(objectclass=person)(|sn=Jensen)(cn=Babs J*)))": 복합 필터 사용

ldapsearch

  • /home/u613600155/domains/cli.zerotymer.net/public_html/data/pages/openldap/ldapsearch.txt
  • 마지막으로 수정됨: 2025/01/14 08:08
  • 저자 writer