commit 5d16fafd23dd58f3cb3ef905a404354be40e8896 Author: Florian Best Date: Thu Aug 19 11:59:21 2021 +0200 Bug #53678: don't display domain components of path in reverse domain notation diff --git management/univention-management-console-module-udm/umc/python/udm/udm_ldap.py management/univention-management-console-module-udm/umc/python/udm/udm_ldap.py index 767717d9a2..63f68341ce 100644 --- management/univention-management-console-module-udm/umc/python/udm/udm_ldap.py +++ management/univention-management-console-module-udm/umc/python/udm/udm_ldap.py @@ -1167,7 +1167,7 @@ def ldap_dn2path(ldap_dn, include_rdn=True): return ldap_dn rel_path = ldap_dn[:-(1 + len(ldap_base))] rel_path = explode_dn(rel_path, True)[int(not include_rdn):] - return '%s:/%s' % ('.'.join(reversed(explode_dn(ldap_base, True))), '/'.join(reversed(rel_path))) + return '%s:/%s' % ('.'.join(explode_dn(ldap_base, True)), '/'.join(reversed(rel_path))) def get_module(flavor, ldap_dn, ldap_connection=None, ldap_position=None): diff --git management/univention-web/js/tools.js management/univention-web/js/tools.js index 2f456a5b9b..a381764aa0 100644 --- management/univention-web/js/tools.js +++ management/univention-web/js/tools.js @@ -1732,7 +1732,7 @@ define([ var dn_list = this.explodeDn( dn, true ).slice( 1 ); // format base - path = base_list.reverse().join( '.' ) + ':/'; + path = base_list.join( '.' ) + ':/'; if ( dn_list.length ) { path += dn_list.reverse().join( '/' ); }