summaryrefslogtreecommitdiffstats
path: root/pki/base/common/src/com/netscape/cms/publish/mappers
diff options
context:
space:
mode:
authorvakwetu <vakwetu@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2010-12-22 18:18:37 +0000
committervakwetu <vakwetu@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2010-12-22 18:18:37 +0000
commite4be104deeed238f176050dc6c0db1504d9253da (patch)
treeaa20d329fd3ee951626f24edda416a84a669ee97 /pki/base/common/src/com/netscape/cms/publish/mappers
parent5a467a1aa4e26db85e25a35275c5dfd0d320d7b2 (diff)
downloadpki-e4be104deeed238f176050dc6c0db1504d9253da.tar.gz
pki-e4be104deeed238f176050dc6c0db1504d9253da.tar.xz
pki-e4be104deeed238f176050dc6c0db1504d9253da.zip
Bugzilla Bug 491183 - rhcs rfe - add rfc 4523 support for pkiUser and pkiCA, obsolete 2252 and 2256
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@1663 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/base/common/src/com/netscape/cms/publish/mappers')
-rw-r--r--pki/base/common/src/com/netscape/cms/publish/mappers/LdapCaSimpleMap.java34
1 files changed, 2 insertions, 32 deletions
diff --git a/pki/base/common/src/com/netscape/cms/publish/mappers/LdapCaSimpleMap.java b/pki/base/common/src/com/netscape/cms/publish/mappers/LdapCaSimpleMap.java
index 0734e5d7f..6bf4ca8d5 100644
--- a/pki/base/common/src/com/netscape/cms/publish/mappers/LdapCaSimpleMap.java
+++ b/pki/base/common/src/com/netscape/cms/publish/mappers/LdapCaSimpleMap.java
@@ -47,7 +47,6 @@ import com.netscape.certsrv.publish.*;
public class LdapCaSimpleMap implements ILdapMapper, IExtendedPluginInfo {
protected static final String PROP_DNPATTERN = "dnPattern";
protected static final String PROP_CREATECA = "createCAEntry";
- protected static final String PROP_CA_V2 = "CAEntryV2";
protected String mDnPattern = null;
protected boolean mCreateCAEntry = true;
@@ -97,7 +96,6 @@ public class LdapCaSimpleMap implements ILdapMapper, IExtendedPluginInfo {
"$subj means: take the attribute from the certificate subject name. " +
"$ext means: take the attribute from the certificate extension",
"createCAEntry;boolean;If checked, CA entry will be created automatically",
- "CAEntryV2;boolean;If checked, CA entry will be created using certificationAuthority-v2",
IExtendedPluginInfo.HELP_TOKEN + ";configuration-ldappublish-mapper-casimplemapper",
IExtendedPluginInfo.HELP_TEXT + ";Describes how to form the LDAP DN of the entry to publish to"
};
@@ -250,26 +248,10 @@ public class LdapCaSimpleMap implements ILdapMapper, IExtendedPluginInfo {
throws LDAPException {
LDAPAttributeSet attrs = new LDAPAttributeSet();
// OID 2.5.6.16
- String caOc[] = null;
- boolean isV2 = false;
- try {
- isV2 = mConfig.getBoolean(PROP_CA_V2, false);
- } catch (EBaseException e) {
- // do nothing; default false
- }
- if (isV2) {
- caOc = new String[] {"top",
+ String caOc[] = new String[] {"top",
"person",
"organizationalPerson",
- "inetOrgPerson",
- "certificationAuthority-v2"};
- } else {
- caOc = new String[] {"top",
- "person",
- "organizationalPerson",
- "inetOrgPerson",
- "certificationAuthority"};
- }
+ "inetOrgPerson"};
String oOc[] = {"top",
"organization"};
@@ -282,16 +264,6 @@ public class LdapCaSimpleMap implements ILdapMapper, IExtendedPluginInfo {
attrs.add(new LDAPAttribute("cn", attrval[0]));
attrs.add(new LDAPAttribute("sn", attrval[0]));
attrs.add(new LDAPAttribute("objectclass", caOc));
- attrs.add(new LDAPAttribute(
- "authorityRevocationList;binary", ""));
- attrs.add(new LDAPAttribute(
- "cACertificate;binary", ""));
- attrs.add(new LDAPAttribute(
- "certificateRevocationList;binary", ""));
- if (isV2) {
- attrs.add(new LDAPAttribute(
- "deltaRevocationList;binary", ""));
- }
LDAPEntry entry = new LDAPEntry(dn, attrs);
conn.add(entry);
@@ -366,7 +338,6 @@ public class LdapCaSimpleMap implements ILdapMapper, IExtendedPluginInfo {
v.addElement(PROP_DNPATTERN + "=");
v.addElement(PROP_CREATECA + "=true");
- v.addElement(PROP_CA_V2 + "=false");
return v;
}
@@ -381,7 +352,6 @@ public class LdapCaSimpleMap implements ILdapMapper, IExtendedPluginInfo {
mConfig.getString(PROP_DNPATTERN));
}
v.addElement(PROP_CREATECA + "=" + mConfig.getBoolean(PROP_CREATECA, true));
- v.addElement(PROP_CA_V2 + "=" + mConfig.getBoolean(PROP_CA_V2, false));
} catch (Exception e) {
}
return v;