Univention Bugzilla – Attachment 10805 Details for
Bug 53678
Don't display domain components of DN in reverse domain notation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch (git:fbest/53678-dn-path-reverse-domain-notation)
53678.patch (text/plain), 1.50 KB, created by
Florian Best
on 2021-08-19 11:59:39 CEST
(
hide
)
Description:
patch (git:fbest/53678-dn-path-reverse-domain-notation)
Filename:
MIME Type:
Creator:
Florian Best
Created:
2021-08-19 11:59:39 CEST
Size:
1.50 KB
patch
obsolete
>commit 5d16fafd23dd58f3cb3ef905a404354be40e8896 >Author: Florian Best <best@univention.de> >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( '/' ); > }
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 53678
:
10804
| 10805