LDAP server: 10.0.1.11
User directory: 10.0.1.11:/rhome
LDAP user: kevin
Solution 1: use nfs to mount to another machine
Server:
(1) vi /etc/exports
/home 10.0.1.0/24 (rw)
(2) service nfs restart
Client:
(1) use root's account
mount 10.0.1.11:/rhome /home
(2) use ldap user kevin to login
Solution 2: use autofs with LDAP server
Server:
(1) vi /etc/exports
/home 10.0.1.0/24 (rw)
(2) service nfs restart
(3) Add LDAP Data
homeDirectory: /home/rhome/kevin
nisMapEntry: -w,hard,intr 10.0.1.11:/rhome/kevin
nisMapName: auto.misc
objectClass: nisObject
Client:
(1) vi /etc/auto.master
/home/rhome ldap:10.0.1.11:dc=osa,dc=com --timeout=60
This will automatically make a virtual directory which name
is the same as cn, namely, /home/rhome/kevin
(2) service autofs restart
(3) use kevin to login
ps. To add the nisObject with the /etc/passwd migration results,
we may need to change the schema /etc/openldap/schema/nis.schema:
objectclass ( 1.3.6.1.1.1.2.10 NAME 'nisObject'
DESC 'An entry in a NIS map'
SUP top AUXILIARY
MUST ( cn $ nisMapEntry $ nisMapName )
MAY description )
The 3rd line changed from "SUP top STRUCTURAL" to "SUP top AUXILIARY".
Blog Archive
-
▼
2006
(19)
-
▼
December
(19)
- Use OpenSSL to Get Hash Values
- Linux Hostname
- Linux File Access Permissions
- LDAP with TLS
- Home Directory Solution for LDAP Linux Users
- LDAP Replica
- LDAP Partition
- Linux 開機時設定
- 提示符號含所在路徑
- Fedora 5 Console Font
- LDAP vs. Linux Account
- LDAP - osa_top.ldif
- LDAP - top.ldif
- LDAP vs. Outlook Express - kevin.ldif
- LDAP vs. Outlook Express - userdefine.schema
- RedHat RPM
- OpenLDAP 指令
- Certification
- 進階 vi 教學
-
▼
December
(19)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment