Linux user authentication with Microsoft LDAP

ldaplinux

I'm trying to do following things:

  1. Login to CentOS over ssh: authentication needs to happen with Microsoft Ldap
  2. On successful login create a home directory for user in /home if directory exists take him to his home directory
  3. Put quota on /home/user directory of 5 GB

Can someone please show me a link for Centos/redhat to authorize users with Microsoft Ldap?

I have already tried: setup command from root -> "Authentication configuration" -> "[] User Information -> Use Ldap" -> Authentication -> [] Use Ldap Authentication" -> []/[*] Use TLS -> Server: ldap://corporate.company.com -> Base DN: dc=corporate,dc=company,dc=com" This does not authentication users with Microsoft LDAP

Best Answer

The "authenticate linux user against AD" part was extensively covered here.
For part 2 of your question you will probably need to put a little script into your /etc/bash.bashrc file (if your users use bash, otherwise you'll need to find out which file is run for that user's particular shell). Same goes for part 3 of your question.