%echo "#%PAM-1.0\n"
%if %%getVar('ftp_pam_ldap', 'non') == 'oui'
 %if %%getVar('ftp_pam_sso', 'non') == 'oui'
  %if %%container_ip_ftp != '127.0.0.1'
   %set %%adresse = %%container_ip_ftp
  %else
   %set %%adresse = %%adresse_ip_eth0
  %end if
auth sufficient /lib/security/pam_cas.so -sftp://%%adresse -f/etc/pam_cas.conf
 %end if
auth     sufficient      pam_winbind.so
%end if
@include login
