diff options
author | Henrik Lund Kramshoej <hlk@kramse.org> | 2017-07-11 11:27:53 +0200 |
---|---|---|
committer | Henrik Lund Kramshoej <hlk@kramse.org> | 2017-07-11 11:27:53 +0200 |
commit | 89cdabb24a311e429d6acca4c3b19357af221ad4 (patch) | |
tree | a0cd1058c29ce4f1c5ea3dd8f474c6c290f14827 | |
parent | 13d9d83b6182fce382061da380e61593a35cac13 (diff) |
Added the right LDAP settings, works now with my password
-rw-r--r-- | apache-sp/Dockerfile | 1 | ||||
-rw-r--r-- | apache-sp/nordunet.png | bin | 0 -> 20823 bytes | |||
-rw-r--r-- | apache-sp/shibd/shibboleth2.xml | 2 | ||||
-rw-r--r-- | conf-from-container/shell.sh | 2 | ||||
-rw-r--r-- | nordu-ldap.properties | 12 | ||||
-rw-r--r-- | template-config/attribute-resolver.xml | 8 |
6 files changed, 17 insertions, 8 deletions
diff --git a/apache-sp/Dockerfile b/apache-sp/Dockerfile index 51cc408..27f5013 100644 --- a/apache-sp/Dockerfile +++ b/apache-sp/Dockerfile @@ -10,6 +10,7 @@ ADD apache-conf/*.conf /etc/apache2/sites-available/ ADD shibd/shibboleth2.xml /etc/shibboleth/ ADD secure /var/www/secure ADD entrypoint.sh /entrypoint.sh +ADD nordunet.png /usr/share/shibboleth/nordunet.png RUN chmod a+rx /entrypoint.sh EXPOSE 443 EXPOSE 80 diff --git a/apache-sp/nordunet.png b/apache-sp/nordunet.png Binary files differnew file mode 100644 index 0000000..9948f66 --- /dev/null +++ b/apache-sp/nordunet.png diff --git a/apache-sp/shibd/shibboleth2.xml b/apache-sp/shibd/shibboleth2.xml index c6a759f..e428170 100644 --- a/apache-sp/shibd/shibboleth2.xml +++ b/apache-sp/shibd/shibboleth2.xml @@ -25,7 +25,7 @@ </SessionInitiator> </Sessions> <Errors supportContact="test@example.com" - helpLocation="/about" /> + helpLocation="/about" logoLocation="/shibboleth-sp/nordunet.png" /> <MetadataProvider type="XML" uri="file:///var/www/metadata.xml" backingFilePalth="metadata.xml" reloadInterval="300"></MetadataProvider> <AttributeExtractor type="XML" validate="true" reloadChanges="false" path="attribute-map.xml"/> <AttributeResolver type="Query" subjectMatch="true"/> diff --git a/conf-from-container/shell.sh b/conf-from-container/shell.sh index 182d4c1..e6f21d8 100644 --- a/conf-from-container/shell.sh +++ b/conf-from-container/shell.sh @@ -1 +1 @@ -docker exec -ti `docker ps | cut -f 1 -d ' ' | grep -v "CONTAINER"` bash +docker exec -ti `docker ps | grep shibboleth-docker | cut -f 1 -d ' ' ` bash diff --git a/nordu-ldap.properties b/nordu-ldap.properties index dd43f21..d265541 100644 --- a/nordu-ldap.properties +++ b/nordu-ldap.properties @@ -1,10 +1,10 @@ idp.authn.LDAP.ldapURL=ldaps://ldap.nordu.net -idp.authn.LDAP.authenticator = bindSearchAuthenticator -idp.authn.LDAP.useStartTLS = true -idp.authn.LDAP.useSSL = false -idp.authn.LDAP.sslConfig = certificateTrust +idp.authn.LDAP.authenticator = anonSearchAuthenticator +idp.authn.LDAP.useStartTLS = false +idp.authn.LDAP.useSSL = true +idp.authn.LDAP.sslConfig = jvmTrust #idp.authn.LDAP.trustCertificates = %{idp.home}/credentials/ldap-server.crt -idp.authn.LDAP.baseDN = dc=nordu,dc=net -idp.authn.LDAP.userFilter = (uid=$requestContext.principalName) +idp.authn.LDAP.baseDN = ou=People,dc=nordu,dc=net +#idp.authn.LDAP.userFilter = (uid=$requestContext.principalName) idp.authn.LDAP.bindDN = dc=nordu,dc=net idp.authn.LDAP.bindDNCredential = blahblah diff --git a/template-config/attribute-resolver.xml b/template-config/attribute-resolver.xml index 30627d5..a3f7de2 100644 --- a/template-config/attribute-resolver.xml +++ b/template-config/attribute-resolver.xml @@ -79,6 +79,14 @@ %{idp.attribute.resolver.LDAP.searchFilter} ]]> </FilterTemplate> + <ConnectionPool + minPoolSize="%{idp.pool.LDAP.minSize:3}" + maxPoolSize="%{idp.pool.LDAP.maxSize:10}" + blockWaitTime="%{idp.pool.LDAP.blockWaitTime:PT3S}" + validatePeriodically="%{idp.pool.LDAP.validatePeriodically:true}" + validateTimerPeriod="%{idp.pool.LDAP.validatePeriod:PT5M}" + expirationTime="%{idp.pool.LDAP.idleTime:PT10M}" + failFastInitialize="%{idp.pool.LDAP.failFastInitialize:false}" /> </DataConnector> <!-- <DataConnector id="myLDAP" xsi:type="LDAPDirectory" ldapURL="%{idp.attribute.resolver.LDAP.ldapURL}" |