메뉴 건너뛰기

?

단축키

Prev이전 문서

Next다음 문서

가 크게 작게 위로 아래로 댓글로 가기
Extra Form
출처 https://docs.oracle.com/cd/B10501_01/net...mtools.htm
Oracle9i Directory Service Integration and Deployment Guide
Release 2 (9.2)

Part Number A96579-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to next page

B
LDAP Command-Line Tools

LDAP protocol operations are divided into three categories: authentication, interrogation, and update and control. The LDAP C-API provides a number of simple command-line tools that together cover all three categories.

The appendix covers the following topics:

LDAP Command-Line Tools

This section introduces six popular command-line tools. The section "Optional Arguments for Command-Line Tools", immediately following, defines the optional arguments used in the command descriptions and examples.

These are the six commands:


ldapbind

Use the command-line tool ldapbind to authenticate to a directory server. You can also use ldapbind to find out if the server is running.

Syntax

ldapbind [options]

Example

ldapbind -h myhost -p 389 -D "cn=orcladmin" -w welcome

This command authenticates user orcladmin to the directory server myhost located at port 389, using the password welcome.


ldapsearch

Use the command-line tool ldapsearch to search for specific entries in a directory. ldapsearch opens a connection to a directory, authenticates the user performing the operation, searches for the specified entry, and prints the result in a format that the user specifies.

Syntax

ldapsearch  [options]  filter [attributes]

Example

ldapsearch -h myhost -p 389 -s base -b "ou=people,dc=acme,dc=com" \ 
"objectclass=*"

This command searches the directory server myhost, located at port 389. The scope of the search (-s) is base, and the part of the directory searched is the base DN (-b) designated. The search filter "objectclass=*" means that values for all of the entry's object classes are returned. No attributes are returned because they have not been requested. The example assumes anonymous authentication because authentication options are not specified.


ldapadd

Use the command-line tool ldapadd to add entries to the directory. ldapadd opens a connection to the directory and authenticates the user. Then it opens the LDIF file supplied as an argument and adds, in succession, each entry in the file.

Syntax

ldapadd [options] [-f LDIF-filename]

Example

ldapadd -h myhost -p 389 -D "cn=orcladmin" -w welcome -f jhay.ldif

Using this command, user orcladmin authenticates to the directory myhost, located at port 389. The command then opens the file jhay.ldif and adds its contents to the directory. The file might, for example, add the entry uid=jhay,cn=Human Resources,cn=acme,dc=com and its object classes and attributes.

See Also:

"LDIF" for details about LDIF file syntax


ldapdelete

Use the command-line tool ldapdelete to remove leaf entries from a directory. ldapdelete opens a connection to a directory server and authenticates the user. Then it deletes specified entries.

Syntax

ldapdelete [options] "entry DN"

Example

ldapdelete -h myhost -p 389 -D "cn=orcladmin" -w welcome \
"uid=hricard,ou=sales,ou=people,dc=acme,dc=com"

This command authenticates user orcladmin to the directory myhost, using the password welcome. Then it deletes the entry uid=hricard,ou=sales,ou=people,dc=acme,dc=com.


ldapmodify

Use the command-line tool ldapmodify to modify existing entries. ldapmodify opens a connection to the directory and authenticates the user. Then it opens the LDIF file supplied as an argument and modifies the LDAP entries specified by the file.

ldapmodify uses a modified form of an LDIF file. Within the file itself, you use the attribute changetype to specify the type of change. An example is changetype: add.

Four types of changes are possible:

  • add--adds a new entry
  • modify--changes an existing entry, that is, it adds, deletes, or replaces attributes of the entry
  • delete--deletes an existing entry
  • modrdn--modifies the RDN of an existing entry

Syntax

ldapmodify [options] [-f LDIF-filename]

Example

ldapmodify -h myhost -p 389 -D "cn=orcladmin" -w welcome -f hricard.ldif

Using this command, user orcladmin authenticates to the directory myhost, located at port 389. The command then opens the file hricard.ldif and modifies the directory entries specified by the file. The file might, for example, change the telephone number attribute of entry uid=hricard,cn=sales,cn=acme,dc=com.


Note:

You can use ldapmodify instead of ldapadd and ldapdelete to add or delete entries.



ldapmoddn

Use the command-line tool ldapmoddn to:

  • change the RDN of an entry
  • move an entry or subtree to another location in the directory

Syntax

ldapmoddn [options] -b "current DN" -R "new RDN" -N "new Parent"

Example

ldapmoddn -h myhost -p 389 -D "cn=orcladmin" -w welcome \
-b "uid=oball,ou=sales,ou=people,dc=acme,dc=com" \
-N "ou=marketing,ou=people,dc=acme,dc=com"

This command authenticates user orcladmin to the directory myhost, using the password welcome. Then it assigns to the entry uid=oball,ou=sales,ou=people,dc=acme,dc=com a new parent entry, ou=marketing,ou=people,dc=acme,dc=com.

Optional Arguments for Command-Line Tools

Table B-1 defines the optional arguments used in the command descriptions and examples.

Table B-1 Commonly Used Command-Line Options
OptionDescription

-h

The host name of the directory server

-p

The port number of the directory server

-D

The bind DN--that is, the user authenticating to the directory

-w

The bind password in simple authentication

-W

Wallet location for one- or two-way SSL authentication

-P

Wallet password

-U

SSL authentication mode:

  • 1 for no authentication
  • 2 for one-way authentication
  • 3 for two-way authentication

-bFoot 1

The base DN for a search:

-sFoot 2

Search scope:

  • base--the entry requested
  • one--the entries just below the requested entry
  • sub--the entire subtree

-f

The LDIF file containing additions, deletions, or modifications

-R

New RDN

-N

New parent for an entry or subtree that is moved


  1. No Image

    LDAP / SSO Authentication

    Services Community Extensions Documentation Shop My TYPO3 Get TYPO3 LDAP / SSO Authenticationig_ldap_sso_auth / stable 5 This extension provides LDAP support for TYPO3 by delegating the authentication of frontend and/or backend users to the...
    Date2020.09.10 Reply0 Views1203
    Read More
  2. Oralce DB 백업(덤프) 하는 방법(exp, expdp툴 사용)

    Oralce DB 백업(덤프) 하는 방법(exp, expdp툴 사용)현수 deftkang 2020. 2. 14. 18:20 Oracle 10g 부터 데이터 백업과 복원을 위해 기존엔 exp/imp 툴이 있었는데 expdp/impdp 툴이 제공됐다. 11g 부터는 exp/imp 툴에 대한 사용 지원은 되지 않는다고 하는 ...
    Date2020.09.09 Reply0 Views787
    Read More
  3. No Image

    새로운 Oracle export/import 유틸리티 - Oracle Data Pump(exp...

    새로운 Oracle export/import 유틸리티 - Oracle Data Pump(expdp/impdp)프로그래밍/데이터베이스 2018. 4. 17. 19:55 Oracle 10g 부터는 데이터의 백업과 복원을 위해서 기존에 사용되는 exp/imp툴을 대신할 Oracle Data Pump(expdp/impdp) 유틸리티가 제공되...
    Date2020.09.09 Reply0 Views504
    Read More
  4. Oracle LDAP INSTALLATION AND CONFIGURATION

    LDAP INSTALLATION AND CONFIGURATIONThe LDAP Installation and Configuration consists of following topics: Using Oracle Unified Directory Creating Weblogic Domain for Oracle Unified Directory Creating the Attributes, Object Class, Users, Group...
    Date2020.09.09 Reply0 Views2113
    Read More
  5. LDAP Command-Line Tools - Oracle9i Directory Service Integr...

    Oracle9i Directory Service Integration and Deployment Guide Release 2 (9.2) Part Number A96579-01 Home Book List Contents Index Master Index Feedback B LDAP Command-Line ToolsLDAP protocol operations are divided into three categories: authen...
    Date2020.09.09 Reply0 Views2014
    Read More
  6. No Image

    CentOS 7 에 OpenLDAP 설치

    CentOS 7 에 OpenLDAP 설치
    Date2020.09.09 Reply0 Views540
    Read More
  7. No Image

    CentOS 7 에 Oracle 11g r2 설치 1/5

    CentOS 7 에 Oracle 11g r2 설치 1/5
    Date2020.09.09 Reply0 Views546
    Read More
  8. CentOS 6.2 에 Oracle 11g 설치

    CentOS 6.2 에 Oracle 11g 설치 - 레드햇 계열 리눅스(레드햇 엔터프라이즈, 페도라, CentOS) 동일 오라클 다운로드 오라클은 오라클 사이트에 회원가입후 다운로드 가능 (영리 목적이 아닌 테스트용도는 별도 라이센스 불필요) * 다운로드 사이트 (http://www...
    Date2020.09.09 Reply0 Views515 file
    Read More
  9. No Image

    Red Hat Enterprise Linux 7.x에서 Oracle 12c 릴리스 2 그리드...

    Red Hat Enterprise Linux 7.x에서 Oracle 12c 릴리스 2 그리드 및 RAC 데이터베이스를 구축하는 방법
    Date2020.09.09 Reply0 Views509
    Read More
  10. No Image

    OpenLDAP을 활용한 기반시스템 중앙 인증관리 #1

    OpenLDAP을 활용한 기반시스템 중앙 인증관리 #1openldap•Feb 25, 2016 지금까지 프로젝트 진행하면서 기반시스템(svn, jenkins, sonarqube, redmine, nexus...)은 개별 시스템 별로 유저를 관리하거나 admin 계정이나 다른 하나의 계정으로만 사용을 해왔었다...
    Date2020.09.07 Reply0 Views479
    Read More
  11. No Image

    OpenLDAP을 활용한 기반시스템 중앙 인증관리 #2

    OpenLDAP을 활용한 기반시스템 중앙 인증관리 #2openldap•Mar 11, 2016 OpenLDAP을 활용한 기반시스템 중앙 인증관리 #1에서 기반시스템과 연결을 위한 디렉토리 서비스를 구축하였다. 2편에서는 구축된 OpenLDAP 서비스를 활용하여 기반시스템을 인증처리 하...
    Date2020.09.07 Reply0 Views493
    Read More
  12. No Image

    LDAP 클라이언트를 사용하여 Oracle Directory Server Enterpri...

    LDAP 클라이언트를 사용하여 Oracle Directory Server Enterprise Edition 설정 이 장에서는 LDAP 클라이언트를 지원하도록 Oracle Directory Server Enterprise Edition을 구성하는 방법에 대해 설명합니다. 이 정보는 Oracle Directory Server Enterprise Ed...
    Date2020.08.25 Reply0 Views496
    Read More
  13. No Image

    LDAP (Lightweight Directory Access Protocol)

    LDAP (Lightweight Directory Access Protocol) LDAP는 조직이나, 개체, 그리고 인터넷이나 기업 내의 인트라넷 등 네트웍 상에 있는 파일이나 장치들과 같은 자원 등의 위치를 찾을 수 있게 해주는 소프트웨어 프로토콜이다. LDAP는 DAP의 경량판(코드의 량이...
    Date2020.08.25 Reply0 Views489
    Read More
  14. Splunk 기능 및 용어 설명

    Splunk 기능 및 용어 설명Splunk란 다양한 머신 데이터를 검색, 모니터링 및 경고, 보고 및 분석, 사용자 대시보드 생성이 가능하도록 하는 플랫폼이다. Splunk는 스키마를 사전에 정의하여 사용하지 않고 즉시 생성할 수 있고 RDMS가 불필요하고 필터링이 불...
    Date2020.08.18 Reply0 Views507 file
    Read More
  15. 세상을 바꾸는 Oracle 데이터베이스 - Oracle 변천사

    세상을 바꾸는 Oracle 데이터베이스 - Oracle 변천사
    Date2020.07.05 Reply0 Views510 file
    Read More
  16. MYSQL 일반적인 오류 해결 정보

    MYSQL 일반적인 오류 해결 정보 [참고 사이트] - MySQL 일반적인 오류를 해결하는 유용한 정보들 - [MySQL || MariaDB] System,SQL ERROR 모음 원인 및 해결 총 정리 - mysql DB 복원시 경고 메시지 해결 방법 1. 일반적인 오류를 해결하는 유용한 정보들 (1) ...
    Date2020.07.05 Reply0 Views502 file
    Read More
  17. 빅데이터분석 기사 자격증 생긴다...2020년 하반기 취득 가능

    빅데이터분석 기사 자격증 생긴다...내년 하반기 취득 가능 정부, '국가기술자격법 시행령 개정령안 국무회의서 의결 빅데이터분석기사 자격증이 새로 생긴다. 검정 위탁 기관 선정, 출제 기준 작성, 시험 문제 출제 등의 준비를 거쳐 내년 하반기부터 딸 수 ...
    Date2019.12.23 Reply0 Views491 file
    Read More
  18. QlikTech의 BI솔루션 QlikView

    QlikView (클릭뷰) QlikView (클릭뷰)를 만든 QlikTech 회사는 전혀 새로운 유형의 BI솔루션 소프트웨어를 공급하는 회사인 QlikTech은 1993년에 스웨덴에서 설립 되었고 미국에 본사가 있다. 통합한 믹스 인사이트 애널라이저는 시각적으로 호소력있고 역동...
    Date2019.12.22 Reply0 Views498 file
    Read More
  19. 한림대의료원, 임상정보 빅데이터 분석솔루션 도입 추진

    한림대의료원, 임상정보 빅데이터 분석솔루션 도입 추진 한림대학교의료원은 미소정보기술과 임상데이터 분석 솔루션인 'Smart CDW'(Clinical Data Warehouse)를 도입하기로 했다고 28일 밝혔다. 미소정보기술은 글로벌 기업 빅데이터 분석시스템 개발업체인 ...
    Date2019.12.22 Reply0 Views515 file
    Read More
  20. DW, DM, OLAP의 이해

    DW, DM, OLAP의 이해 BI를 구축하기 위해서는 알아야할 몇 가지 개념이 있습니다. 아래의 그림만 잘 이해할 수 있다면, 쉽게 이해가 될것입니다. 공장에서 생산한 물건은 도매시장으로 넘어 오게 됩니다. 도매시장에서 다시 소매시장인 슈퍼마켓 등에서 물건을...
    Date2019.11.18 Reply0 Views541 file
    Read More
목록
Board Pagination Prev 1 2 3 4 5 6 7 Next
/ 7