diff options
| author | Andrew Branson <andrew.branson@cern.ch> | 2014-07-23 11:08:05 +0200 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2014-07-23 11:08:05 +0200 |
| commit | 6244fae0aeb2e0986593387ed8fece48fba847fd (patch) | |
| tree | 22510468d3ec965960d05d30899d3a4a9344b82b | |
| parent | 58463add2582dc438e6abe7b6f502a655232a709 (diff) | |
Move openldap files to ldap package
Mark execute(ItemProxy, Job) non-public - should not be part of API,
Jobs are fixed to a particular Item.
Check null on module manager before calling shutdown scripts during
close().
Remove auto-generated lines in ObjectProperties
| -rw-r--r-- | bin/openldap/README | 5 | ||||
| -rw-r--r-- | bin/openldap/cristal.schema | 37 | ||||
| -rw-r--r-- | bin/openldap/slapd.conf | 13 | ||||
| -rw-r--r-- | src/main/java/com/c2kernel/entity/proxy/AgentProxy.java | 2 | ||||
| -rw-r--r-- | src/main/java/com/c2kernel/process/Gateway.java | 3 | ||||
| -rw-r--r-- | src/main/java/com/c2kernel/utils/ObjectProperties.java | 2 |
6 files changed, 3 insertions, 59 deletions
diff --git a/bin/openldap/README b/bin/openldap/README deleted file mode 100644 index daa0b9c..0000000 --- a/bin/openldap/README +++ /dev/null @@ -1,5 +0,0 @@ -cristal2.schema goes in OpenLDAP/schemas, or change the include line to point to it here.
-
-edit your slapd.conf to include it.
-edit the suffix and rootdn and rootpass
-use this slapd to help you
diff --git a/bin/openldap/cristal.schema b/bin/openldap/cristal.schema deleted file mode 100644 index 495c576..0000000 --- a/bin/openldap/cristal.schema +++ /dev/null @@ -1,37 +0,0 @@ -attributetype ( 1.3.6.1.4.1.96.64.10.1 NAME 'intsyskey'
- EQUALITY integerMatch
- SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 )
-
-attributetype ( 1.3.6.1.4.1.96.64.10.6 NAME 'ior'
- EQUALITY caseIgnoreMatch
- SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
- SINGLE-VALUE )
-
-attributetype ( 1.3.6.1.4.1.96.64.10.7 NAME 'cristalprop'
- EQUALITY caseIgnoreMatch
- SUBSTR caseIgnoreSubstringsMatch
- SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
-
-objectclass ( 1.3.6.1.4.1.96.64.10.10 NAME 'cristalentity' SUP top STRUCTURAL
- MUST ( cn $ objectclass )
- MAY ( intsyskey $ ior $ cristalprop ) )
-
-objectclass ( 1.3.6.1.4.1.96.64.10.13 NAME 'cristalcontext' SUP top STRUCTURAL
- MUST ( cn $ objectclass )
- MAY ( intsyskey ) )
-
-objectclass ( 1.3.6.1.4.1.96.64.10.15 NAME 'aliasObject' SUP alias STRUCTURAL
- MUST ( cn $ objectclass $ aliasedObjectName ) )
-
-# agent
-attributetype ( 1.3.6.1.4.1.96.64.10.8 NAME 'jobList'
- EQUALITY booleanMatch
- SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 )
-
- # uid must store userName if agent (for authentication to work)
-objectclass ( 1.3.6.1.4.1.96.64.10.14 NAME 'cristalagent' SUP cristalentity STRUCTURAL
- MUST ( userPassword $ uid ) )
-
-objectclass ( 1.3.6.1.4.1.96.64.10.16 NAME 'cristalrole' SUP cristalentity STRUCTURAL
- MAY ( jobList $ uniqueMember ) )
-
diff --git a/bin/openldap/slapd.conf b/bin/openldap/slapd.conf deleted file mode 100644 index ebf42df..0000000 --- a/bin/openldap/slapd.conf +++ /dev/null @@ -1,13 +0,0 @@ -include /etc/openldap/schema/core.schema
-include cristal-kernel/bin/openldap/cristal.schema
-pidfile /var/run/slapd/slapd.pid
-argsfile /var/run/slapd/slapd.args
-
-moduleload back_bdb.la
-
-database bdb
-suffix "o=cern,c=ch"
-rootdn "cn=admin,o=cern,c=ch"
-rootpw cristal
-index objectClass eq
-index cn eq,pres,sub
diff --git a/src/main/java/com/c2kernel/entity/proxy/AgentProxy.java b/src/main/java/com/c2kernel/entity/proxy/AgentProxy.java index e5a52f0..173f239 100644 --- a/src/main/java/com/c2kernel/entity/proxy/AgentProxy.java +++ b/src/main/java/com/c2kernel/entity/proxy/AgentProxy.java @@ -92,7 +92,7 @@ public class AgentProxy extends ItemProxy * @param job - the job to execute
* @throws ScriptErrorException
*/
- public String execute(ItemProxy item, Job job)
+ protected String execute(ItemProxy item, Job job)
throws AccessRightsException,
InvalidTransitionException,
ObjectNotFoundException,
diff --git a/src/main/java/com/c2kernel/process/Gateway.java b/src/main/java/com/c2kernel/process/Gateway.java index adbaeb6..8a34e72 100644 --- a/src/main/java/com/c2kernel/process/Gateway.java +++ b/src/main/java/com/c2kernel/process/Gateway.java @@ -281,7 +281,8 @@ public class Gateway public static void close()
{
// run shutdown module scripts
- mModules.runScripts("shutdown");
+ if (mModules != null)
+ mModules.runScripts("shutdown");
// shut down servers if running
if (mCorbaServer != null)
diff --git a/src/main/java/com/c2kernel/utils/ObjectProperties.java b/src/main/java/com/c2kernel/utils/ObjectProperties.java index 731b009..8dacd2c 100644 --- a/src/main/java/com/c2kernel/utils/ObjectProperties.java +++ b/src/main/java/com/c2kernel/utils/ObjectProperties.java @@ -6,12 +6,10 @@ import java.util.Properties; public class ObjectProperties extends Properties {
public ObjectProperties() {
- // TODO Auto-generated constructor stub
}
public ObjectProperties(Properties defaults) {
super(defaults);
- // TODO Auto-generated constructor stub
}
public String getString(String propName) {
|
