HTTP/1.1 200 OK Date: Thu, 09 Sep 2010 17:52:32 GMT Server: Apache Content-Length: 3957 Connection: close Content-Type: text/html; charset=iso-8859-1
Home About Us Products Customers Partners Events News Contact Us Download Demo Support
Nordic Edge Knowledge Base

Knowledgebase Home | Glossary | Favorites | Login Knowledgebase Home | Glossary | Favorites | Login
Search the Knowledgebase Browse by Category
NSD1041 Create a URL link to an object
Article Details

Last Updated
31st o January, 2008

Fact

Creating an URL link to an user or any object

 

Situation

Creating a URL link to an object is not an out of the box feature of NordicEdge Identity Manager version 3
It can hower be easily created with a simple filter

 

Description

The objects DN must be both Base64 and URL encoded before putting into the URL. This can be done by calling the method:

B64andURLencodeString in the class se.nordicedge.servlets.NEIDMgmtUtils. Put the encoded link in the parameter browseToAndOpenDN then use the parameter action=browseFrame, example:
https://www.myneimmachine.com/nordicedge/NEIDMgmt?action=browseFrame&browseToAndOpenDN=aswq1wed22s2s2s

Example of the filter: 

    /**
     * Generate URL to the an Object DN
     * @param host The im host name
     * @param isSSL If https is being used
     * @param webApp The tomcat webapp name (usually nordicedge)
     * @param objectDN The DN to encode
     * @return the full URL
     */
    public String getURLToObjectDN(String host, boolean isSSL, String webApp, String objectDN){
        String url="http://";
        if(isSSL)
            url="https://";
        url=url+host+"/"+webApp+"/NEIDMgmt?action=browseFrame&browseToAndOpenDN=";
        se.nordicedge.servlets.NEIDMgmtUtils encoder = new se.nordicedge.servlets.NEIDMgmtUtils();      
        objectDN=encoder.B64andURLencodeString(objectDN, false);
        return url+objectDN;       
    }


 

 

Disclaimer

The Origin of this information may be internal or external to NordicEdge. NordicEdge makes all reasonable efforts to verify this information. However, the information provided in this document is for your information only. NordicEdge makes no explicit or implied claims to the validity of this information.
Any trademarks referenced in this document are the property of their respective owners.
Consult your product manuals for complete trademark information.
Visitor Comments
No visitor comments posted. Post a comment
Post Comment for "NSD1041 Create a URL link to an object"
To post a comment for this article, simply complete the form below. Fields marked with an asterisk are required.
   Your Name:
   Email Address:
* Your Comment:
* Enter the code below:
 
Related Articles
No related articles were found.
Attachments
No attachments were found.

Continue

HTTP/1.1 200 OK Date: Thu, 09 Sep 2010 17:52:32 GMT Server: Apache Content-Length: 113 Connection: close Content-Type: text/html; charset=iso-8859-1