"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "web2ldap/app/plugins/ucs.py" between
web2ldap-1.6.4.tar.gz and web2ldap-1.6.5.tar.gz

About: web2ldap is a full-featured web-based LDAPv3 client.

ucs.py  (web2ldap-1.6.4):ucs.py  (web2ldap-1.6.5)
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
""" """
web2ldap plugin classes for Univention Corporate Server web2ldap plugin classes for Univention Corporate Server
""" """
import bz2 import bz2
from ..schema.syntaxes import ( from ..schema.syntaxes import (
Binary, Binary,
RFC822Address, RFC822Address,
DistinguishedName,
DynamicDNSelectList, DynamicDNSelectList,
MultilineText, MultilineText,
XmlValue,
syntax_registry, syntax_registry,
) )
from .msperson import DateOfBirth from .msperson import DateOfBirth
class UniventionPolicyReference(DynamicDNSelectList): class UniventionPolicyReference(DynamicDNSelectList):
oid: str = 'UniventionPolicyReference-oid' oid: str = 'UniventionPolicyReference-oid'
desc: str = 'DN of the univentionPolicy entry' desc: str = 'DN of the univentionPolicy entry'
ldap_url = 'ldap:///_?cn?sub?(objectClass=univentionPolicy)' ldap_url = 'ldap:///_?cn?sub?(objectClass=univentionPolicy)'
syntax_registry.reg_at( syntax_registry.reg_at(
skipping to change at line 40 skipping to change at line 42
'1.3.6.1.4.1.10176.99', # univentionBirthday '1.3.6.1.4.1.10176.99', # univentionBirthday
] ]
) )
syntax_registry.reg_at( syntax_registry.reg_at(
RFC822Address.oid, [ RFC822Address.oid, [
'1.3.6.1.4.1.10176.1010.1.1', # mailPrimaryAddress '1.3.6.1.4.1.10176.1010.1.1', # mailPrimaryAddress
] ]
) )
syntax_registry.reg_at(
DistinguishedName.oid, [
'1.3.6.1.4.1.10176.500.1.5', # univentionDnsForwardZone
'1.3.6.1.4.1.10176.500.1.6', # univentionDnsReverseZone
'1.3.6.1.4.1.10176.1000.11.1.2', # univentionNetworkLink
'1.3.6.1.4.1.10176.4200.4.2', # enabledServiceProviderIdentifierGroup
]
)
syntax_registry.reg_at(
XmlValue.oid, [
'1.3.6.1.4.1.10176.4200.1.14', # serviceProviderMetadata
]
)
class UniventionLDAPACLData(Binary, MultilineText): class UniventionLDAPACLData(Binary, MultilineText):
oid: str = 'UniventionLDAPACLData-oid' oid: str = 'UniventionLDAPACLData-oid'
desc: str = 'bzip2-ed LDAP ACL data in Univention' desc: str = 'bzip2-ed LDAP ACL data in Univention'
def display(self, vidx, links) -> str: def display(self, vidx, links) -> str:
attr_value = bz2.decompress(self._av) attr_value = bz2.decompress(self._av)
attr_value_u = self._app.ls.uc_decode(attr_value)[0] attr_value_u = self._app.ls.uc_decode(attr_value)[0]
lines = [ lines = [
self._app.form.s2d(l, tab_identiation=' ') self._app.form.s2d(l, tab_identiation=' ')
for l in self._split_lines(attr_value_u) for l in self._split_lines(attr_value_u)
 End of changes. 3 change blocks. 
0 lines changed or deleted 17 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)