Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "IdAS Basic Solution"

(Instructions)
(Instructions)
Line 31: Line 31:
  
 
== Instructions ==
 
== Instructions ==
* Get this deployment's project
+
=== Get Higgins Components ===
** For The Eclipse IDE, Import either of these Team Working Sets [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.higgins/app/deployment.idas.basic/anonymous.psf?root=Technology_Project&view=co anonymous.psf], [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.higgins/app/deployment.idas.basic/committer.psf?root=Technology_Project&view=co committer.psf]
+
If you're using Eclipse, you need to get the deployment project and all dependency projects recursively.  The easy way to do this is to import one of these Team Project Sets [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.higgins/app/deployment.idas.basic/anonymous.psf?root=Technology_Project&view=co anonymous-with-depends.psf anonymous with dependencies], [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.higgins/app/deployment.idas.basic/committer.psf?root=Technology_Project&view=co committer-with-depends.psf committer with dependencies]The hard way is to get this deployment's project using one of these [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.higgins/app/deployment.idas.basic/anonymous.psf?root=Technology_Project&view=co anonymous.psf anonymous], [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.higgins/app/deployment.idas.basic/committer.psf?root=Technology_Project&view=co committer.psf committer] and then get all the required Higgins components by following the instructions in the Component's table row and on its page (see the list of dependency projects above).
** The cvs location is dev.eclipse.org:/cvsroot/technology,org.eclipse.higgins/app/deployment.idas.basic
+
 
* Get all required Higgins components
+
If you're not using Eclipse, you'll need to use cvs to get the code for this deployment as well as all the code for the dependencies. <todo: more instructions here would be nice>
** Follow the instructions in the Component's table row and on its page
+
 
** alternately, use one of these team project sets
+
=== Get, install, configure, and run an LDAP server ===
* Get and install an LDAP Server.
+
The easy way is to download the simple LDAP Server mentioned above.  If you do that and unpack it, you'll have everything you need, preconfigured.  Just run the executable ldaputility.jar.  Note that java -jar ldaputility.jar /? produces a help screen.
** If using the simple Java LDAP Server mentioned above:
+
 
*** extract the files from the tar.gz file you got above
+
If you want to use a different LDAP server, that's ok, but it's up to you to install it.  For this deployment, there are no special schema requirements, you just need to make sure it can perform a simple bind with name and password.
** For OpenLDAP, follow <need something here>
+
 
* Extend the LDAP server's schema
+
=== Edit the configuration file ===
** If using the simple Java LDAP Server mentioned above:
+
If you're using the simple Java LDAP Server mentioned above, the deployment is preconfigured, you don't need to do anything.  Otherwise, you might need to make some changes to the file called IdASConfiguration1.xml in the conf directory. A tutorial on much of what goes into this file can be found at [[JNDI_CP_Configuration]]
*** the data file accompanying the jar file is sufficient
+
 
** For OpenLDAP, <point to a schema file, or use default schema>
+
==== Setting the host and port ===
* Run the LDAP server
+
This setting is used to change the host and port:
** If using the simple Java LDAP Server mentioned above:
+
<pre>
*** run the executable ldaputility.jar
+
<Setting Name="Address" Type="xsd:string">ldap://localhost:50389</Setting>
*** java -jar ldaputility.jar /? produces a help screen
+
</pre>
** <todo> Optional cmd line test to make sure it works
+
 
* Edit the configuration file
+
==== Setting the subject's name and password ====
** If using the simple Java LDAP Server mentioned above:
+
Update these settings:
*** the deployment is preconfigured, you don't need to do anything
+
<pre>
** <instructions on what to do>
+
<Setting Name="java.naming.security.principal" Type="xsd:string">cn=admin,o=bandit</Setting>
** <make use of existing JNDI CP configuration pages>
+
<Setting Name="java.naming.security.credentials" Type="xsd:string">admin</Setting>
* Run the application
+
</pre>
** <instructions>
+
 
** There's a main function in the BasicIdAS class.
+
=== Build and run the application ===
 +
If you're using Eclipse, you should be able to simply run the application using the Run menu.
 +
 
 +
If you're running from the command line, you need to build this deployment and it's dependencies.  <todo: add instructions>There's a main function in the BasicIdAS class. <todo: put a run target in the build.xml?>
  
 
== See Also ==
 
== See Also ==

Revision as of 23:52, 10 October 2007

Overview

NOTE: This deployment is a work in progress. This note will go away when it is functional

This simple deployment combines IdAS (along with the IdAS Registry), the JNDI Context Provider, and an LDAP server to provide an identity store which is then accessed by an application.

The application prints the attributes of some identities.

Architecture

Higgins-deploy-idas-v47.JPG

Higgins Components

Each of the following Higgins components are required along with their dependencies:

External Components

These external components are also required.

  • LDAP Server

Instructions

Get Higgins Components

If you're using Eclipse, you need to get the deployment project and all dependency projects recursively. The easy way to do this is to import one of these Team Project Sets anonymous-with-depends.psf anonymous with dependencies, committer-with-depends.psf committer with dependencies. The hard way is to get this deployment's project using one of these anonymous.psf anonymous, committer.psf committer and then get all the required Higgins components by following the instructions in the Component's table row and on its page (see the list of dependency projects above).

If you're not using Eclipse, you'll need to use cvs to get the code for this deployment as well as all the code for the dependencies. <todo: more instructions here would be nice>

Get, install, configure, and run an LDAP server

The easy way is to download the simple LDAP Server mentioned above. If you do that and unpack it, you'll have everything you need, preconfigured. Just run the executable ldaputility.jar. Note that java -jar ldaputility.jar /? produces a help screen.

If you want to use a different LDAP server, that's ok, but it's up to you to install it. For this deployment, there are no special schema requirements, you just need to make sure it can perform a simple bind with name and password.

Edit the configuration file

If you're using the simple Java LDAP Server mentioned above, the deployment is preconfigured, you don't need to do anything. Otherwise, you might need to make some changes to the file called IdASConfiguration1.xml in the conf directory. A tutorial on much of what goes into this file can be found at JNDI_CP_Configuration

= Setting the host and port

This setting is used to change the host and port:

<Setting Name="Address" Type="xsd:string">ldap://localhost:50389</Setting>

Setting the subject's name and password

Update these settings:

<Setting Name="java.naming.security.principal" Type="xsd:string">cn=admin,o=bandit</Setting>
<Setting Name="java.naming.security.credentials" Type="xsd:string">admin</Setting>

Build and run the application

If you're using Eclipse, you should be able to simply run the application using the Run menu.

If you're running from the command line, you need to build this deployment and it's dependencies. <todo: add instructions>. There's a main function in the BasicIdAS class. <todo: put a run target in the build.xml?>

See Also

Links

Back to the top