File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
docker/rucio_client/scripts Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,12 @@ def rfc2253dn(legacy_dn: str, verbose: bool = False) -> str:
4444 # skips any DNs that don't have a attribute in the RFC_ATTRIBUTE_ORDER
4545 pass
4646
47+ # EWV This code from Dennis seems technically correct but we or Apache don't seem to follow it. OU/O can be swapped, ST can appear in odd places
4748 # sort existing attributes based on expected attribute order
48- result = [a [0 ] for a in sorted (zip (elements , attributes , indexes ), key = lambda x : x [2 ])]
49+ # result = [a[0] for a in sorted(zip(elements, attributes, indexes), key=lambda x: x[2])]
50+
51+ # Just reverse what was in the slash version
52+ result = elements
4953
5054 if verbose :
5155 print (f"original: { legacy_dn } \n indexes: { indexes } \n converted: { ',' .join (result )} " )
You can’t perform that action at this time.
0 commit comments