{"id":295,"date":"2008-02-08T23:58:18","date_gmt":"2008-02-09T04:58:18","guid":{"rendered":"http:\/\/www.coresecuritypatterns.com\/blogs\/?p=295"},"modified":"2020-08-08T03:25:58","modified_gmt":"2020-08-08T03:25:58","slug":"spml-1020-with-sun-identity-manager-7x-a-cheatsheet","status":"publish","type":"post","link":"https:\/\/websecuritypatterns.com\/blogs\/2008\/02\/08\/spml-1020-with-sun-identity-manager-7x-a-cheatsheet\/","title":{"rendered":"Exploring SPML with Sun Identity Manager 7.x &#8211; A Cheatsheet"},"content":{"rendered":"<p>Are you tired of the high-level SPML content floating around the web from&nbsp;couple of analysts with no practical guidance ! If you are a practical guy..who want to explore SPML, here is something that you may find worth test-driving for SPML 1.0 amd SPML 2.0 based provisioning operations.<\/p>\n<p>I had&nbsp;been using&nbsp;SPML using Sun IDM 7.0 for a while now.&nbsp; Most frequently,&nbsp; I forget the steps for configuration and also did&#8217;nt have the patience of going through the documentation (Frankly..I&#8217;m bit lazy).&nbsp; So, I ended up doing my crazy way and here is the cheat sheet of the steps required.<\/p>\n<h3><strong>Configuring SPML Web Services Endpoint in Sun IDM<\/strong><\/h3>\n<p>1.&nbsp; Make sure Sun IDM is deployed and tested to run in your Web container environment (My choice would be Glassfish on Solaris 10). Sorry, I am not a Windows guy \ud83d\ude42<\/p>\n<p>2. Open a terminal, set your JAVA_HOME and WSHOME environment variables<\/p>\n<p>bash-3.00#&nbsp; export JAVA_HOME=export JAVA_HOME=\/usr\/java<br \/>\nbash-3.00#&nbsp; export WSHOME=\/opt\/SUNWappserver\/domains\/domain1\/applications\/j2ee-modules\/idm<br \/>\nbash-3.00#&nbsp; export<br \/>\nbash-3.00#&nbsp; export DISPLAY=&lt;your host_name&gt;:0.0<\/p>\n<p>bash-3.00# cd \/opt\/SUNWappserver\/domains\/domain1\/applications\/j2ee-modules\/idm\/bin<br \/>\nbash-3.00# .\/lh console<\/p>\n<p>3.&nbsp; Configure SPML 1.0 and SPML 2.0 objects by importing them.<\/p>\n<p>Configurator&gt; import -f \/opt\/SUNWappserver\/domains\/domain1\/applications\/j2ee-modules\/idm\/sample\/spml.xml<br \/>\nAdded TaskDefinition:SPMLRequest<br \/>\nAdded Configuration:SPML<br \/>\nAdded Configuration:SPMLPerson<br \/>\nAdded Configuration:SPMLRole<br \/>\nAdded Configuration:SPMLResourceGroup<br \/>\nAdded Configuration:BasicUser<br \/>\nAdded Configuration:Empty<br \/>\nAdded Configuration:SPMLviewtest1<br \/>\nAdded Configuration:SysInfoForm<br \/>\nConfigurator&gt; exit<\/p>\n<p>Configurator&gt; import -f \/opt\/SUNWappserver\/domains\/domain1\/applications\/j2ee-modules\/idm\/sample\/spml2.xml<br \/>\nAdded TaskDefinition:SPML2Request<br \/>\nUpdated Configuration:User Extended Attributes<br \/>\nAdded Configuration:SPML2<br \/>\nAdded Configuration:spml2PersonForm<\/p>\n<p>Configurator&gt; exit<\/p>\n<p>4.&nbsp; Set the Username\/Password properties in Waveset.properties file.<\/p>\n<p>bash-3.00# vi \/opt\/SUNWappserver\/domains\/domain1\/applications\/j2ee-modules\/idm\/config\/Waveset.properties<\/p>\n<p>Add the following to the end of Waveset.properties file:<\/p>\n<p>soap.username=configurator<br \/>\nsoap.password=configurator<\/p>\n<p>4. Restart your Application Server:<\/p>\n<p>bash-3.00# \/opt\/SUNWappserver\/bin\/asadmin stop-domain domain1<\/p>\n<p>bash-3.00# \/opt\/SUNWappserver\/bin\/asadmin start-domain &#8211;user admin domain1<\/p>\n<p>5. Test your SPML Web services connection. The following command will launch &#8220;SPML Monitor&#8221; Java application.<\/p>\n<p>bash-3.00# .\/lh spml<\/p>\n<h3>Sample code<\/h3>\n<p>Here is my code for testing (both SPML 1.0 and SPML 2.0), just compile and run it.<\/p>\n<p><a href=\"http:\/\/www.websecuritypatterns.com\/downloads\/SPMLv1Starter.java\" target=\"_blank\" rel=\"noopener noreferrer\">SPMLv1Starter.java<\/a><\/p>\n<p><a href=\"http:\/\/www.websecuritypatterns.com\/downloads\/SPMLv2Starter.java\" target=\"_blank\" rel=\"noopener noreferrer\">SPMLv2Starter.java<\/a><\/p>\n<p><a href=\"http:\/\/www.websecuritypatterns.com\/downloads\/SPMLAddClient.java\" target=\"_blank\" rel=\"noopener noreferrer\">SPMLAddClient.java<\/a><\/p>\n<p><a href=\"http:\/\/www.websecuritypatterns.com\/downloads\/SPMLModifyClient.java\" target=\"_blank\" rel=\"noopener noreferrer\">SPMLModifyClient.java<\/a><\/p>\n<p>Enjoy !<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Are you tired of the high-level SPML content floating around the web from&nbsp;couple of analysts with no practical guidance ! If you are a practical guy..who want to explore SPML, here is something that you may find worth test-driving for SPML 1.0 amd SPML 2.0 based provisioning operations. I had&nbsp;been using&nbsp;SPML using Sun IDM 7.0 for a while now.&nbsp; Most&#8230; <a href=\"https:\/\/websecuritypatterns.com\/blogs\/2008\/02\/08\/spml-1020-with-sun-identity-manager-7x-a-cheatsheet\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[5,6],"tags":[66,68,75],"class_list":["post-295","post","type-post","status-publish","format-standard","hentry","category-identity-management","category-main","tag-spml","tag-spml2-0","tag-ws-security"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/websecuritypatterns.com\/blogs\/wp-json\/wp\/v2\/posts\/295","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/websecuritypatterns.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/websecuritypatterns.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/websecuritypatterns.com\/blogs\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/websecuritypatterns.com\/blogs\/wp-json\/wp\/v2\/comments?post=295"}],"version-history":[{"count":1,"href":"https:\/\/websecuritypatterns.com\/blogs\/wp-json\/wp\/v2\/posts\/295\/revisions"}],"predecessor-version":[{"id":2809,"href":"https:\/\/websecuritypatterns.com\/blogs\/wp-json\/wp\/v2\/posts\/295\/revisions\/2809"}],"wp:attachment":[{"href":"https:\/\/websecuritypatterns.com\/blogs\/wp-json\/wp\/v2\/media?parent=295"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/websecuritypatterns.com\/blogs\/wp-json\/wp\/v2\/categories?post=295"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/websecuritypatterns.com\/blogs\/wp-json\/wp\/v2\/tags?post=295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}