- Copyright (c) 2017 SATOH Fumiyasu @ OSS Technology Corp., Japan
- License: GNU General Public License version 3
Blah, Blah. I'm here! I'm here!
$ git clone [email protected]:fumiyas/openam-hack.git
...
$ cd openam-hack/bin
$ make
...
$ sudo make install
...
$ sudo install -d -m 0755 /usr/local/etc/openam
$ sudo install -m 0640 ../etc/ssoadmjson.conf /usr/local/etc/openam/
$ sudoedit /usr/local/etc/openam/ssoadmjson.conf
...
Reset amAdmin's password by OpenDJ admin (cn=Directory Manager).
$ ampasswordreset --help
...help messages...
$ ampasswordreset 'cn=Directory Manager' DirectoryManager.password amAdmin.password
$ ampasswordreset -n amService-URLAccessAgent -D 'cn=Directory Manager' DirectoryManager.password
Administration tool by JSON data via ForgeRock Common REST API.
WARNING: Currently, server certificate verification is not performed!
# ssoadmjson --help
...help messages...
# echo '{"realm": "SiteRealm"}' |ssoadmjson create realms
{
"realmCreated": "/SiteRealm"
}
# ssoadmjson read realms
[
"/",
"/SiteRealm"
]
# ssoadmjson delete realms /SiteRealm
{
"success": "true"
}
# cat resourcetype-url.json
{
"name": "URLResourceType",
"actions": {
"HEAD": true,
"GET": true,
"POST": true
},
"patterns": [
"*://*:*/*",
"*://*:*/*?*"
]
}
# ssoadmjson create resourcetypes <resourcetype-url.json
{
"actions": {
"GET": true,
"HEAD": true,
"POST": true
},
"description": null,
"name": "URLResourceType",
"patterns": [
"*://*:*/*",
"*://*:*/*?*"
],
"uuid": "b99c6ad0-8274-4b60-95bc-98b9b51b54e7"
}
# /opt/osstech/bin/ssoadmjson get resourcetypes b99c6ad0-8274-4b60-95bc-98b9b51b54e7
{
"actions": {
"GET": true,
"HEAD": true,
"POST": true
},
"description": "",
"name": "URLResourceType",
"patterns": [
"*://*:*/*",
"*://*:*/*?*"
],
"uuid": "b99c6ad0-8274-4b60-95bc-98b9b51b54e7"
}
# /opt/osstech/bin/ssoadmjson get resourcetypes 'name co "URL"'
[
{
"actions": {
"GET": true,
"HEAD": true,
"POST": true
},
"description": "",
"name": "URLResourceType",
"patterns": [
"*://*:*/*",
"*://*:*/*?*"
],
"uuid": "b99c6ad0-8274-4b60-95bc-98b9b51b54e7"
},
{
"actions": {
"DELETE": true,
"GET": true,
"HEAD": true,
"OPTIONS": true,
"PATCH": true,
"POST": true,
"PUT": true
},
"description": "The built-in URL Resource Type available to OpenAM Policies.",
"name": "URL",
"patterns": [
"*://*:*/*",
"*://*:*/*?*"
],
"uuid": "76656a38-5f8e-401b-83aa-4ccb74ce88d2"
}
]
-
- Developing Client Applications - OpenAM Developer's Guide - Docs - ForgeRock BackStage