Challenge the memory limit and implement LDAP user management (2)

Source: Internet
Author: User
Tags openldap
Article Title: Challenge the memory limit and implement LDAP user management (2 ). Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
   Configure the LDAP Client
  
Run the authconfig or authconfig-gtk command on the client to go to the authentication configuration page. Select the three options shown and click "Next" to configure the LDAP server information on the Interface shown.
  
The client automatically runs the nscd service after each startup. The service can be automatically executed by executing the ntsysv command or the "chkconfig-level 35 nscd on" command.
    
   Authentication configuration page
  
   Configure the server address
  
   Configure NFS server
  
It is easy to configure the NFS server. You only need to write the following line in the/etc/exports file:
  
/Home (rw)
  
Then, run the following command to enable the PortMap, NFS, and NFSLock services to run automatically:
  
# Chkconfig -- level 35 portmap on
# Chkconfig -- level 35 nfslock on
# Chkconfig -- level 35 nfs on
  
If NFS v4 is used, several RPC services need to be enabled.
  
   Configure NFS client
  
Add the following line to the/etc/fstab file of each machine:
  
Server:/home/homenfs defaults 1 1
  
Then, run the following command to enable the PortMap and NetFS services to run automatically:
  
# Chkconfig -- level 35 portmap on
# Chkconfig -- level 35 netfs on
  
If the NetFS service is not automatically opened, the client cannot mount the NFS volume at startup.
  
   Summary
  
After the configuration is complete, no matter which machine the user logs on, the password will be verified on the server, and the server itself can also use the OpenLDAP server for user authentication.
  
After a user logs on, the initial location is the/home/directory of the client, which is actually the/home/directory on the server. In this way, your documents are stored on the server. No matter where you log on, documents are always located in the same location.
  
All users' password information is stored in OpenLDAP Server, which can be maintained by the LDAP administrator or modified by the passwd command. However, it is not the/etc/shadow file and/etc/passwd file of the client, but the information in OpenLDAP Server.
  
Previously, this article was completed on Fedora Core 2. In other versions of Linux, the configuration may be slightly different, but the method used in this article is in Red Hat 7.2 ~ 9.0 and ThizLinux 6.0/7.0 are also valid.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.