@@ -8,38 +8,56 @@ export {
88
99event krb_ap_request (c: connection, ticket: KRB::Ticket, opts: KRB::AP_Options)
1010 {
11- if ( ! c$krb?$community_id && c?$community_id )
12- c$krb$community_id = c$community_id;
11+ if ( c?$krb )
12+ {
13+ if ( ! c$krb?$community_id && c?$community_id )
14+ c$krb$community_id = c$community_id;
15+ }
1316 }
1417
1518event krb_ap_response (c: connection)
1619 {
17- if ( ! c$krb?$community_id && c?$community_id )
18- c$krb$community_id = c$community_id;
20+ if ( c?$krb )
21+ {
22+ if ( ! c$krb?$community_id && c?$community_id )
23+ c$krb$community_id = c$community_id;
24+ }
1925 }
2026
2127event krb_as_request (c: connection, msg: KRB::KDC_Request)
2228 {
23- if ( ! c$krb?$community_id && c?$community_id )
24- c$krb$community_id = c$community_id;
29+ if ( c?$krb )
30+ {
31+ if ( ! c$krb?$community_id && c?$community_id )
32+ c$krb$community_id = c$community_id;
33+ }
2534 }
2635
2736event krb_as_response (c: connection, msg: KRB::KDC_Response)
2837 {
29- if ( ! c$krb?$community_id && c?$community_id )
30- c$krb$community_id = c$community_id;
38+ if ( c?$krb )
39+ {
40+ if ( ! c$krb?$community_id && c?$community_id )
41+ c$krb$community_id = c$community_id;
42+ }
3143 }
3244
3345event krb_tgs_request (c: connection, msg: KRB::KDC_Request)
3446 {
35- if ( ! c$krb?$community_id && c?$community_id )
36- c$krb$community_id = c$community_id;
47+ if ( c?$krb )
48+ {
49+ if ( ! c$krb?$community_id && c?$community_id )
50+ c$krb$community_id = c$community_id;
51+ }
3752 }
3853
3954event krb_tgs_response (c: connection, msg: KRB::KDC_Response)
4055 {
41- if ( ! c$krb?$community_id && c?$community_id )
42- c$krb$community_id = c$community_id;
56+ if ( c?$krb )
57+ {
58+ if ( ! c$krb?$community_id && c?$community_id )
59+ c$krb$community_id = c$community_id;
60+ }
4361 }
4462
4563@endif
0 commit comments