pam_ldap.conf.erb added in template and added the required entries for pam_ldap.conf.erb in auth.rb. Also in nslcd.conf.erb set ssl no