Skip to content

Instantly share code, notes, and snippets.

Warren Strange wstrange

Block or report user

Report or block wstrange

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@wstrange
wstrange / oracle
Created Sep 7, 2011
Oracle startup script
View oracle
#!/bin/bash
#
# oracle Init file for starting and stopping
# Oracle Database. Script is valid for 10g and 11g versions.
#
# chkconfig: 35 80 30
# description: Oracle Database startup script
# Source function library.
View proxypassexample
# Example Apache config to reverse proxy /ui to a back end app
# Also uses LDAP authentication on /ui and sets the REMOTE_USER header to the uid
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
@wstrange
wstrange / wlstart.sh
Created Oct 20, 2011
Startup script for Weblogic Admin domain and managed servers
View wlstart.sh
#!/bin/bash
# Start up script for a weblogic admin domain and associated service domains
# This is meant for demos and interactive usage
# A new gnome-terminal will be launched to show the output. You need
# X running
#
# Usage: wlstart.sh domain servers..
# Example: wlstart.sh IDMDomain wls_oif1
@wstrange
wstrange / configfedlet.sh
Created Nov 4, 2011
Runs the fedlet configurator
View configfedlet.sh
#!/bin/sh
# Configure the fedlet
# remove the target
rm -fr ~/fedlet.old
mv ~/fedlet ~/fedlet.old
rm -f /var/tmp/metadata*
# Get the IDP meta data fresh from OIF
@wstrange
wstrange / config.json
Created Nov 5, 2013
OpenIG Sample config.json showing Tomcat form login
View config.json
{
"_comment" : "Sample OpenIG config for tomcat form login. Assumes tomcat samples are deployed to instance localhost:48080",
"heap":{
"objects":[
{
"name":"HandlerServlet",
"type":"HandlerServlet",
"config":{
"handler":"DispatchHandler",
"baseURI":"http://openam.example.com:48080/"
@wstrange
wstrange / openam-setcookie.jsp
Created Dec 15, 2013
Small JSP that sets cookies passed as parameters - then redirects to /openam. This is hack (dont ever use this for production - the cookies should not be sent as a param). This is used to show how another program can get an OpenAM Session token using the REST API and use it to SSO to OpenAM. Deploy this sample in the same container (same cookie …
View openam-setcookie.jsp
<%@page import="javax.servlet.http.Cookie"%>
<%@ page import = "java.util.Map" %>
<html>
<head>
<title>Set Cookie and redirect to openam</title>
</head>
<body>
<%
Map<String, String[]> parameters = request.getParameterMap();
View logstash.conf
input {
file {
type => idmRecon
start_position => beginning
path => "/opt/openidm/audit/recon.csv"
}
file {
type => idmActivity
start_position => beginning
path => "/opt/openidm/audit/activity.csv"
View apache conf for OIDC module
OIDCProviderIssuer https://openam.example.com:8443/openam
OIDCProviderAuthorizationEndpoint https://openam.example.com:8443/openam/oauth2/authorize
OIDCProviderTokenEndpoint https://openam.example.com:8443/openam/oauth2/access_token
OIDCProviderTokenEndpointAuth client_secret_post
OIDCProviderUserInfoEndpoint https://openam.example.com:8443/openam/oauth2/userinfo
#OIDCProviderJwksUri https://www.googleapis.com/oauth2/v2/certs
#OIDCPublicKeyFiles /etc/apache2/pub.pem
OIDCSSLValidateServer Off
View designer.html
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
</template>
<script>
@wstrange
wstrange / logstash for OpenIDM OpenAM OpenDJ
Created Jul 31, 2014
logstash tes - openidm openam opendj
View logstash for OpenIDM OpenAM OpenDJ
input {
file {
type => idmRecon
# start_position => beginning
path => "/opt/openidm/audit/recon.csv"
}
file {
type => idmActivity
# start_position => beginning
path => "/opt/openidm/audit/activity.csv"
You can’t perform that action at this time.