Skip to content

Instantly share code, notes, and snippets.

amPolicy:06/30/2015 08:05:07:084 PM MDT: Thread[http-bio-8080-exec-22,5,main]: TransactionId[c1112768-d538-4bf3-8cdc-93387ec0b6cf]
Rendering policy request for action evaluate
amPolicy:06/30/2015 08:05:07:086 PM MDT: Thread[http-bio-8080-exec-22,5,main]: TransactionId[c1112768-d538-4bf3-8cdc-93387ec0b6cf]
Evaluating policy request for action evaluate under realm / within the application context test
Entitlement:06/30/2015 08:05:07:086 PM MDT: Thread[http-bio-8080-exec-22,5,main]: TransactionId[c1112768-d538-4bf3-8cdc-93387ec0b6cf]
URLResourceName: url query=null
Entitlement:06/30/2015 08:05:07:086 PM MDT: Thread[http-bio-8080-exec-22,5,main]: TransactionId[c1112768-d538-4bf3-8cdc-93387ec0b6cf]
[PolicyEval] PrivilegeEvaluator:init()
Entitlement:06/30/2015 08:05:07:086 PM MDT: Thread[http-bio-8080-exec-22,5,main]: TransactionId[c1112768-d538-4bf3-8cdc-93387ec0b6cf]
[PolicyEval] subject: id=demo,ou=user,dc=openam,dc=forgerock,dc=org
@wstrange
wstrange / cts-setup.sh
Created August 6, 2015 20:31
Modified version of CTS config script for OpenAM
#!/usr/bin/env bash
# Prepare CTS. A variant of the script that is in the Admin guide
#
# copyright (C) 2014 ForgeRock AS
#
# cts-setup.sh: This script installs and configures an external CTS data store.
# It assumes that you have downloaded the OpenDJ zip file to a local
# folder.
# Reset the tmp folder
@wstrange
wstrange / getnightly.sh
Created September 15, 2015 00:53
Download Nightly ForgeRock binaries
#!/bin/bash
# Script that downloads all nightly builds into a staging directory
# Vagrant guests should have this staging directory mounted locally.
# This script leaves the product names as generic (no release in the name), but creates a RELEASE file
# with all of the version info. It is suggest to copy this RELEASE file into the guest to have a record
# of which binaries got installed.
dir=./staging/
@wstrange
wstrange / Dockefile
Created January 13, 2016 00:31
Dockerfile test
# Dockerfile to package this app up so we can run it on kubernetes
# This will run pub get and build the app.
# When run it expects to find bin/server.dart
FROM google/dart-runtime
@wstrange
wstrange / kube-setcontext.sh
Last active April 4, 2016 21:25
Setup kubectl context for using helm local docker solution
!/usr/bin/env bash
# Copyright 2016 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
sh: can't create /proc/sys/net/ipv4/neigh/weave/base_reachable_time: Read-only file system
1491e5db25cf1c4e06bb3b8c3f79e27004aedfb280a8e655ad1b64005cd9c478
weave container is not present. Have you launched it?
Starting LocalKube...
Starting etcd...
2016-04-11 16:18:32.323453 I | etcdserver: recovered store from snapshot at index 30003
2016-04-11 16:18:32.323493 I | etcdserver: name = kubeetcd
2016-04-11 16:18:32.323499 I | etcdserver: data dir = /var/localkube/data
2016-04-11 16:18:32.323505 I | etcdserver: member dir = /var/localkube/data/member
2016-04-11 16:18:32.323509 I | etcdserver: heartbeat = 100ms
@wstrange
wstrange / djcert.sh
Last active June 24, 2016 22:32
Create a CA and a server certificate for OpenDJ using cfssl
#!/bin/bash
# Script to create a self signed CA using cfssl, and create
# server certs for DJ that are signed by this CA.
# Where we store the CA certificates
CA_HOME=~/etc/ca
# Where OpenDJ is insstalled
OPENDJ_HOME=~/packages/opendj
@wstrange
wstrange / create_AM_bootstrap.sh
Last active July 14, 2016 20:58
Create an OpenAM bootstrap file from environment variables
#!/usr/bin/env bash
# Shell script to Create bootstrap file from env vars.
# redirect this to ~/openam/bootstrap
#
#
# This is what the template looks like
# From BootstrapCreator.java:
# "@DS_PROTO@://@DS_HOST@/@INSTANCE_NAME@" +
# "?user=@DSAMEUSER_NAME@&pwd=@DSAMEUSER_PWD@" +
# "&dsbasedn=@BASE_DN@" +
@wstrange
wstrange / genplugins.groovy
Created August 26, 2016 21:58
Jenkins script to list plugins
// go to http://localhost:8080/script
Jenkins.instance.pluginManager.plugins.each{
plugin ->
println ("${plugin.getShortName()}:${plugin.getVersion()}")
}
bin/searchrate -p 389 -h userstore-0.userstore -D "cn=directory manager" -w password \
-F -c 10 -t 10 --baseDn "dc=openam,dc=forgerock,dc=org" \
-g "rand(0,1000)" "(uid=user.%d)"
bin/modrate -p 389 -D "cn=directory manager" -h userstore-0.userstore -w password \
-F -c 20 -t 10 -b "uid=user.%d,ou=People,dc=openam,dc=forgerock,dc=org" \