From 23daa3a3818f0a18703a3b0ca95c7908326f95cb Mon Sep 17 00:00:00 2001 From: Mathieu Baudier Date: Thu, 17 Sep 2009 13:47:24 +0000 Subject: [PATCH] Centralize authentication git-svn-id: https://svn.argeo.org/commons/trunk@2949 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- pom.xml | 1 + security/demo/pom.xml | 9 ++- .../META-INF/MANIFEST.MF | 10 +++ .../META-INF/spring/ldap.xml | 62 +++++++++++++++++++ .../META-INF/spring/osgi.xml | 13 ++++ .../META-INF/MANIFEST.MF | 12 +--- .../WEB-INF/applicationContext.xml | 5 -- .../WEB-INF/ldap.xml | 36 ----------- .../WEB-INF/osgi.xml | 2 + .../WEB-INF/security.xml | 2 +- .../runtime/org.argeo.security.ria/pom.xml | 3 +- .../src/WEB-INF/applicationContext.xml | 1 + .../src/WEB-INF/osgi.xml | 13 ++++ .../src/WEB-INF/security.xml | 10 +-- 14 files changed, 118 insertions(+), 61 deletions(-) create mode 100644 security/modules/org.argeo.security.manager.ldap/META-INF/MANIFEST.MF create mode 100644 security/modules/org.argeo.security.manager.ldap/META-INF/spring/ldap.xml create mode 100644 security/modules/org.argeo.security.manager.ldap/META-INF/spring/osgi.xml delete mode 100644 security/modules/org.argeo.security.webapp/WEB-INF/ldap.xml create mode 100644 security/runtime/org.argeo.security.ria/src/WEB-INF/osgi.xml diff --git a/pom.xml b/pom.xml index 1ec5d05ce..064ddb278 100644 --- a/pom.xml +++ b/pom.xml @@ -10,6 +10,7 @@ 0.1 0.12.1-SNAPSHOT + 0.12.1-SNAPSHOT 0.1.21 2.0.0 0.8.2.1 diff --git a/security/demo/pom.xml b/security/demo/pom.xml index c397b63db..bc19cb063 100644 --- a/security/demo/pom.xml +++ b/security/demo/pom.xml @@ -38,11 +38,13 @@ org.springframework.osgi.extender, org.springframework.osgi.web.extender, org.argeo.dep.osgi.catalina.start, + org.argeo.security.manager.ldap, org.argeo.security.webapp, + org.argeo.security.ria, org.argeo.server.ads.server - ${basedir};in=*;ex=pom.xml;ex=target;ex=.*, + ${basedir};in=*;ex=pom.xml;ex=target;ex=.*;ex=*.ldif, ${basedir}/../modules;in=*;ex=pom.xml;ex=target;ex=.*, ${basedir}/../../server/modules;in=*;ex=pom.xml;ex=target;ex=.*, @@ -58,6 +60,11 @@ org.argeo.security.mvc 0.1.1-SNAPSHOT + + org.argeo.commons.security + org.argeo.security.ria + 0.1.1-SNAPSHOT + org.argeo.commons.server org.argeo.server.json diff --git a/security/modules/org.argeo.security.manager.ldap/META-INF/MANIFEST.MF b/security/modules/org.argeo.security.manager.ldap/META-INF/MANIFEST.MF new file mode 100644 index 000000000..bfcd8154b --- /dev/null +++ b/security/modules/org.argeo.security.manager.ldap/META-INF/MANIFEST.MF @@ -0,0 +1,10 @@ +Bundle-SymbolicName: org.argeo.security.manager.ldap +Bundle-Version: 0.1.1.SNAPSHOT +Import-Package: org.springframework.security.ldap, + org.springframework.security.providers, + org.springframework.security.providers.ldap, + org.springframework.security.providers.ldap.authenticator, + org.springframework.security.ldap.populator, + org.springframework.security.userdetails.ldap, + org.springframework.security, + org.springframework.ldap.core.support diff --git a/security/modules/org.argeo.security.manager.ldap/META-INF/spring/ldap.xml b/security/modules/org.argeo.security.manager.ldap/META-INF/spring/ldap.xml new file mode 100644 index 000000000..49a2c93d1 --- /dev/null +++ b/security/modules/org.argeo.security.manager.ldap/META-INF/spring/ldap.xml @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + uid={0},ou=users + + + + + + + + + + + + + + + + + + diff --git a/security/modules/org.argeo.security.manager.ldap/META-INF/spring/osgi.xml b/security/modules/org.argeo.security.manager.ldap/META-INF/spring/osgi.xml new file mode 100644 index 000000000..c99e04dcf --- /dev/null +++ b/security/modules/org.argeo.security.manager.ldap/META-INF/spring/osgi.xml @@ -0,0 +1,13 @@ + + + + + + \ No newline at end of file diff --git a/security/modules/org.argeo.security.webapp/META-INF/MANIFEST.MF b/security/modules/org.argeo.security.webapp/META-INF/MANIFEST.MF index 124179eb3..f52b69aa2 100644 --- a/security/modules/org.argeo.security.webapp/META-INF/MANIFEST.MF +++ b/security/modules/org.argeo.security.webapp/META-INF/MANIFEST.MF @@ -6,16 +6,10 @@ Import-Package: javax.servlet, javax.servlet.resources, org.argeo.security.mvc, org.argeo.server.json.mvc, + org.springframework.ldap.core.support, org.springframework.osgi.web.context.support, - org.springframework.security.userdetails.memory, + org.springframework.security, org.springframework.web.context, org.springframework.web.context.support, org.springframework.web.filter, - org.springframework.web.servlet, - org.springframework.security.ldap, - org.springframework.security.providers.ldap, - org.springframework.security.providers.ldap.authenticator, - org.springframework.security.ldap.populator, - org.springframework.security.userdetails.ldap, - org.springframework.security, - org.springframework.ldap.core.support + org.springframework.web.servlet diff --git a/security/modules/org.argeo.security.webapp/WEB-INF/applicationContext.xml b/security/modules/org.argeo.security.webapp/WEB-INF/applicationContext.xml index 7d0e6beb0..ee1621d61 100644 --- a/security/modules/org.argeo.security.webapp/WEB-INF/applicationContext.xml +++ b/security/modules/org.argeo.security.webapp/WEB-INF/applicationContext.xml @@ -7,12 +7,7 @@ http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd"> - - - diff --git a/security/modules/org.argeo.security.webapp/WEB-INF/ldap.xml b/security/modules/org.argeo.security.webapp/WEB-INF/ldap.xml deleted file mode 100644 index 7e2cac430..000000000 --- a/security/modules/org.argeo.security.webapp/WEB-INF/ldap.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - diff --git a/security/modules/org.argeo.security.webapp/WEB-INF/osgi.xml b/security/modules/org.argeo.security.webapp/WEB-INF/osgi.xml index 1b46c0eb4..bb5722691 100644 --- a/security/modules/org.argeo.security.webapp/WEB-INF/osgi.xml +++ b/security/modules/org.argeo.security.webapp/WEB-INF/osgi.xml @@ -6,4 +6,6 @@ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"> + \ No newline at end of file diff --git a/security/modules/org.argeo.security.webapp/WEB-INF/security.xml b/security/modules/org.argeo.security.webapp/WEB-INF/security.xml index 8e5fd4356..7b9bc9d80 100644 --- a/security/modules/org.argeo.security.webapp/WEB-INF/security.xml +++ b/security/modules/org.argeo.security.webapp/WEB-INF/security.xml @@ -3,7 +3,7 @@ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.4.xsd"> - + diff --git a/security/runtime/org.argeo.security.ria/pom.xml b/security/runtime/org.argeo.security.ria/pom.xml index 95aee7c06..b224bc2d2 100644 --- a/security/runtime/org.argeo.security.ria/pom.xml +++ b/security/runtime/org.argeo.security.ria/pom.xml @@ -116,7 +116,8 @@ org.springframework.web.context, org.springframework.osgi.web.context.support, org.springframework.web.filter, - org.springframework.security.context + org.springframework.ldap.core.support, + org.springframework.security org.argeo.security.ria diff --git a/security/runtime/org.argeo.security.ria/src/WEB-INF/applicationContext.xml b/security/runtime/org.argeo.security.ria/src/WEB-INF/applicationContext.xml index 415bdc304..2b8a2e744 100644 --- a/security/runtime/org.argeo.security.ria/src/WEB-INF/applicationContext.xml +++ b/security/runtime/org.argeo.security.ria/src/WEB-INF/applicationContext.xml @@ -7,6 +7,7 @@ http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd"> + \ No newline at end of file diff --git a/security/runtime/org.argeo.security.ria/src/WEB-INF/osgi.xml b/security/runtime/org.argeo.security.ria/src/WEB-INF/osgi.xml new file mode 100644 index 000000000..d344cc8d6 --- /dev/null +++ b/security/runtime/org.argeo.security.ria/src/WEB-INF/osgi.xml @@ -0,0 +1,13 @@ + + + + + \ No newline at end of file diff --git a/security/runtime/org.argeo.security.ria/src/WEB-INF/security.xml b/security/runtime/org.argeo.security.ria/src/WEB-INF/security.xml index ed0f29bc3..883c65553 100644 --- a/security/runtime/org.argeo.security.ria/src/WEB-INF/security.xml +++ b/security/runtime/org.argeo.security.ria/src/WEB-INF/security.xml @@ -3,15 +3,9 @@ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.4.xsd"> - - + + - - - - - - -- 2.30.2