For a basic installation see http://fmanea.blogspot.ro/2013/10/install-and-configure-openam-for-spring.html up to creating the SP (current installation was done on Tomcat 8.0 as opposed to 7.0 for the above mentioned post).
OpenAM requirements for the container
In order to add required JVM start-up parameters edit Tomcat8.0\bin\service.bat by modifying the line: --JvmOptions "-Xdebug;-Xnoagent;-Djava.compiler=NONE;-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5006;-Xmx1024m;...
(also adds debug support which should be removed in production environment).
Stop the service, run service.bat remove
, run service.bat install
as administrator to reinstall service, start the sdervice
Add an AD based realm
- Log in into OpenAM.
- Go to Access Control.
- Add a new Realm as child of the Top Level Realm
- Use this post to configure the Realm.
- Clear
Persistent Search Base DN:
text field (in DataStore attributes area) so that you will not get periodic (very often) searches against the AD user entries (sort of periodic browse)
- In Core Realm Attributes mark
User profile
to Ignore
- In Realm's Authentication tab look for the Active Directory module you just configured;edit this entry:
- Uncheck
Return User DN to DataStore:
so that sAMAcoounyName is returned instead of user's DN
Important notice
In order to check effects of this area configuration have a look at the classes in com.sun.identity.authentication.modules.ldap
(OpenAM Auth LDAP module
).
Authorization (not subject of this post series) looks like being handled in com.sun.identity.idm.plugins.ldapv3
package, module OpenAM Core
.
PHA+Rm9yIGEgYmFzaWMgaW5zdGFsbGF0aW9uIHNlZSA8YSBocmVmPSJodHRwOi8vZm1hbmVhLmJsb2dzcG90LnJvLzIwMTMvMTAvaW5zdGFsbC1hbmQtY29uZmlndXJlLW9wZW5hbS1mb3Itc3ByaW5nLmh0bWwiPmh0dHA6Ly9mbWFuZWEuYmxvZ3Nwb3Qucm8vMjAxMy8xMC9pbnN0YWxsLWFuZC1jb25maWd1cmUtb3BlbmFtLWZvci1zcHJpbmcuaHRtbDwvYT4gdXAgdG8gY3JlYXRpbmcgdGhlIFNQIChjdXJyZW50IGluc3RhbGxhdGlvbiB3YXMgZG9uZSBvbiBUb21jYXQgOC4wIGFzIG9wcG9zZWQgdG8gNy4wIGZvciB0aGUgYWJvdmUgbWVudGlvbmVk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