Prise en charge des sshfp, et switches pour adresse/téléphone
This commit is contained in:
parent
12ba81e272
commit
8ae5870468
3 changed files with 11 additions and 1 deletions
|
@ -3,13 +3,17 @@
|
|||
{{["aid=",o.aid.0]|join|coul('bleu')}} {{"Nom : "|coul('gras')}}{{o.prenom|join(' ')}} {{o.nom|join(' ')}}
|
||||
{% endblock%}
|
||||
{% block proprio %}
|
||||
{% if disp_telephone %}
|
||||
{{"Numéro de téléphone : "|coul('gras')}}{{o.tel|telephone|join(', ')}}
|
||||
{% endif %}
|
||||
{% if disp_adresse %}
|
||||
{% if o.chbre.0 == 'EXT' and o.postalAddress %}
|
||||
{{"Adresse : "|coul('gras')}}{{o.postalAddress.0}} {{o.postalAddress.1}}
|
||||
{{o.postalAddress.2}} {{o.postalAddress.3}}
|
||||
{% else %}
|
||||
{{"Chambre : "|coul('gras')}}{{o.chbre.0}} ({{o.chbre.0|string|prise_etat}})
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{{"Études : "|coul('gras')}}{{o.etudes|join(' ')}}
|
||||
{{adh}} {% if o.get('controle', []) and 'p' in o.controle.0.value %}{{"(OK)"|coul('vert')}}{% endif %}
|
||||
|
||||
|
|
|
@ -6,6 +6,9 @@
|
|||
{{"IPv4 : "|coul('gras')}}{{o.ipHostNumber|join(', ')}}
|
||||
{% if o.ip6HostNumber %}{{"IPv6 : "|coul('gras')}}{{o.ip6HostNumber|join(', ')}}
|
||||
{% endif %}
|
||||
{% if sshfp and o.sshFingerprint %}
|
||||
{{"Fingerprints SSH : "|coul('gras')}}{{o.sshFingerprint|join('\n ')}}
|
||||
{% endif %}
|
||||
{{"DnsIpv6 : "|coul('gras')}}{% if not o.dnsIpv6 or o.dnsIpv6.0.value %}
|
||||
{{"TRUE"|coul('vert')}}
|
||||
{% else %}
|
||||
|
|
|
@ -298,7 +298,10 @@ def blacklist(blacklist, params):
|
|||
|
||||
def sprint(object, historique=5, blacklist_len=5, **params):
|
||||
from lc_ldap import objets, attributs
|
||||
params.update({'historique':historique, "blacklist":blacklist_len})
|
||||
params.update({
|
||||
'historique': historique,
|
||||
'blacklist': blacklist_len,
|
||||
})
|
||||
if isinstance(object, objets.machine):
|
||||
return machine(object, params)
|
||||
elif isinstance(object, objets.adherent):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue