Univention Bugzilla – Attachment 9393 Details for
Bug 46292
4.3 master, 4.2 backup with s4connector, connector on backup segfaults
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
univention-samba4.patch
univention-samba4.patch (text/plain), 1.09 KB, created by
Felix Botner
on 2018-02-16 11:32:50 CET
(
hide
)
Description:
univention-samba4.patch
Filename:
MIME Type:
Creator:
Felix Botner
Created:
2018-02-16 11:32:50 CET
Size:
1.09 KB
patch
obsolete
>diff --git a/services/univention-samba4/s4search-decode b/services/univention-samba4/s4search-decode >index 68ae51c..549af97 100755 >--- a/services/univention-samba4/s4search-decode >+++ b/services/univention-samba4/s4search-decode >@@ -48,6 +48,7 @@ from samba.ndr import ndr_print > from datetime import datetime > > context = None >+permitted_enctypes = [] > > keytypes = { > 1: 'des_crc', >@@ -74,10 +75,20 @@ def decode_unicodePwd(value, kvno=0): > > > def decode_krb5Key(value): >+ global context >+ global permitted_enctypes >+ if not context: >+ context = heimdal.context() >+ if not permitted_enctypes: >+ for enc in context.get_permitted_enctypes(): >+ permitted_enctypes.append(enc.toint()) > k = binascii.a2b_base64(value) > (keyblock, salt, kvno) = heimdal.asn1_decode_key(k) > enctype = keyblock.keytype() > enctype_id = enctype.toint() >+ if enctype_id not in permitted_enctypes: >+ print "#\tSKIPPING ENC type %s, not support by heimdal" % enctype_id >+ return > print "#\tkrb5_keytype: %s (%d)" % (enctype, enctype_id) > key_data = keyblock.keyvalue() > print "#\tkeyblock: ", binascii.b2a_base64(key_data).strip()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 46292
:
9391
|
9392
| 9393