@@ -11,9 +11,9 @@ import { sameKeyNameChoices } from './helpers';
11
11
import * as grouped_calls from './helper_grouped_calls' ;
12
12
import shared_conf from '../shared/conf' ;
13
13
14
- const ldap_base = "dc=univ,dc=fr" ;
14
+ const ldap_base = "dc=univ-paris1 ,dc=fr" ;
15
15
const ldap_main = {
16
- uri : [ 'ldap://ldap-test .univ.fr' ] ,
16
+ uri : [ 'ldap://ldap-pmf2 .univ-paris1.fr' , 'ldap://ldap-pth2.univ-paris1.fr' , 'ldap://ldap-pth1.univ-paris1 .fr'] ,
17
17
18
18
// empty for anonymous bind:
19
19
dn : 'cn=comptex,ou=admin,' + ldap_base ,
@@ -27,23 +27,24 @@ const ldap_main = {
27
27
base_rolesGeneriques : "ou=supannRoleGenerique,ou=tables," + ldap_base ,
28
28
base_etablissements : "ou=supannEtablissement,ou=tables," + ldap_base ,
29
29
30
- uid_to_eppn : "@univ.fr" ,
30
+ uid_to_eppn : "@univ-paris1 .fr" ,
31
31
} ;
32
32
33
33
const internal_organizations = [
34
34
'{UAI}0751717J' , // Univ Paris 1
35
35
'{UAI}0752719Y' , // SCD
36
+ '{UAI}0753364Z' , // IAE
36
37
] ;
37
38
38
39
const conf = {
39
40
maxLiveModerators : 100 ,
40
41
41
- mainUrl : 'https://comptex.univ.fr' + shared_conf . base_pathname . replace ( / \/ $ / , '' ) ,
42
+ mainUrl : 'https://comptex.univ-paris1 .fr' + shared_conf . base_pathname . replace ( / \/ $ / , '' ) ,
42
43
43
44
mail : {
44
- from : 'Assistance <assistance @univ.fr>' ,
45
- intercept :
'Admin <[email protected] >' ,
46
- transport : sendmailTransport ( { } ) ,
45
+ from : 'DSIUN Université Paris 1 Panthéon-Sorbonne <no-reply @univ-paris1 .fr>' ,
46
+ intercept :
'' , //' Admin <[email protected] >',
47
+ transport : sendmailTransport ( { path : '/usr/sbin/sendmail' } ) , // give sendmail with full path (since PATH may not have /usr/sbin/)
47
48
} ,
48
49
49
50
sv_ttl_days : 1 /*year*/ * 365 , // auto-purge after xxx days unmodified
@@ -53,15 +54,15 @@ const conf = {
53
54
} ,
54
55
55
56
esup_activ_bo : {
56
- url : "http://xxxx .univ.fr:8080/esup-activ-bo/" ,
57
+ url : "http://marmite .univ-paris1 .fr:8080/esup-activ-bo/" ,
57
58
} ,
58
59
59
60
esupUserApps : {
60
- url : '' , //' https://ent.univ.fr/EsupUserApps',
61
+ url : 'https://ent.univ-paris1 .fr/EsupUserApps' ,
61
62
} ,
62
63
63
64
ldap : {
64
- shibIdentityProvider : 'https://idp. univ.fr' ,
65
+ shibIdentityProvider : 'urn:mace:cru.fr:federation: univ-paris1 .fr' ,
65
66
66
67
...ldap_main ,
67
68
@@ -152,10 +153,13 @@ const conf = {
152
153
supannCodeINE : '' ,
153
154
154
155
termsOfUse : [ '' ] ,
156
+ supannConsentement : [ '' ] ,
155
157
supannListeRouge : '' ,
156
158
159
+ comment : '' , demandeUrl : '' ,
157
160
up1Profile : [ ] as any [ ] ,
158
- '{SMSU}CG' : '' , '{PHOTO}PUBLIC' : '' , '{PHOTO}INTRANET' : '' , '{PHOTO}STUDENT' : '' ,
161
+ '{SMSU}CG' : '' , '{PAGER}DISPLAY.FACULTY' : '' , '{PHOTO}PUBLIC' : '' , '{PHOTO}INTRANET' : '' , '{PHOTO}STUDENT' : '' ,
162
+ '{APPLI:OFFICE365}CGU' : '' ,
159
163
} ,
160
164
161
165
attrs : {
@@ -166,6 +170,8 @@ const conf = {
166
170
altGivenName : { ldapAttr : 'up1AltGivenName' } ,
167
171
floorNumber : { ldapAttr : 'up1FloorNumber' } ,
168
172
roomAccess : { ldapAttr : 'up1RoomAccess' } ,
173
+ comment : { ldapAttr : 'info;x-demande' } ,
174
+ demandeUrl : { ldapAttr : 'labeledURI' , convert : ldap_convert . withSuffixEtiquette ( ' {DEMANDE}' ) } ,
169
175
up1Profile : { convert : ldap_convert . up1Profile } ,
170
176
global_profilename : { ldapAttr : 'up1Profile' , convert : ldap_convert . up1Profile_field ( 'up1Source' ) } ,
171
177
profilename : { ldapAttr : 'up1Source' , ldapAttrJson : 'profilename' } ,
@@ -188,17 +194,25 @@ const conf = {
188
194
global_siham : { ldapAttr : 'supannRefId' , convert : ldap_convert . withEtiquette ( "{SIHAM}" ) } ,
189
195
jpegPhoto : { ldapAttr : 'jpegPhoto;base64' } ,
190
196
termsOfUse : { ldapAttr : 'up1TermsOfUse' } ,
191
- ..._ . fromPairs ( [ '{SMSU}CG' , '{PHOTO}PUBLIC' , '{PHOTO}INTRANET' , '{PHOTO}STUDENT' ] . map ( value =>
197
+ ..._ . fromPairs ( [ '{SMSU}CG' , '{PAGER}DISPLAY.FACULTY' , '{ PHOTO}PUBLIC', '{PHOTO}INTRANET' , '{PHOTO}STUDENT' ] . map ( value =>
192
198
[ value , { ldapAttr : 'up1TermsOfUse' , convert : ldap_convert . has_value ( value ) } ]
193
199
) ) ,
200
+ ..._ . fromPairs ( [ '{APPLI:OFFICE365}CGU' ] . map ( value =>
201
+ [ value , { ldapAttr : 'supannConsentement' , convert : ldap_convert . has_value ( value ) } ]
202
+ ) ) ,
194
203
} ,
195
204
supannCiviliteChoices : sameKeyNameChoices ( [ 'M.' , 'Mme' ] ) ,
196
205
197
206
mail_domains : [
207
+ 'univ-paris1.fr' ,
208
+ 'etu.univ-paris1.fr' ,
209
+ 'malix.univ-paris1.fr' ,
210
+ 'anciens.univ-paris1.fr' ,
211
+ 'bis-sorbonne.fr' ,
198
212
] as string [ ] ,
199
213
200
- homonymes_preferStudent : ( profilename : string ) => ! ! ( profilename || '' ) . match ( / ^ \{ C O M P T E X \} l e a r n e r \. / ) ,
201
- homonymes_restriction : '(objectClass=inetOrgPerson)' ,
214
+ homonymes_preferStudent : ( profilename : string ) => ! ! ( profilename || '' ) . match ( / ^ \{ C O M P T E X : F C \} l e a r n e r \. / ) ,
215
+ homonymes_restriction : '(&( objectClass=inetOrgPerson)(!(shadowFlag=2))(!(shadowFlag=8)))' // ignore dupes/deceased
202
216
} ,
203
217
204
218
group_cn_to_memberOf : ( cn : string ) => (
@@ -232,6 +246,7 @@ const conf = {
232
246
sn : 'sn' ,
233
247
givenName : 'givenName' ,
234
248
displayName : 'displayName' ,
249
+ supannEtablissement : 'supannEtablissement' ,
235
250
} ,
236
251
} ,
237
252
@@ -256,7 +271,7 @@ const conf = {
256
271
path : "/tmp"
257
272
} as session_file_store . Options ,
258
273
259
- trust_proxy : [ 'loopback' ] ,
274
+ trust_proxy : [ 'loopback' , /*ent-front*/ '193.55.96.44' , '2001:660:3305::44' ] ,
260
275
261
276
cas : {
262
277
ssoBaseURL : '' , //'https://cas.univ.fr/cas/',
0 commit comments