mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 02:10:05 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
		
			629 B
		
	
	
	
		
			Django/Jinja
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			629 B
		
	
	
	
		
			Django/Jinja
		
	
	
	
	
	
| {# 
 | |
| @todo: activate
 | |
| {% for dn, entry in (applications | build_ldap_role_entries(users, ldap)).items() %}
 | |
| 
 | |
| dn: {{ dn }}
 | |
| {% for oc in entry.objectClass %}
 | |
| objectClass: {{ oc }}
 | |
| {% endfor %}
 | |
| {% if entry.ou is defined %}
 | |
| ou: {{ entry.ou }}
 | |
| {% else %}
 | |
| cn: {{ entry.cn }}
 | |
| {% endif %}
 | |
| {% if entry.gidNumber is defined %}
 | |
| gidNumber: {{ entry.gidNumber }}
 | |
| {% endif %}
 | |
| description: {{ entry.description }}
 | |
| {% if entry.memberUid is defined %}
 | |
| {% for uid in entry.memberUid %}
 | |
| memberUid: {{ uid }}
 | |
| {% endfor %}
 | |
| {% endif %}
 | |
| {% if entry.member is defined %}
 | |
| {% for m in entry.member %}
 | |
| member: {{ m }}
 | |
| {% endfor %}
 | |
| {% endif %}
 | |
| 
 | |
| {% endfor %}
 | |
| #} |