SlideShare a Scribd company logo
1 of 12
1
16 LDAP16 LDAP
P3 Intranet servicesP3 Intranet services
2
Nội dungNội dung
 Giới thiệu Network Directory
 Giới thiệu LDAP protocol
 Cấu trúc lưu trữ LDAP Directory
 Giới thiệu Openldap
 server side daemon
 client side command
3
Network DirectoryNetwork Directory
 Network directory là một cấu trúc dùng để tổ
chức lưu trữ theo dạng phân cấp hình cây.
 Network directory được tổ chức để thuận tiện
nhất cho việc đọc và tìm kiếm.
 Nếu ứng dụng cần nhiều thao tác insert,
update thì không nên lưu trữ theo kiểu
network directory.
 X.500 là một network directory.
4
Giới thiệu LDAP protocolGiới thiệu LDAP protocol
 Để truy vấn network directory, người ta đã sử dụng
giao thức DAP – Directory Access Protocol.
 Giao thức này qui định một tập lệnh giao tiếp giữa
client và server lưu trữ (network directory) để truy
vấn dữ liệu cần thiết.
 DAP hoạt động dựa trên giao thức OSI.
 LDAP – Lightweight Directory Access Protocol là giao
thức ra đời để thay thế DAP.
 LDAP định nghĩa một tập lệnh giao tiếp giữa
client/server dựa trên giao thức TCP để truy vấn dữ
liệu directory.
5
LDAP protocol (tt)LDAP protocol (tt)
6
LDAP directoryLDAP directory
uid=babs, ou=people,
dc=example, dc=com
DN: Distinguished Name
RDN: Relative Distinguished Name
7
 cn=gerald carter, ou=people, dc=plainjoe, dc=com
LDAP directory (tt)LDAP directory (tt)
attribute
entry
8
LDAP directory (tt)LDAP directory (tt)
 Những schema và objectclass thường được
dùng đều đã được định nghĩa sẵn trong RFC.
 Khi muốn định nghĩa một cấu trúc cây thư
mục, phân tích, quyết định cần những
attribute nào, sau đó tìm những objectclass,
schema có những attribute này.
 Từ đó, xây dựng nên cấu trúc cây thư mục.
 Nếu không có schema thỏa mãn yêu cầu, có
thể định nghĩa schema, objectclass mới.
9
LDAP directory (tt)LDAP directory (tt)
10
OPENLDAP (tt)OPENLDAP (tt)
 Openldap là phần mềm mã nguồn mở, dùng
để hiện thực LDAP chạy trên hệ điều hành
Linux/ UNIX.
 Phía server gồm có hai dịch vụ chính:
 slapd: standalone LDAP daemon. Daemon
này lắng nghe các request truy vấn LDAP từ
client, tiến hành truy vấn, và gởi câu trả lời.
 slurpd: LDAP replication daemon. Daemon
này dùng để đồng bộ những thay đổi từ LDAP
master server sang LDAP slave server.
11
OPENLDAP (tt)OPENLDAP (tt)
 Để truy vấn LDAP, client dùng những lệnh
sau:
 ldapadd: thêm một entry mới.
 ldapmodify: chỉnh sửa thông tin một entry.
 ldapdelete: xóa một entry.
 ldapmodrdn: chỉnh sửa RDN của entry.
 ldapsearch: tìm kiếm thông tin entry.
12
Hỏi & ĐápHỏi & Đáp

More Related Content

Similar to 16 ldap server

Apache thrift
Apache thriftApache thrift
Apache thriftducdv
 
Linq n hibernate net-tier
Linq n hibernate net-tierLinq n hibernate net-tier
Linq n hibernate net-tierNguyen Tran
 
Slide thuyết trình và tìm hiểu về DNS
Slide thuyết trình và tìm hiểu về    DNSSlide thuyết trình và tìm hiểu về    DNS
Slide thuyết trình và tìm hiểu về DNStribo389
 
Lab 4 active directory domain services
Lab 4 active directory domain services Lab 4 active directory domain services
Lab 4 active directory domain services Pham Viet Dung
 
Lab 4 active directory domain services
Lab 4 active directory domain services Lab 4 active directory domain services
Lab 4 active directory domain services tinhban269
 
Linux thietlaphethongmangubunt-45879
Linux thietlaphethongmangubunt-45879Linux thietlaphethongmangubunt-45879
Linux thietlaphethongmangubunt-45879Son Giap
 
1 giới thiệu-cài đặt oracle
1 giới thiệu-cài đặt oracle1 giới thiệu-cài đặt oracle
1 giới thiệu-cài đặt oraclehoangdinhhanh88
 
Hadoop là gì
Hadoop là gìHadoop là gì
Hadoop là gìHLV
 
Hadoop là gì
Hadoop là gìHadoop là gì
Hadoop là gìHLV
 
Hadoop trong triển khai Big Data
Hadoop trong triển khai Big DataHadoop trong triển khai Big Data
Hadoop trong triển khai Big DataNguyễn Duy Nhân
 
Python Beginner Class day-11-12-13-database
Python Beginner Class day-11-12-13-databasePython Beginner Class day-11-12-13-database
Python Beginner Class day-11-12-13-databaseKhánh Nguyễn
 
Bài 5: Làm quen với lập trình CSDL ASP.NET - Giáo trình FPT - Có ví dụ kèm theo
Bài 5: Làm quen với lập trình CSDL ASP.NET - Giáo trình FPT - Có ví dụ kèm theoBài 5: Làm quen với lập trình CSDL ASP.NET - Giáo trình FPT - Có ví dụ kèm theo
Bài 5: Làm quen với lập trình CSDL ASP.NET - Giáo trình FPT - Có ví dụ kèm theoMasterCode.vn
 
Lưu trữ và xử lý dữ liệu trong điện toán đám mây
Lưu trữ và xử lý dữ liệu trong điện toán đám mâyLưu trữ và xử lý dữ liệu trong điện toán đám mây
Lưu trữ và xử lý dữ liệu trong điện toán đám mâyPhamTuanKhiem
 
LINQ TO XML
LINQ TO XMLLINQ TO XML
LINQ TO XMLbiendltb
 
RADIUS - a report project's course at university
RADIUS - a report project's course at universityRADIUS - a report project's course at university
RADIUS - a report project's course at universityHoàng Tuấn Lê
 
Hệ thống quản lý và phân tích log tập trung elk stack
Hệ thống quản lý và phân tích log tập trung elk stackHệ thống quản lý và phân tích log tập trung elk stack
Hệ thống quản lý và phân tích log tập trung elk stacklaonap166
 

Similar to 16 ldap server (20)

Apache thrift
Apache thriftApache thrift
Apache thrift
 
Linq n hibernate net-tier
Linq n hibernate net-tierLinq n hibernate net-tier
Linq n hibernate net-tier
 
Dsd05 02a-xml-rpca
Dsd05 02a-xml-rpcaDsd05 02a-xml-rpca
Dsd05 02a-xml-rpca
 
Slide thuyết trình và tìm hiểu về DNS
Slide thuyết trình và tìm hiểu về    DNSSlide thuyết trình và tìm hiểu về    DNS
Slide thuyết trình và tìm hiểu về DNS
 
Lab 4 active directory domain services
Lab 4 active directory domain services Lab 4 active directory domain services
Lab 4 active directory domain services
 
Lab 4 active directory domain services
Lab 4 active directory domain services Lab 4 active directory domain services
Lab 4 active directory domain services
 
Linux thietlaphethongmangubunt-45879
Linux thietlaphethongmangubunt-45879Linux thietlaphethongmangubunt-45879
Linux thietlaphethongmangubunt-45879
 
1 giới thiệu-cài đặt oracle
1 giới thiệu-cài đặt oracle1 giới thiệu-cài đặt oracle
1 giới thiệu-cài đặt oracle
 
Hadoop là gì
Hadoop là gìHadoop là gì
Hadoop là gì
 
Hadoop là gì
Hadoop là gìHadoop là gì
Hadoop là gì
 
Hadoop trong triển khai Big Data
Hadoop trong triển khai Big DataHadoop trong triển khai Big Data
Hadoop trong triển khai Big Data
 
Hadoop
HadoopHadoop
Hadoop
 
Ftp clientserver
Ftp clientserverFtp clientserver
Ftp clientserver
 
Python Beginner Class day-11-12-13-database
Python Beginner Class day-11-12-13-databasePython Beginner Class day-11-12-13-database
Python Beginner Class day-11-12-13-database
 
Bài 5: Làm quen với lập trình CSDL ASP.NET - Giáo trình FPT - Có ví dụ kèm theo
Bài 5: Làm quen với lập trình CSDL ASP.NET - Giáo trình FPT - Có ví dụ kèm theoBài 5: Làm quen với lập trình CSDL ASP.NET - Giáo trình FPT - Có ví dụ kèm theo
Bài 5: Làm quen với lập trình CSDL ASP.NET - Giáo trình FPT - Có ví dụ kèm theo
 
Lưu trữ và xử lý dữ liệu trong điện toán đám mây
Lưu trữ và xử lý dữ liệu trong điện toán đám mâyLưu trữ và xử lý dữ liệu trong điện toán đám mây
Lưu trữ và xử lý dữ liệu trong điện toán đám mây
 
LINQ TO XML
LINQ TO XMLLINQ TO XML
LINQ TO XML
 
RADIUS - a report project's course at university
RADIUS - a report project's course at universityRADIUS - a report project's course at university
RADIUS - a report project's course at university
 
Quản trị mạng_ Chương 4-5
Quản trị mạng_ Chương 4-5Quản trị mạng_ Chương 4-5
Quản trị mạng_ Chương 4-5
 
Hệ thống quản lý và phân tích log tập trung elk stack
Hệ thống quản lý và phân tích log tập trung elk stackHệ thống quản lý và phân tích log tập trung elk stack
Hệ thống quản lý và phân tích log tập trung elk stack
 

More from Cơn Gió

19 web server
19  web server19  web server
19 web serverCơn Gió
 
18 dns server
18  dns server18  dns server
18 dns serverCơn Gió
 
17 ftp & ssh server
17  ftp & ssh server17  ftp & ssh server
17 ftp & ssh serverCơn Gió
 
15 nis server
15  nis server15  nis server
15 nis serverCơn Gió
 
13 samba nfs server
13  samba nfs server13  samba nfs server
13 samba nfs serverCơn Gió
 
12 dhcp server
12  dhcp server12  dhcp server
12 dhcp serverCơn Gió
 
11 networking fundamentals
11  networking fundamentals11  networking fundamentals
11 networking fundamentalsCơn Gió
 
10 compiling kernel
10  compiling kernel10  compiling kernel
10 compiling kernelCơn Gió
 
09 core system services
09  core system services09  core system services
09 core system servicesCơn Gió
 
08 file systems
08  file systems08  file systems
08 file systemsCơn Gió
 
07 booting and shutting down
07  booting and shutting down07  booting and shutting down
07 booting and shutting downCơn Gió
 
06 the command line
06  the command line06  the command line
06 the command lineCơn Gió
 
05 managing users
05  managing users05  managing users
05 managing usersCơn Gió
 
04 installing software
04  installing software04  installing software
04 installing softwareCơn Gió
 
03 installing linux as a server
03  installing linux as a server03  installing linux as a server
03 installing linux as a serverCơn Gió
 
02 technical summary of linux distribution
02  technical summary of linux distribution02  technical summary of linux distribution
02 technical summary of linux distributionCơn Gió
 
01 introduction
01  introduction01  introduction
01 introductionCơn Gió
 

More from Cơn Gió (18)

19 web server
19  web server19  web server
19 web server
 
18 dns server
18  dns server18  dns server
18 dns server
 
17 ftp & ssh server
17  ftp & ssh server17  ftp & ssh server
17 ftp & ssh server
 
15 nis server
15  nis server15  nis server
15 nis server
 
14 pam
14  pam14  pam
14 pam
 
13 samba nfs server
13  samba nfs server13  samba nfs server
13 samba nfs server
 
12 dhcp server
12  dhcp server12  dhcp server
12 dhcp server
 
11 networking fundamentals
11  networking fundamentals11  networking fundamentals
11 networking fundamentals
 
10 compiling kernel
10  compiling kernel10  compiling kernel
10 compiling kernel
 
09 core system services
09  core system services09  core system services
09 core system services
 
08 file systems
08  file systems08  file systems
08 file systems
 
07 booting and shutting down
07  booting and shutting down07  booting and shutting down
07 booting and shutting down
 
06 the command line
06  the command line06  the command line
06 the command line
 
05 managing users
05  managing users05  managing users
05 managing users
 
04 installing software
04  installing software04  installing software
04 installing software
 
03 installing linux as a server
03  installing linux as a server03  installing linux as a server
03 installing linux as a server
 
02 technical summary of linux distribution
02  technical summary of linux distribution02  technical summary of linux distribution
02 technical summary of linux distribution
 
01 introduction
01  introduction01  introduction
01 introduction
 

16 ldap server

  • 1. 1 16 LDAP16 LDAP P3 Intranet servicesP3 Intranet services
  • 2. 2 Nội dungNội dung  Giới thiệu Network Directory  Giới thiệu LDAP protocol  Cấu trúc lưu trữ LDAP Directory  Giới thiệu Openldap  server side daemon  client side command
  • 3. 3 Network DirectoryNetwork Directory  Network directory là một cấu trúc dùng để tổ chức lưu trữ theo dạng phân cấp hình cây.  Network directory được tổ chức để thuận tiện nhất cho việc đọc và tìm kiếm.  Nếu ứng dụng cần nhiều thao tác insert, update thì không nên lưu trữ theo kiểu network directory.  X.500 là một network directory.
  • 4. 4 Giới thiệu LDAP protocolGiới thiệu LDAP protocol  Để truy vấn network directory, người ta đã sử dụng giao thức DAP – Directory Access Protocol.  Giao thức này qui định một tập lệnh giao tiếp giữa client và server lưu trữ (network directory) để truy vấn dữ liệu cần thiết.  DAP hoạt động dựa trên giao thức OSI.  LDAP – Lightweight Directory Access Protocol là giao thức ra đời để thay thế DAP.  LDAP định nghĩa một tập lệnh giao tiếp giữa client/server dựa trên giao thức TCP để truy vấn dữ liệu directory.
  • 5. 5 LDAP protocol (tt)LDAP protocol (tt)
  • 6. 6 LDAP directoryLDAP directory uid=babs, ou=people, dc=example, dc=com DN: Distinguished Name RDN: Relative Distinguished Name
  • 7. 7  cn=gerald carter, ou=people, dc=plainjoe, dc=com LDAP directory (tt)LDAP directory (tt) attribute entry
  • 8. 8 LDAP directory (tt)LDAP directory (tt)  Những schema và objectclass thường được dùng đều đã được định nghĩa sẵn trong RFC.  Khi muốn định nghĩa một cấu trúc cây thư mục, phân tích, quyết định cần những attribute nào, sau đó tìm những objectclass, schema có những attribute này.  Từ đó, xây dựng nên cấu trúc cây thư mục.  Nếu không có schema thỏa mãn yêu cầu, có thể định nghĩa schema, objectclass mới.
  • 9. 9 LDAP directory (tt)LDAP directory (tt)
  • 10. 10 OPENLDAP (tt)OPENLDAP (tt)  Openldap là phần mềm mã nguồn mở, dùng để hiện thực LDAP chạy trên hệ điều hành Linux/ UNIX.  Phía server gồm có hai dịch vụ chính:  slapd: standalone LDAP daemon. Daemon này lắng nghe các request truy vấn LDAP từ client, tiến hành truy vấn, và gởi câu trả lời.  slurpd: LDAP replication daemon. Daemon này dùng để đồng bộ những thay đổi từ LDAP master server sang LDAP slave server.
  • 11. 11 OPENLDAP (tt)OPENLDAP (tt)  Để truy vấn LDAP, client dùng những lệnh sau:  ldapadd: thêm một entry mới.  ldapmodify: chỉnh sửa thông tin một entry.  ldapdelete: xóa một entry.  ldapmodrdn: chỉnh sửa RDN của entry.  ldapsearch: tìm kiếm thông tin entry.

Editor's Notes

  1. Trung Tâm Đào tạo Mạng Máy Tính NHẤT NGHỆ Người biên soạn: Phạm Trần Kim Chi