ldap: Fixed group attribute mappings for older Ubuntu versions (<12.04).

This commit is contained in:
Timo Makinen 2014-01-21 17:56:24 +02:00
parent 3760f961f5
commit 8896fa28f8

View file

@ -16,12 +16,12 @@ map passwd gecos displayName
map passwd loginShell "${loginShell:-/bin/bash}"
map passwd homeDirectory "${unixHomeDirectory:-/home/$sAMAccountName}"
filter group (&(objectClass=group)(gidNumber=*))
<% if @operatingsystem == "CentOS" -%>
<% if @operatingsystem == "CentOS" or (@operatingsystem == "Ubuntu" and scope.function_versioncmp([@operatingsystemrelease, '12.04']) < 0) -%>
map group uniqueMember member
<% end -%>
<% else -%>
pagesize 500
<% if @operatingsystem != "CentOS" -%>
<% if @operatingsystem != "CentOS" and (@operatingsystem == "Ubuntu" and scope.function_versioncmp([@operatingsystemrelease, '12.04']) >= 0) -%>
map group member uniqueMember
<% end -%>
<% end -%>