Projet

Général

Profil

eole-client-annuaire-nsswitch.patch

christophe guerinot, 05/12/2013 15:54

Télécharger (1,87 ko)

Voir les différences:

tmpl/nsswitch.conf
10 10
# /etc/nsswitch.conf
11 11

  
12 12
%set %%active_ldap = 'non'
13
%set %%active_winbind = getVar('activer_winbind', 'non')
13 14

  
14 15
# cas Amon sans AmonEcole
15 16
%if %%is_defined('activer_nufw') and  %%activer_client_ldap == 'non'
......
17 18
%set %%active_ldap = 'oui'
18 19
%end if
19 20
%else
20
%if %%is_defined('activer_client_ldap') and %%activer_client_ldap != 'non' and %%ldap_nss == 'oui'
21
%if %%getVar('activer_client_ldap', 'non') != 'non' and %%ldap_nss == 'oui'
21 22
%set %%active_ldap = 'oui'
22 23
%end if
23 24
%end if
......
27 28
%if %%active_ldap == 'oui'
28 29
ldap %slurp
29 30
%end if
31
%if %%active_winbind == 'oui'
32
winbind %slurp
33
%end if
30 34

  
31 35
group:          compat %slurp
32 36
%if %%active_ldap == 'oui'
33 37
ldap %slurp
34 38
%end if
39
%if %%active_winbind == 'oui'
40
winbind %slurp
41
%end if
35 42

  
36 43
shadow:         compat %slurp
37 44
%if %%active_ldap == 'oui'
38 45
ldap %slurp
39 46
%end if
47
%if %%active_winbind == 'oui'
48
winbind %slurp
49
%end if
40 50

  
41
hosts:          files dns
51
hosts:          files dns %slurp
52
%if %%active_winbind == 'oui'
53
wins
54
%end if
42 55

  
43 56
bootparams: nisplus [NOTFOUND=return] files
44 57

  
......
55 68

  
56 69
automount:  files nisplus
57 70
aliases:    files nisplus
58

  
59
-