The OpenSSO Authentication Service provides a feature where a user will be locked out from authenticating after a defined number of failures. (More information is in the Sun OpenSSO Enterprise 8.0 Administration Guide.) When account lockout is enabled an attribute in the user data store is used to hold information regarding the authentication attempts. This information includes:
invalid attempts count
last failed time
Many businesses have user data stores already configured for their overall deployment. If this is the case, the administrator might not want to (or need to) load the OpenSSO schema. The following procedure can be used to configure the account lockout feature to write this information to an attribute not defined by the OpenSSO schema.
Login to the OpenSSO console as the administrator; be default, amadmin.
Click the Realm tab.
Under the Authentication tab, click Advanced Properties.
Select Login Failure Lockout Mode to enable account lockout.
On the same page, configure Invalid Attempts Data Attribute Name.
Invalid Attempts Data Attribute Name is used if the OpenSSO schema is not loaded. Set the value of this property to the attribute name of your choice and OpenSSO will store the data as the value of this attribute. Note that the attribute you specify needs to also be defined in the LDAP User Attributes property of the data store configuration if the data store type is either Active Directory, Generic LDAPv3 or Sun DS with OpenSSO schema.
NOTE: Store Invalid Attempts in Data Store is selected by default and enables the storage of the data as the value of the sunAMAuthInvalidAttemptsData attribute in the user data store. In order to store data in this attribute, the OpenSSO schema has to be loaded.
Now for those who can lock it, pop and drop it with some old skool funk, Peace Pipe by B.T. Express.
The week of April 6, Sun Learning Services is holding a five day training course for newbies to OpenSSo Enterprise 8.0. See the announcement posted on the OpenSSO web site.
And since the five day course is free, how about Queen and their song I Want to Break Free - a shocking video in America when it was first televised. Can this country be anymore provincial? (No answer necessary.)
The mysterious Gina C, my compatriot in OpenSSO technical writing, has added an article to the 8.0 documentation called Localizing the Sun OpenSSO Enterprise 8.0 Login Page. It documents how to customize an OpenSSO Enterprise login page to contain localized text. Check it out.
And, since I know Gina C is a big Beatles fan, here's some live footage of the Beatles singing Ticket to Ride. If you listen closely you can hear Gina screaming.
Book title updated: 3/10/09)
A cache is a collection of frequently accessed data that duplicates original values computed earlier and stored in a main memory store. In a write-through cache, every write to the cache causes a synchronous write to the main memory store. In a write-back cache, writes are not immediately mirrored to the store; the cache tracks which of its data locations have been written over and the data in these locations is collected and written to the main memory store all at once. A clean entry accurately reflects the contents of the main memory store and a dirty entry does not.
Two main OpenSSO components that rely heavily on caching are the Service Management and Identity Repository classes. When caching is enabled and a client invokes these services, the resulting session data is captured by the Client SDK and written to its local cache. To enable caching for the service management and identity repository services on the machine in which the Client SDK is installed, a combination of true and false values for the following properties are defined in AMConfig.properties on the Client SDK host machine.
NOTE: AMConfig.properties is used to store configuration data for the Client SDK (for example, the information needed to point the Client SDK to a remote instance of OpenSSO) and must be accessible from the machine on which the Client SDK is hosted. It is created during installation of the Client SDK.
com.iplanet.am.sdk.caching.enabled enables both caches when set to true (default). A value of false disables both caches.
com.sun.identity.idm.cache.enabled controls the Identity Repository cache. When com.iplanet.am.sdk.caching.enabled is set to false, enable the Identity Repository cache ONLY with a value of true. A value of false keeps it disabled.
com.sun.identity.sm.cache.enabled controls the Service Management cache. When com.iplanet.am.sdk.caching.enabled is set to false, enable the Service Management cache ONLY with a value of true. A value of false keeps it disabled.
com.iplanet.am.sdk.cache.maxSize, also in AMConfig.properties, limits the size of the Identity Repository cache to, by default, 10000 entries. There is no corresponding entry to limit the cache size for the Service Management cache.
When caching is enabled, OpenSSO has three options that can be used to invalidate dirty cache entries. The first is to set up a URL with which the OpenSSO server can send session change notifications to clients on remote web containers. This works for web and standalone applications that can listen for HTTP(s) traffic. The second method (which works ONLY if notification is disabled) is polling. In this case, the client periodically checks the OpenSSO server for session changes. The third method is referred to as Time-to-Live (TTL) and enforces a limit on the period of time dirty data remains in the cache before it is discarded. See the following sections for more information.
Configuring for Notification
OpenSSO allows for session notifications to be sent to remote web containers running the OpenSSO Client SDK in order to sync up the client side cache. The notifications apply to information from the Session, Policy and Naming Services. The following properties relate to notification and are configured on the machine in which the Client SDK is installed.
com.sun.identity.client.notification.url defines the URI of the Notification Service running on the host machine on which the Client SDK is installed; by default, http://SDK-host.domain:port
/opensso/notificationservice. This value is used for both the Service Management and Identity Repository caches. If no URL is specified, notification is disabled.
com.sun.identity.idm.remote.notification.enabled is used to enable or disable the notifications for the
Identity Repository cache. If set to true notifications are enabled; false disabled. If there is no value defined, it defaults to true.
com.sun.identity.sm.notification.enabled is used to enable or disable the notifications for the Service Management cache. If set to true notifications are enabled; false disabled. If there is no value defined, it defaults to true.
There are additional steps you might need to follow to enable notification. These are documented in the OpenSSO Enterprise 8.0 Developer's Guide.
Configuring for Polling
OpenSSO allows the Client SDK to periodically check for changes to information stored in the Service Management and Identity Repository caches. Polling is enabled when notification is disabled - com.sun.identity.client.notification.url contains no value. The following properties relate to polling and are configured on the machine in which the Client SDK is installed.
com.sun.identity.sm.cacheTime is the time (in minutes) that the Service Management cache will poll for updates.
com.iplanet.am.sdk.remote.pollingTime is the time (in minutes) that the Identity Repository cache (and the legacy AM SDK classes cache) will poll for updates.
The manner in which the entries in the cache are invalidated (the data's time-to-live, as it were) depends on the configuration of the following properties in the configuration data store (by default, embedded) on the machine in which OpenSSO is installed.
com.sun.identity.idm.cache.entry.expire.enabled takes a value of true or false which enables or disables respectively the Identity Repository TTL feature.
com.sun.identity.idm.cache.entry.default.expire.time specifies the time (in minutes) that non-user Identity Repository cache entries remain valid after their last modification. In other words, after the specified time (by default, one minute) has elapsed (following a modification or directory read), the data for the cached entry will expire and new requests for this data must be read from the directory.
com.sun.identity.idm.cache.entry.user.expire.time specifies the time (in minutes) that user Identity Repository cache entries remain valid after their last modification. In other words, after the specified time (by default, one minute) has elapsed (following a modification or directory read), the data for the cached entry will expire and new requests for this data must be read from the directory.
com.sun.identity.sm.cache.ttl.enable takes a value of true or false which enables or disables respectively the Service Management TTL feature.
com.sun.identity.sm.cache.ttl specifies the time (in minutes) that Service Management cache entries remain valid after their last modification. In other words, after the specified time (by default, 30 minutes) has elapsed (following a modification or directory read), the data for the cached entry will expire and new requests for this data must be read from the directory.
NOTE ON LEGACY SUPPORT: To enable TTL for the com.iplanet.am.sdk classes, configure com.iplanet.am.sdk.cache.entry.expire.enabled, com.iplanet.am.sdk.cache.entry.user.expire.time, and com.iplanet.am.sdk.cache.entry.default.expire.time.
The following configuration enables caching and updates using the server side TTL properties and the client side Service Management polling.
Enable caching for Service Management and Identity Repository
Disable notifications for Service Management and Identity Repository
To implement a federated solution where the consumer of a service can select which attribute is sent from the identity provider to the service provider as an assertion write a custom IDPAttributeMapper . The getAttributes() method takes the OpenSSO SSOToken as one of its parameters. From this, you can determine who the end user is, pull the correct attributes for that user and return the values as an attribute list. The identity provider will take the attributes and send them to the service provider as part of a SAMLv2 assertion.
Once you've finished, check out the video for the Academy Award-winning song from the movie Once. Excellent film about two people Falling Slowly in love. The love segued into real life until last night when I read that Glen Hansard and Marketa Irglova were no longer a couple. Worse things have happened but they were a sweet couple in the film.
The SAMLv2 Name Identifier Management Profile documents how an identity provider and a service provider might inform each other of changes to the identifier that they reference when communicating about a particular identity. The various OpenSSO ManageNameID (MNI) JSP provide a way to change SAMLv2 name identifiers or terminate mappings between identity provider accounts and service provider accounts. For example, after establishing a name identifier for use between providers when referring to an identity in SAMLv2 communications, an identity provider may want to change the value and/or format. The identity provider will notify service providers of the change by sending them a ManageNameIDRequest. A service provider might also use this message type to register or change the SPProvidedID value (included when the underlying name identifier is used to communicate with it) or to terminate the use of a name identifier between itself and the identity provider.
Following is a procedure that can be used to test the profile using OpenSSO. In the example procedure, maple.sun.com is the identity provider and honey.sun.com is the service provider.
Initiate single sign-on and account linking (federation) from the service provider side using http://honey.sun.com:80/opensso/saml2/jsp/spSSOInit.jsp?
metaAlias=/sp&idpEntityID=maple.sun.com.spSSOInit.jsp is used to initiate single sign-on and federation on the service provider side. Because metaAlias and idpEntityID are defined, the request is created and sent to the identity provider. This links the two accounts and creates a name identifier to be used by the providers to refer to the identity during communications. Both providers keep the name identifier in the user's profile which makes the format persistent.
Log in to the identity provider host machine and the service provider host machine as root.
Run ldapsearch -h maple -D "cn=directory manager" -w password -p 389 -b "dc=sun,dc=com" "uid=\*" sun-fm-saml2-nameid-info sun-fm-saml2-nameid-infokey on each host machine to view the values for the sun-fm-saml2-nameid-info and sun-fm-saml2-nameid-infokey properties.
On the identity provider side, sun-fm-saml2-nameid-info will have a value similar to
On the service provider side, sun-fm-saml2-nameid-info will have a value similar to
null|honey.sun.com|SPRole|falsesun-fm-saml2-nameid-info is used to store all information related to the name identifier. The value is formatted as:
hosted_entity_id : entity id for this hosted entity
remote_entity_id : entity id for the remote entity
idp_nameid : name identifier for the IDP
idp_nameid_qualifier: nameid qualifier for the IDP
idp_nameid_format : nameid format for the IDP
sp_nameid : name identifier for the SP/Affiliation
sp_nameid_qualifier : nameid qualifier for the SP/Affiliation
hosted_entity_role : SPRole or IDPRole, useful when one entity could be IDP and SP at same time.
is_affiliation : true for affiliation, false otherwise
On the identity provider side, sun-fm-saml2-nameid-infokey will have a value similar to
On the service provider side, sun-fm-saml2-nameid-infokey will have a value similar to
KFXSFabPdkOOhRpkkW8Aj5Etnq2osun-fm-saml2-nameid-infokey is used to search an LDAP data store for better performance, when that type of data store is used. The user that binds to the LDAP data store must have read/write/search/compare permission to this attribute. You must also must make sure that the equality type index is added to the data store. The value is formatted as:
hosted_entity_id : entity id for this hosted entity
remote_entity_id : entity id for the remote entity
idp_nameid : name identifier for the IDP
Terminate the link (defederate) between the user's service provider and identity provider accounts using one of the following URLs referencing spMNIRequestInit.jsp.
Initiate defederation from the service provider using either HTTP-Redirect binding or SOAP binding respectively:
Initiate defederation from the identity provider using either HTTP-Redirect binding or SOAP binding respectively:
After defederation, run the previous ldapsearch command again.
The two properties have no values on both the identity provider and service provider sides.
Federate the user's service provider account and identity provider account again using the URL that references spSSOInit.jsp.http://honey.sun.com:80/opensso/saml2/jsp/spSSOInit.jsp?
Run the previous ldapsearch command again. The two properties have values on both the identity provider and service provider sides again; the value of the name identifier is different from the previous value.
Initiate the creation of a new name identifier using one of the following:
Initiate the creation of a new name identifier from the service provider side using spMNIRequestInit.jsp and the following URL:
Initiate the creation of a new name identifier from the identity provider side using idpMNIRequestInit.jsp and the following URL:
Run the previous ldapsearch command for a third time. The two properties have values on both the identity provider and service provider sides; the value of the new name identifier is different from both of the previous values.
More information on the JSP can be found in the OpenSSO Enterprise 8.0 Administration Guide.
And, in keeping with the sweet theme of the host machine names, here's The Sweet with Fox on the Run. I still smell hamburgers when I hear this song - high school lunches at the coffee shop with a jukebox.
Rajeev Angal wrote an interesting answer in an email when asked the question What is the advantage of using the Fedlet versus installing a policy agent on the partner website? I thought the information was worth double-dipping.
A Fedlet allows you to:
Use SAMLv2 standards to accomplish single sign-on - keeping the partner domains separate.
Add privacy and security characteristics to the deployment involving loose coupling between the partner
Integrate with an existing application that already has session management.
A policy agent is a better option if:
The two domains are owned by the same business.
You want session and related services (user profile, configuration etc) to be accessible from the partner domain.
Access between the agent in one domain and the OpenSSO server on the other is secure.
NOTE: If you also have the option to install an instance of OpenSSO in the partner domain, the two servers connect using SAMLv2 (just like the Fedlet/OpenSSO case) except that the domain can make full use of the session and other facilities (isolated from OpenSSO in the other domain) although at the cost of a slightly more complex deployment at the partner end.
Today, in honor of the 56th Presidential inauguration and the ascension of Barack Obama and Joseph Biden to the offices of President and Vice President respectively, here is a music video I created during the campaign. The song is A Change in the Wind and is sung by Face to Face. The images speak for themselves.
If you haven't seen Pat's blog entry then you might not know that OpenSSO Enterprise won developer.com Security Product of the Year 2009. (2009? Whatever.) Congratulations to all coding peeps, doc nerds, quality analyzers, marketing gurus, virtual architects, and repeat voters. It's a cool place to be.
And if you've already seen the news, go to other Cool Places with Sparks and Jane Weidlin (of The Go-Go's). Very rare and very 80s.
NOTE: Really into this song? Search for the Sparks and the Go-Go's live versions. The Sparks video is from MTV in its heyday and is excellent; the Go-Go's not so much although it is interesting to hear it sung by Belinda Carlisle in 2006!
OpenSSO Enterprise provides the com.sun.identity.authentication.spi package to write Java-based authentication modules and plug them into the Authentication Service framework, allowing proprietary authentication providers to be managed using the OpenSSO Enterprise console. The authentication module is created using the abstract com.sun.identity.authentication.spi.AMLoginModule class which implements the JAAS LoginModule class.
com.sun.identity.authentication.spi.AMLoginModule provides methods to access the Authentication Service and the authentication module's callback requirements file. Once created, a custom authentication module can be added to the list of authentication modules displayed by the OpenSSO Enterprise console. Use the following list of procedures as a
checklist to create and integrate a custom authentication odule into OpenSSO.
Create a callback requirements file for the new authentication module.
The authentication module's callback requirements file is written in XML and defines the module's authentication requirements and login state information. The parameters in this file automatically and dynamically customize the authentication module's user interface in the form of login pages that provide the means to initiate, construct and send credential requests to the Distributed Authentication User Interface. When an authentication process is invoked, the values nested in the Callbacks element of the module's configuration properties file are used to generate login screens. The module controls the login process, and determines each concurring screen. The callback requirements file included with OpenSSO and the corresponding DTD (Auth_Module_Properties.dtd) can be found in the source code and used as a template for creating a new one.
Implement a Principal class.
Write a class which implements java.security.Principal to represent the entity requesting authentication. For example, the constructor takes the username as an argument. If authentication is successful, the module will return this principal to the Authentication Service which populates the login state and session token with the information representing the user.
Create a service file for the new authentication module.
The authentication module's service file is written in XML and imported to OpenSSO to allow the management of its attributes using the OpenSSO console. The name of the service file follows the format amAuthmodulename.xml (for example, amAuthSafeWord.xml or amAuthLDAP.xml). The service files included with OpenSSO and the corresponding DTD (sms.dtd) can be found in the source code and used as a template for creating a new one. You can also cut, paste and modify the following template.
(OPTIONAL) Create a localization properties file for the new authentication module.
A localization properties file specifies the screen text that an administrator will see when directed to an authentication module's service page in the OpenSSO console, as well as messages (error or otherwise) displayed by the module. Here are some concepts behind the creation of this file.
The data following the equal (=) sign in each key/value pair could be translated to a specific language as necessary.
The alphanumeric keys (a1, a2, etc.) map to fields defined by the i18nKey attribute in the corresponding amAuthmodulename.xml service file.
The alphanumeric keys also determine the order in which the fields are displayed in the OpenSSO console. The keys are taken in the order of their ASCII characters (a1 is followed by a10, followed by a2, followed by b1). For example, if an attribute needs to be displayed at the top of the service attribute page, the alphanumeric key should have a value
of a1. The second attribute could then have a value of either a10, a2 or b1, and so forth. The files are located in OpenSSO-Deploy-base/WEB-INF/classes and follows the naming format amAuthmodulename.properties; for example, amAuthLDAP.properties.
Develop the custom authentication module.
Custom authentication modules extend the com.sun.identity.authentication.spi.AMLoginModule class and must implement the init(), process() and getPrincipal() methods. The module should also invoke the setAuthLevel() method. Other methods that can be implemented include
setLoginFailureURL() and setLoginSuccessURL() which define URLs to which the user is sent based on a failed or successful authentication, respectively. To make use of the account locking feature with custom authentication modules, the InvalidPasswordException exception should be thrown when the password is invalid.
(OPTIONAL) Add post processing features.
The com.sun.identity.authentication.spi.AMPostAuthProcessInterface interface can be implemented for post processing tasks on authentication success, failure and logout using the methods onLoginSuccess(), onLoginFailure(), and onLogout(), respectively. The Authentication Post Processing Classes are defined in the Core Authentication Service and configurable at several levels such as at the realm or role levels.
Access http://osso-host.osso-domain:osso-port/opensso/ssoadm.jsp from a browser
and choose create-svc to create the service in OpenSSO.
Copy the authentication module's service file to the text box.
Choose the register-auth-module option (also on ssoadm.jsp) to register the custom
authentication module with the Core Authentication framework.
Enter the complete module name including the prepended package.
The custom authentication module is now listed under the Configuration tab as an Authentication option.
NOTE: After deploying opensso.war, you can also point a browser to http://osso-host.osso-domain:osso-port/opensso/
samples/authentication/AuthSampleLoginModule to access the sample, How to Write Sample LoginModule using AMLoginModule SPI (Service Provider
Now enjoy the More, More, More, the Andrea True Connection's #1 hit from 1976. That's when sex stars had class! (But where's the Connection?)
A week from today (January 21, 2009) at 10 AM PT, Daniel Raskin (The Smoking Monkey) and Jamie Nelson (OpenSSO Director of Engineering) will be hosting an OpenSSO webinar titled Access Management, Federation, and Secure Web Services with OpenSSO Enterprise. During this session, they will discuss OpenSSO innovations and how the software pushes access management, federation, and web services security to a new level. Register for the webinar here; you just might learn something new.
And now for something old you might not know about: Spanky & Our Gang performing Like to Get to Know You.
OpenSSO Enterprise 8.0 contains a Security Token Service. The Security Token Service verifies the credentials in a request presented by a web services client and, in response, issues a security token to provide proof that the client has authenticated with the Security Token Service. The web services client presents the security token to the web service which verifies that it was issued by a trusted Security Token Service. SOAP enables the exchange of these messages using a variety of underlying protocols. Out of the box, the Security Token Service supports SOAP 1.2 as a binding, a formal set of rules for transporting the messages. In order to enable SOAP 1.1 as a binding, make the following changes to before deploying the OpenSSO WAR.
Download and unzip opensso.zip.
Extract the contents of opensso.war using the jar command.
Change into the WEB-INF/wsdl directory.
Replace the default famsts.wsdl with the modified famsts.wsdl available here.Backup the original famsts.wsdl.
Change into the WEB-INF directory.
Replace the default sun-jaxws.xml with the modified sun-jaxws.xml available here.Backup the original sun-jaxws.xml.
Modify the web.xml also located in the WEB-INF directory by adding the following two entries to the file as positioned below.
Policy agents deployed to web containers and web proxy servers protect content from unauthorized intrusions. Access to this content (services, for example) are controlled through policies configured with OpenSSO. Here is a description of the interactions that occur when a policy agent interacts with OpenSSO.
A policy agent intercepts the user's request and validates any authentication credentials contained within it. If the existing authentication level is insufficient, the OpenSSO Authentication Service will present a login page for an authentication upgrade. The login page prompts the user for the credentials appropriate to the configured module.
The Authentication Service verifies that the user credentials are valid. For example, the LDAP authentication module verifies that the user name and password are the same as those stored in the LDAP identity data store. If other authentication modules are passed to the user (such as RADIUS or Certificate), the credentials are verified with the appropriately configured identity data store.
Assuming the user's credentials are properly authenticated, the policy agent examines the policies assigned to the user.
Based on the aggregate of the user's configured policies, the individual is either allowed or denied access to the resource.
NOTE: In this scenario, if the user attempts access to a web resource without authentication credentials, the agent redirects the user to the login page of the default authentication module. (Even if the resource is protected by a different authentication module, the user must first authenticate using the default authentication module.)
Because some customers require a scenario in which the user authenticates against a particular module based on the resource being accessed, the Gateway servlet provides resource-based authentication; there is no need for the user to authenticate to the default authentication module to access the protected web resource. When using the Gateway servlet:
A web resource can not be defined in more than one policy. For example, if abc.html is defined in a policy definition as requiring LDAP authentication, abc.html can not be defined in a second policy definition as requiring Certificate authentication.
You can use the level and scheme conditions only when defining policies that the servlet will examine.
Additionally, the Gateway servlet does not work across internet domains. Use the following list to configure your deployment to use the Gateway Servlet.
Go to the installation directory for the agent protecting the resource on the web container host machine. For example, on Application Server, change to AppSvr-Directory/agents/j2ee_agents/appserver_v9_agent/Agent_001/config/.
Change the value for com.sun.am.policy.am.loginURL from http://machine-name.domain:port/opensso/UI/Login to http://machine-name.domain:port/opensso/gateway in OpenSSOAgentBootstrap.properties. It is the only change to the policy agent configuration.
Testing the Servlet
After these configurations, the test results are:
Access to resource A is permitted only after successful LDAP authentication.
Access to resource B is permitted only after successful Certificate-based authentication.
Access to resource C is permitted only after both successful LDAP and Certificate-based authentication.
Now that you've configured and tested resource-based authentication, the Shangri-Las are gonna give you a great big kiss with Give Him a Great Big Kiss. I was reminded of this song when it was used in a movie I saw this weekend called Stonewall, an account of the Stonewall riots of 1969. Worth checking out!
SAMLv2 Assertion Failover, when enabled, redirects a request for an assertion to a second identity provider if the identity provider that initially created the assertion is out of commission. The feature piggybacks on OpenSSO Session Failover configuration by using the same databases. Here is the procedure to configure and test SAMLv2 Assertion Failover.
Deploy 2 instances of OpenSSO Enterprise to act as identity providers and 1 load balancer in front of them.
Set up the entities as a site with servers (using the OpenSSO console) and confirm that the configurations work.
Deploy 1 instance of OpenSSO Enterprise to act as service provider.
On all three provider instances of OpenSSO, enable SAMLv2 Assertion Failover.
Log in to the OpenSSO console as administrator.
Click the Configuration tab.
Click the Global tab.
Click the SAMLv2 Service Configuration link.
Check the box next to Enable SAMLv2 Failover.
Log out of the console.
Configure each server instance of OpenSSO as the appropriate entity provider and member of the same SAMLv2 circle of trust.
Export the entity provider metadata from all three server instances of OpenSSO.
Load the service provider and identity provider metadata on the respective instances of OpenSSO and on the load balancer.
You need to create the metadata for the load balancer. See your load balancer's documentation for more information. Make sure you change the URL values in the load balancer metadata from the OpenSSO instances behind the load balancer to the load balancer URL itself.
Modify the spAssertionConsumer.jsp on the service provider machine to add sleep that allows enough time to shutdown the identity provider on which the request will land. (See step 11.)
Initiate single sign-on using the following URL:
Before proceeding to the next step, run tail on the SAMLv2 debug logs (located in OpenSSO-install-directory/opensso/debug) on the identity provider host machines to see where the single sign-on request lands.
After providing the service provider user credentials, monitor the log and shutdown the identity provider on which the initial single sign-on request landed.
Make sure the user is not federated before shutting down the identity provider. The sleep time added to spAssertionConsumer.jsp in the previous step should allow enough time for this. (See step 9.)
Verify that federation successfully occurs after the identity provider is shutdown. This confirms that assertion failover was successful.
Initiate single logout using the following URL:
Bring the previously shutdown identity provider back up and, once again, initiate single sign-on again using the following URL:
Monitor the log and shutdown the identity provider on which this second single sign-on request landed.
Initiate single logout using the following URL:
A successful logout confirms assertion failover is working.
And now that Assertion Failover has been correctly configured, put your footsies up and check out this live version of The Killers' latest hit - are we Human or are we dancer?
Want to confirm (or even find out) what version of OpenSSO you installed many moons ago and are still running? Put the following URL in your browser:
When I ran it I received the following output in the browser window because I installed a post-OpenSSO Enterprise 8.0 build:
Someone running OpenSSO Enterprise 8.0 would see:
Enterprise 8.0 Build 6(2008-October-31 09:07)
And once you know what version is running, keep going up that hill with Kate Bush.
Or with Placebo who recorded the more recent cover of Running Up That Hill.
I was searching YouTube and found that basicallythis had taken the free training and uploaded three videos documenting his experiences. The videos are silent but might be of help if you get stuck.
Lab 1, Exercise 1Lab 1, Exercise 2Lab 1, Exercise 3
Now check out this 1980 clip of U2 performing I Will Follow. I remember seeing them on their first tour of the US in a barely full nightclub on Long Island. My sister still shudders when I remind her of how I asked her to join me to see her now-favorite-group and she replied, "I don't even know who they are. I'll skip it."
OpenSSO can be integrated with .NET applications. Here are some ways to achieve single sign-on or attribute sharing:
Install the IIS agent to protect the .NET application, and install OpenSSO as the service provider with the .NET application. The identity provider could then achieve single sign-on with the .NET application, and attributes can be passed down, as part of the HTTP header, to the .NET application.
Securely exchange attributes using the .NET client API provided by OpenSSO for integration with the .NET application. This makes use of the SAMLv2 and the Virtual Federation Proxy feature of OpenSSO.
Deploy Active Directory Federation Services as the service provider with the .NET application. OpenSSO would act as the identity provider. Use the WS-Federation protocol to achieve single sign-on with the .NET application.
While ruminating these options, enjoy Cheap and Cheerful from The Kills EXCELLENT third album Midnight Boom.
Here is some information regarding how you might configure OpenSSO sites and servers for a sample SAMLv2 deployment. The requirement in this SAMLv2 deployment is to allow normal users to access OpenSSO via pure SSL and administrative users to access OpenSSO via SSL with certificate authentication. The deployment is a straight forward setup (using two instances of OpenSSO and Glassfish, and one load balancer) except for the following:
The requirement for certificate authentication for one group of users and LDAP authentication for t'other group of users.
The users are split into two domains: one for the identity provider and t'other for the service provider. The identity provider will authenticate, and the service provider will control access using a J2EE policy agent.
The load balancer should be configured with two listening sockets but there should be only one configured Site in OpenSSO. The Site configuration does not need to know both listening sockets as long as the two configured listening sockets (in this example, port 1443 and 2443) point to the same instance of OpenSSO. For this deployment do the following configurations.
On both instances of OpenSSO, under the Configuration --> Servers and Sites tabs in the console, create one New Server for each OpenSSO instance as in:
Create a New Site with your chosen name and a Primary URL that points to the first virtual IP of the load balancer as in https://lb-vip1.server.com:1443/opensso. Click the created Site and add the second virtual IP of the load balancer, https://lb-vip2.server.com:1443/opensso.
Click each server previously created to add the created Site as the value of the Parent Site attribute.
In the first instance of the Glassfish console, configure two listening sockets:
In the second instance of the Glassfish console, configure two listening sockets:
In the load balancer, configure two virtual servers that each points to two different pools:
Virtual Server 1
https://lb-vip1.server.com:1443 points to two different pools:
Virtual Server 2
https://lb-vip2.server.com:2443 points to two different pools:
And from SSL to SSQ, here's Synthecide. Stacey Q was lead singer of this mid-80s Berlin-sounding synth band before she went solo with the Madonna-sounding Two of Hearts. At that point, everyone decided to hate her and she was never heard from again.
OpenSSO Community member Miquel has developed an extension based on Spring Security. Spring Security provides comprehensive security services for J2EE-based software applications with an emphasis on those built using the Spring Framework, an open source Java application framework.
The Fedlet is a small footprint SAMLv2 JAR that can be deployed with a service provider application. It handles only SAMLv2 identity provider initiated POST profiles. The application in which it is embedded can then consume a SAML assertion to identify the user and identity attributes. The Fedlet uses your installed JDK to log its authentication access and errors (single sign-on successes, single log outs, etc.). By default, it uses the configuration defined at JAVA_HOME/jre/lib/logging.properties. You can set the logging level to FINEST to see more details. For additional logging information, you can modify fedletSampleApp.jsp. More information on that modification can be found here. For debugging, the location of the file is defined in the OpenSSO file, FederationConfig.properties.
And when done logging, check out Kenny Loggins singing (and Kevin Bacon foot-syncing) in the music video for Footloose.
Thanks to OpenSSO members Christopher and Michel for this information.
OpenSSO uses an LDAP server for persistence of its configuration data so the LDAP server that contains this configuration data must be available when OpenSSO is running. After a default installation OpenDS, which is embedded with OpenSSO, will stop and start as OpenSSO does. If OpenSSO is installed pointing to an instance of Directory Server for its configuration data, Directory Server needs to be stopped and started on its own. The best way to do this is to stop the underlying OpenSSO web container first and Directory Server second - reversing the order for the imminent restart. This insures that the configuration data is always available for the OpenSSO web application.
That said, I've noticed a few people (externally and internally) asking about an Invalid Domain - No such Organization found error that is displayed when attempting to log in to the console using the default URL (http://web-server-host:port/opensso/UI/Login) after restarting an instance of Directory Server 5.2 configured as the OpenSSO configuration data store. If you see this error message, do the following:
Login to the OpenSSO console at http://web-server-host:port/opensso/UI/Login?org=LDAP-DN-root.
Under the Access Control tab, click the / (Top-level Realm).
Add another host name to the Realm/DNS Alias property of the / (Top-level Realm) and click Save. The information will be removed so MacGuffin text is fine.
Restart the deployment as previously detailed.
Login to the OpenSSO console using the default URL and remove the host name you just added.
This workaround forces OpenSSO to export the Realm/DNS Alias values to the external Directory Server. The following search returns zero results before the workaround and should return one result after it.
SRCH base="ou=services,DN" scope=2 filter="(|(&(objectClass=sunRealmService)(&(|(sunxmlkeyvalue=sunidentityrepositoryservice-sunOrganizationAliases=hostname.site.com)(sunxmlkeyvalue=sunOrganizationAliases=hostname.site.com))))(&(objectClass=sunServiceComponent)(&(|(sunxmlkeyvalue=sunidentityrepositoryservice-sunOrganizationAliases=hostname.site.com)(sunxmlkeyvalue=sunOrganizationAliases=hostname.site.com)))))" attrs="o"
While you're waiting for the restart, enjoy Stop, the ABBA-esque version of the Erasure song by Björn Again.
I know there are people out there who have been wondering where my blog entries have been for the last two and a half months - and to both of you I say: I've been assiduously (thanks for the word, Alan) working on two deployment books for release with Sun OpenSSO Enterprise 8.0. Here are links to the PDFs - test them out and let me know what you think.
But all that work has made me drowsy so I'm taking two weeks off now. In the meantime, enjoy As We Stumble Along featuring Robert Martin as Man in Chair and Beth Leavel as The Drowsy Chaperone. You gotta love a song that rhymes stumble with...parumble?
My hairdresser scared the \* out of me.
You're really voting for Barack Obama? His name scares me, she said.
His name? Here is a woman living in the cosmopolitan center of the Rocky Mountains who thinks John McCain was the better choice for president because his name was Anglo-Saxon? I asked her to please educate herself on Barack Obama before November 4 and not just spout off, what sounded to me like, talking points from Fox Television. The people in this country can't take four more months, much less four more years, of Republican rule.
One of my favorite songs from the '80s\* took on a whole new meaning when I heard it on the way home. The song speaks to the spirit of Barack Obama and his supporters. The video clips give you perspective on what should and should not be feared. Please watch it, dance along if you'd like, and use the links below to get more information. Your fellow citizens will appreciate you for doing that.
all the best,
\*Change in the Wind performed by the Boston-based band Face to Face with vocalist Laurie Sargent from their One Big Day LP released in 1988. How prescient are they?
Created for and copied from Musings from a Man with a Mouse.
In order to change the preferred identity provider configured for a Fedlet, you can either remove the identity provider discovery cookie from the browser, or choose another identity provider to perform a single sign-on interaction. Following the latter, the identity provider is then set as the preferred identity provider.
Now here's the original MTV video (with attempted suicide and all) for Change, the hit single from former Babys front man, John Waite.
Change was a WLIR Screamer of the Week before they realized Waite wasn't new wave.
I'm in huge writing mode for the upcoming release of OpenSSO so please forgive for the relative dearth of posts. You're gonna love the books though!
Let's assume you have a top level realm named /opensso (because everybody has at one point). Under opensso create a sub realm called test. In the test sub realm, create a new user named usr1. Now create a new group, grp1, and assign read and write privileges for policy data to grp1 and assign usr1 to grp1.
Log in to the test sub realm using the URL http://fdqn:port/opensso/UI/Login?realm=test and the name and password for usr1. The administration pages for the sub realm are displayed in order to manage its policy data. If you use the URL http://fdqn:port/opensso/UI/Login, the user's page is displayed in order to manage the user profile. This insures the following:
usr1 will not have permission to manage policy data of the parent realm (opensso or any peer sub realms.
usr1 will have permissions to manage policy data of the test sub realm and any realms created beneath it.
Now, let's take the Duffy/Lulu taste test. First view the video for Mercy as performed by Duffy in 2008.
Now compare the voice you just heard to that of Lulu singing The Boat That I Row in 1968. Pretty close and forty years earlier.