Univention Bugzilla – Attachment 11080 Details for
Bug 56247
Join fails if objectClass or attributeType in LDAP schema >2000bytes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
wrap_schema.conf.diff (text/plain), 1.19 KB, created by
Lukas Zumvorde
on 2023-07-03 11:25:02 CEST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Lukas Zumvorde
Created:
2023-07-03 11:25:02 CEST
Size:
1.19 KB
patch
obsolete
>diff --git a/management/univention-directory-listener/tools/univention-get-ldif-from-master.py b/management/univention-directory-listener/tools/univention-get-ldif-from-master.py >index ab5281bf18..cf8e700fcc 100755 >--- a/management/univention-directory-listener/tools/univention-get-ldif-from-master.py >+++ b/management/univention-directory-listener/tools/univention-get-ldif-from-master.py >@@ -40,6 +40,7 @@ import optparse > import os > import sys > from typing import IO # noqa F401 >+import textwrap > > import ldap > import ldif >@@ -64,13 +65,15 @@ def _update_schema(fp, attr): > if oid in OIDS: > continue > obj = subschema.get_obj(ldap.schema.AttributeType, oid) >- fp.write('attributetype %s\n' % (obj,)) >+ obj_wraped = "\n ".join(textwrap.wrap(obj, 1500, break_long_words=False)) >+ fp.write('attributetype %s\n' % (obj_wraped,)) > > for oid in replication.subschema_sort(subschema, ldap.schema.ObjectClass): > if oid in OIDS: > continue > obj = subschema.get_obj(ldap.schema.ObjectClass, oid) >- fp.write('objectclass %s\n' % (obj,)) >+ obj_wraped = "\n ".join(textwrap.wrap(obj, 1500, break_long_words=False)) >+ fp.write('objectclass %s\n' % (obj_wraped,)) > > > def update_schema(lo):
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 56247
: 11080