ldap: Added gssapi and bind authentication support to nslcd.

This commit is contained in:
Timo Makinen 2014-01-22 01:41:20 +02:00
parent 8896fa28f8
commit 6d6e165dad
2 changed files with 67 additions and 1 deletions

View file

@ -25,6 +25,15 @@ pagesize 500
map group member uniqueMember
<% end -%>
<% end -%>
<% if @auth == 'bind' -%>
binddn <%= @credentials[0] %>
bindpw <%= @credentials[1] %>
<% elsif @auth == 'gssapi' -%>
sasl_mech GSSAPI
krb5_ccname FILE:/var/run/nslcd/krb5cc_nslcd
<% end -%>
<% if @ldap_uri =~ /^ldaps:/ -%>
ssl on