afolli Absent Member.
Absent Member.
282 views

Convert DN


Hi all,
a local variable of a driver contains a DN in slash format (
\idv\company\services\data\application\global ) and I need to convert it
to the LDAP format (
cn=GLOBAL,cn=Application,ou=Data,ou=Services,o=Company ). How can I
achieve this?

The ParseDN token does not add the identifier attribute and returns the
string "global,application,data,services,company" .


Code:
--------------------

<do-set-local-variable name="sub.variable.user.role.ldap" scope="policy">
<arg-string>
<token-lower-case>
<token-parse-dn dest-dn-format="ldap" src-dn-format="slash" start="1">
<token-local-variable name="current-node"/>
</token-parse-dn>
</token-lower-case>
</arg-string>
</do-set-local-variable>


--------------------


Any suggestion will be appreciated. Best regards,

Alessandro


--
afolli
------------------------------------------------------------------------
afolli's Profile: http://forums.novell.com/member.php?userid=6964
View this thread: http://forums.novell.com/showthread.php?t=450516

Labels (1)
0 Likes
2 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Convert DN

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This has come up a couple times in the past:

http://forums.novell.com/netiq/netiq-product-discussion-forums/identity-manager/im-engine-drivers/315011-reformat-dn-slash-ldap.html

http://forums.novell.com/netiq/netiq-product-discussion-forums/identity-manager/im-engine-drivers/351184-change-dest-dn-format-ldap-format.html

http://forums.novell.com/netiq/netiq-product-discussion-forums/identity-manager/im-engine-drivers/448212-calling-dnconverter-xpath.html

Good luck.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJPDFmEAAoJEF+XTK08PnB5blAP/3qi4pTHiZapq7d+y8b2pP46
gmHwuq/nrUPE+zgi4mjKPFtYmg2vllss5phNWIe68jH5q3FBxl7+9YAw4Iv0iKRU
JezAX8BF5bzDpE/L35342F4rgb27K0+u8HBNFdtwNWundx3LjlUgryX+5VVOgwP7
GXCMy2j29u1B3+Dl42YYtt4jdfrn1ABYSdHH6Lft0WS+EzF0niz8LQUICYa8wfdV
AUwIm9anuk05pBpt2gbDvdLdHbL0hP7dbNZArDw/Mx69+lcFfUHYMZBCqT1odUoq
/SeCBsZ4FiS58rhi1DrQiHzSdjLXbTspSRoj/4seZ46PyqGzqJGxkZun4zSfTCIt
u630VVa5d+DSUcaUXmqelO4E/8GLKkhO++baa2wvfcRyuinaTH7bMit+GmtOeiD3
OOh2Liaewv33WkjEYD2C45nYyJ/lLYGQCCkb7nQP7cogv8cr7TNtVDqabpchyKZJ
J9rUNaXzb/8NIe3MQRFTbBkSVtr0c0LGX0KSWDnT6jiVzp8YgNuVbvut8QKVgsEG
FmgAnx48KFIY4bEHAn1ot66VNcHC/DudfgsKtpnC7wWrXj/eJvwvZlfaM848ccUY
7b38L3A5IknAnVrXw064w7T5cK/tYgVMq4PBNjjkqPYW3N8Yq7idypTde9D/P57H
r08PTpP6Om5pSBKdT7DV
=GBeO
-----END PGP SIGNATURE-----
0 Likes
afolli Absent Member.
Absent Member.

Re: Convert DN


Thanks for the hint. Best regards,

Alessandro


ab;2166404 Wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> This has come up a couple times in the past:
>
> http://forums.novell.com/netiq/netiq-product-discussion-forums/identity-manager/im-engine-drivers/315011-reformat-dn-slash-ldap.html
>
> http://forums.novell.com/netiq/netiq-product-discussion-forums/identity-manager/im-engine-drivers/351184-change-dest-dn-format-ldap-format.html
>
> http://forums.novell.com/netiq/netiq-product-discussion-forums/identity-manager/im-engine-drivers/448212-calling-dnconverter-xpath.html
>
> Good luck.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.15 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - 'Enigmail: A simple interface for
> OpenPGP email security' (http://enigmail.mozdev.org/)
>
> iQIcBAEBAgAGBQJPDFmEAAoJEF+XTK08PnB5blAP/3qi4pTHiZapq7d+y8b2pP46
> gmHwuq/nrUPE+zgi4mjKPFtYmg2vllss5phNWIe68jH5q3FBxl7+9YAw4Iv0iKRU
> JezAX8BF5bzDpE/L35342F4rgb27K0+u8HBNFdtwNWundx3LjlUgryX+5VVOgwP7
> GXCMy2j29u1B3+Dl42YYtt4jdfrn1ABYSdHH6Lft0WS+EzF0niz8LQUICYa8wfdV
> AUwIm9anuk05pBpt2gbDvdLdHbL0hP7dbNZArDw/Mx69+lcFfUHYMZBCqT1odUoq
> /SeCBsZ4FiS58rhi1DrQiHzSdjLXbTspSRoj/4seZ46PyqGzqJGxkZun4zSfTCIt
> u630VVa5d+DSUcaUXmqelO4E/8GLKkhO++baa2wvfcRyuinaTH7bMit+GmtOeiD3
> OOh2Liaewv33WkjEYD2C45nYyJ/lLYGQCCkb7nQP7cogv8cr7TNtVDqabpchyKZJ
> J9rUNaXzb/8NIe3MQRFTbBkSVtr0c0LGX0KSWDnT6jiVzp8YgNuVbvut8QKVgsEG
> FmgAnx48KFIY4bEHAn1ot66VNcHC/DudfgsKtpnC7wWrXj/eJvwvZlfaM848ccUY
> 7b38L3A5IknAnVrXw064w7T5cK/tYgVMq4PBNjjkqPYW3N8Yq7idypTde9D/P57H
> r08PTpP6Om5pSBKdT7DV
> =GBeO
> -----END PGP SIGNATURE-----



--
afolli
------------------------------------------------------------------------
afolli's Profile: http://forums.novell.com/member.php?userid=6964
View this thread: http://forums.novell.com/showthread.php?t=450516

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.