際際滷

際際滷Share a Scribd company logo
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 ny 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 no, sau 坦 t狸m nh畛ng objectclass,
schema c坦 nh畛ng attribute ny.
 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 hnh
Linux/ UNIX.
 Ph鱈a server g畛m c坦 hai d畛ch v畛 ch鱈nh:
 slapd: standalone LDAP daemon. Daemon
ny l畉ng nghe c叩c request truy v畉n LDAP t畛
client, ti畉n hnh truy v畉n, v g畛i c但u tr畉 l畛i.
 slurpd: LDAP replication daemon. Daemon
ny 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

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 ny 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 no, sau 坦 t狸m nh畛ng objectclass, schema c坦 nh畛ng attribute ny. 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 hnh Linux/ UNIX. Ph鱈a server g畛m c坦 hai d畛ch v畛 ch鱈nh: slapd: standalone LDAP daemon. Daemon ny l畉ng nghe c叩c request truy v畉n LDAP t畛 client, ti畉n hnh truy v畉n, v g畛i c但u tr畉 l畛i. slurpd: LDAP replication daemon. Daemon ny 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