You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2024/08/22 06:26:43 UTC
(directory-server) branch master updated: Partial fix to DIRSERVER_1728: kerberos-codec
This is an automated email from the ASF dual-hosted git repository.
elecharny pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-server.git
The following commit(s) were added to refs/heads/master by this push:
new 75f8ae8cbb Partial fix to DIRSERVER_1728: kerberos-codec
75f8ae8cbb is described below
commit 75f8ae8cbb15b3793a0b1ecccf44fe7800a5a180
Author: emmanuel lecharny <el...@apache.org>
AuthorDate: Thu Aug 22 08:26:39 2024 +0200
Partial fix to DIRSERVER_1728: kerberos-codec
---
.../org/apache/directory/server/i18n/I18n.java | 249 +--------------------
.../apache/directory/server/i18n/errors.properties | 247 +-------------------
.../shared/crypto/encryption/RandomKeyFactory.java | 2 +-
.../shared/store/PrincipalStoreEntryModifier.java | 2 +-
.../encryptionKey/actions/EncryptionKeyInit.java | 4 +-
.../principalName/actions/PrincipalNameInit.java | 4 +-
.../principalName/actions/StoreNameString.java | 8 +-
.../shared/kerberos/components/EncryptionKey.java | 6 +-
.../shared/kerberos/components/PrincipalName.java | 6 +-
9 files changed, 36 insertions(+), 492 deletions(-)
diff --git a/i18n/src/main/java/org/apache/directory/server/i18n/I18n.java b/i18n/src/main/java/org/apache/directory/server/i18n/I18n.java
index 8ba1c3c5fa..32c76f3b04 100644
--- a/i18n/src/main/java/org/apache/directory/server/i18n/I18n.java
+++ b/i18n/src/main/java/org/apache/directory/server/i18n/I18n.java
@@ -409,6 +409,16 @@ public enum I18n
ERR_31009_NULL_VALUE_COMPARATOR("ERR_31009_NULL_VALUE_COMPARATOR"),
// apacheds-kerberos-codec errors 32000 - 32999
+ ERR_32000_PDU_BUFFER_SIZE_TOO_SMALL("ERR_32000_PDU_BUFFER_SIZE_TOO_SMALL"),
+ ERR_32001_CANNOT_ENCODE_ENCRYPTION_KEY("ERR_32001_CANNOT_ENCODE_ENCRYPTION_KEY"),
+ ERR_32002_CANNOT_ENCODE__PRINCIPAL_NAME("ERR_32002_CANNOT_ENCODE__PRINCIPAL_NAME"),
+ ERR_32003_CANNOT_PUT_PDU_IN_NULL_BUFFER("ERR_32003_CANNOT_PUT_PDU_IN_NULL_BUFFER"),
+ ERR_32004_NOT_SUPPORTED_ENCRYPTION_TYPE("ERR_32004_NOT_SUPPORTED_ENCRYPTION_TYPE"),
+ ERR_32005_KERBEROS_KEY_CANNOT_BE_A_STRING("ERR_32005_KERBEROS_KEY_CANNOT_BE_A_STRING"),
+ ERR_32006_NULL_PDU_LENGTH("ERR_32006_NULL_PDU_LENGTH"),
+ ERR_32007_NOT_A_KERBEROS_STRING("ERR_32007_NOT_A_KERBEROS_STRING"),
+
+
// apacheds-ldif-partition errors 33000 - 33999
ERR_33000_CANNOT_INITIALIZE_PARTITION_WITH_INVALID_SUFFIX("ERR_33000_CANNOT_INITIALIZE_PARTITION_WITH_INVALID_SUFFIX"),
ERR_33001_PARTITION_CANNOT_BE_CREATED("ERR_33001_PARTITION_CANNOT_BE_CREATED"),
@@ -557,263 +567,26 @@ public enum I18n
ERR_49045_SCOPE_NODE_NOT_IN_SUBTREE_SCOPE("ERR_49045_SCOPE_NODE_NOT_IN_SUBTREE_SCOPE"),
- ERR_1("ERR_1"),
- ERR_7("ERR_7"),
- ERR_32("ERR_32"),
- ERR_43("ERR_43"),
- ERR_44("ERR_44"),
- ERR_47("ERR_47"),
- ERR_48("ERR_48"),
- ERR_50("ERR_50"),
- ERR_51("ERR_51"),
- ERR_53("ERR_53"),
- ERR_63("ERR_63"),
- ERR_64("ERR_64"),
- ERR_74("ERR_74"),
- ERR_77("ERR_77"),
- ERR_80("ERR_80"),
- ERR_86("ERR_86"),
- ERR_87("ERR_87"),
- ERR_88("ERR_88"),
- ERR_89("ERR_89"),
ERR_113_COULD_NOT_DELETE_FILE_OR_DIRECTORY("ERR_113_COULD_NOT_DELETE_FILE_OR_DIRECTORY"),
ERR_115("ERR_115"),
ERR_116("ERR_116"),
- ERR_128("ERR_128"),
- ERR_135("ERR_135"),
- ERR_136("ERR_136"),
- ERR_137("ERR_137"),
- ERR_138("ERR_138"),
- ERR_139("ERR_139"),
- ERR_140("ERR_140"),
- ERR_141("ERR_141"),
- ERR_142("ERR_142"),
- ERR_143("ERR_143"),
- ERR_144("ERR_144"),
- ERR_145("ERR_145"),
- ERR_146("ERR_146"),
- ERR_147("ERR_147"),
- ERR_148("ERR_148"),
- ERR_152("ERR_152"),
- ERR_158("ERR_158"),
- ERR_166("ERR_166"),
- ERR_167("ERR_167"),
- ERR_170("ERR_170"),
- ERR_175("ERR_175"),
- ERR_176("ERR_176"),
- ERR_177("ERR_177"),
- ERR_178("ERR_178"),
ERR_181("ERR_181"),
- ERR_182("ERR_182"),
- ERR_183("ERR_183"),
- ERR_184("ERR_184"),
- ERR_185("ERR_185"),
- ERR_186("ERR_186"),
- ERR_187("ERR_187"),
- ERR_188("ERR_188"),
- ERR_189("ERR_189"),
- ERR_190("ERR_190"),
- ERR_191("ERR_191"),
- ERR_192("ERR_192"),
- ERR_193("ERR_193"),
- ERR_194("ERR_194"),
- ERR_195("ERR_195"),
- ERR_196("ERR_196"),
- ERR_197("ERR_197"),
- ERR_198("ERR_198"),
- ERR_199("ERR_199"),
- ERR_200("ERR_200"),
- ERR_201("ERR_201"),
- ERR_202("ERR_202"),
- ERR_203("ERR_203"),
- ERR_204("ERR_204"),
- ERR_205("ERR_205"),
- ERR_206("ERR_206"),
- ERR_207("ERR_207"),
- ERR_208("ERR_208"),
- ERR_209("ERR_209"),
- ERR_210("ERR_210"),
- ERR_211("ERR_211"),
- ERR_214("ERR_214"),
- ERR_218("ERR_218"),
- ERR_220("ERR_220"),
- ERR_222("ERR_222"),
- ERR_223("ERR_223"),
- ERR_224("ERR_224"),
- ERR_226("ERR_226"),
ERR_249("ERR_249"),
- ERR_254_ADD_EXISTING_VALUE("ERR_254_ADD_EXISTING_VALUE"),
- ERR_259("ERR_259"),
- ERR_262("ERR_262"),
- ERR_269("ERR_269"),
- ERR_270("ERR_270"),
- ERR_271("ERR_271"),
- ERR_272_MODIFY_LEAVES_NO_STRUCTURAL_OBJECT_CLASS("ERR_272_MODIFY_LEAVES_NO_STRUCTURAL_OBJECT_CLASS"),
- ERR_273("ERR_273"),
- ERR_274("ERR_274"),
- ERR_281("ERR_281"),
- ERR_282("ERR_282"),
- ERR_313("ERR_313"),
- ERR_319("ERR_319"),
- ERR_329("ERR_329"),
- ERR_330("ERR_330"),
- ERR_331("ERR_331"),
- ERR_332("ERR_332"),
- ERR_333("ERR_333"),
- ERR_414("ERR_414"),
- ERR_415("ERR_415"),
- ERR_416("ERR_416"),
- ERR_430("ERR_430"),
- ERR_431("ERR_431"),
- ERR_432("ERR_432"),
- ERR_433("ERR_433"),
- ERR_434("ERR_434"),
- ERR_435("ERR_435"),
- ERR_438("ERR_438"),
- ERR_472("ERR_472"),
- ERR_473("ERR_473"),
- ERR_474("ERR_474"),
ERR_475("ERR_475"),
ERR_476("ERR_476"),
- ERR_480("ERR_480"),
- ERR_482("ERR_482"),
- ERR_498("ERR_498"),
ERR_503("ERR_503"),
ERR_504("ERR_504"),
ERR_505("ERR_505"),
ERR_506("ERR_506"),
- ERR_507("ERR_507"),
ERR_508("ERR_508"),
ERR_509("ERR_509"),
ERR_510("ERR_510"),
ERR_511("ERR_511"),
- ERR_513("ERR_513"),
- ERR_514("ERR_514"),
- ERR_515("ERR_515"),
- ERR_516("ERR_516"),
- ERR_517("ERR_517"),
- ERR_518("ERR_518"),
- ERR_519("ERR_519"),
- ERR_522("ERR_522"),
- ERR_523("ERR_523"),
- ERR_524("ERR_524"),
- ERR_525("ERR_525"),
- ERR_526("ERR_526"),
- ERR_527("ERR_527"),
- ERR_528("ERR_528"),
- ERR_529("ERR_529"),
- ERR_531("ERR_531"),
- ERR_532("ERR_532"),
- ERR_533("ERR_533"),
- ERR_534("ERR_534"),
- ERR_535("ERR_535"),
- ERR_536("ERR_536"),
- ERR_537("ERR_537"),
- ERR_538("ERR_538"),
- ERR_539_BAD_BLOCK_ID("ERR_539_BAD_BLOCK_ID"),
- ERR_540("ERR_540"),
- ERR_541("ERR_541"),
- ERR_542("ERR_542"),
- ERR_543("ERR_543"),
- ERR_544("ERR_544"),
- ERR_545("ERR_545"),
- ERR_546("ERR_546"),
- ERR_547("ERR_547"),
- ERR_548("ERR_548"),
- ERR_549("ERR_549"),
- ERR_550("ERR_550"),
- ERR_551("ERR_551"),
- ERR_552("ERR_552"),
- ERR_553("ERR_553"),
- ERR_554("ERR_554"),
- ERR_555("ERR_555"),
- ERR_556("ERR_556"),
- ERR_557("ERR_557"),
- ERR_558("ERR_558"),
- ERR_559("ERR_559"),
- ERR_560("ERR_560"),
- ERR_561("ERR_561"),
- ERR_562("ERR_562"),
- ERR_563("ERR_563"),
- ERR_564("ERR_564"),
- ERR_565("ERR_565"),
- ERR_566("ERR_566"),
- ERR_567("ERR_567"),
- ERR_599("ERR_599"),
- ERR_601("ERR_601"),
- ERR_602("ERR_602"),
- ERR_603("ERR_603"),
- ERR_604("ERR_604"),
- ERR_605("ERR_605"),
- ERR_606("ERR_606"),
- ERR_607("ERR_607"),
- ERR_608("ERR_608"),
- ERR_609("ERR_609"),
- ERR_610("ERR_610"),
- ERR_611("ERR_611"),
- ERR_612("ERR_612"),
- ERR_613("ERR_613"),
- ERR_614("ERR_614"),
- ERR_615("ERR_615"),
- ERR_616("ERR_616"),
- ERR_617("ERR_617"),
- ERR_618("ERR_618"),
- ERR_619("ERR_619"),
- ERR_622("ERR_622"),
- ERR_624("ERR_624"),
- ERR_625("ERR_625"),
- ERR_626("ERR_626"),
- ERR_627("ERR_627"),
- ERR_628("ERR_628"),
- ERR_629("ERR_629"),
- ERR_630("ERR_630"),
- ERR_631("ERR_631"),
- ERR_632("ERR_632"),
- ERR_651("ERR_651"),
- ERR_652("ERR_652"),
- ERR_653("ERR_653"),
- ERR_654("ERR_654"),
- ERR_655("ERR_655"),
- ERR_656("ERR_656"),
- ERR_657("ERR_657"),
- ERR_658("ERR_658"),
- ERR_678("ERR_678"),
- ERR_679("ERR_679"),
- ERR_680("ERR_680"),
- ERR_684("ERR_684"),
ERR_689("ERR_689"),
ERR_690("ERR_690"),
ERR_691("ERR_691"),
ERR_692("ERR_692"),
- ERR_694("ERR_694"),
- ERR_695("ERR_695"),
- ERR_697("ERR_697"),
- ERR_698("ERR_698"),
- ERR_701("ERR_701"),
- ERR_702("ERR_702"),
- ERR_712("ERR_712"),
- ERR_728("ERR_728"),
- ERR_729("ERR_729"),
- ERR_730("ERR_730"),
- ERR_731("ERR_731"),
- ERR_734_CANNOT_ENCODE_KRBERROR("ERR_734_CANNOT_ENCODE_KRBERROR"),
- ERR_735_CANNOT_ENCODE_KRBSAFEBODY("ERR_735_CANNOT_ENCODE_KRBSAFEBODY"),
- ERR_736_CANNOT_ENCODE_KRBSAFE("ERR_736_CANNOT_ENCODE_KRBSAFE"),
- ERR_737_CANNOT_ENCODE_ENC_KRB_PRIV_PART("ERR_737_CANNOT_ENCODE_ENC_KRB_PRIV_PART"),
- ERR_738_CANNOT_ENCODE_KRB_PRIV("ERR_738_CANNOT_ENCODE_KRB_PRIV"),
- ERR_739_CANNOT_ENCODE_KRB_CRED_INFO("ERR_739_CANNOT_ENCODE_KRB_CRED_INFO"),
- ERR_740_CANNOT_ENCODE_ENC_KRB_CRED_PART("ERR_740_CANNOT_ENCODE_ENC_KRB_CRED_PART"),
- ERR_741_CANNOT_ENCODE_KRB_CRED("ERR_741_CANNOT_ENCODE_KRB_CRED"),
- ERR_742_CANNOT_ENCODE_ENC_TICKET_PART("ERR_742_CANNOT_ENCODE_ENC_TICKET_PART"),
- ERR_743_CANNOT_ENCODE_TYPED_DATA("ERR_743_CANNOT_ENCODE_TYPED_DATA"),
- ERR_744_NULL_PDU_LENGTH("ERR_744_NULL_PDU_LENGTH"),
- ERR_745_NOT_A_KERBEROS_STRING("ERR_745_NOT_A_KERBEROS_STRING"),
- ERR_746("ERR_746"),
- ERR_747("ERR_747"),
- ERR_748("ERR_748"),
- ERR_749("ERR_749"),
- ERR_750("ERR_750"),
- ERR_751("ERR_751");
+ ERR_751("ERR_751");;
private static final ResourceBundle ERR_BUNDLE = ResourceBundle
diff --git a/i18n/src/main/resources/org/apache/directory/server/i18n/errors.properties b/i18n/src/main/resources/org/apache/directory/server/i18n/errors.properties
index 9db9f1b618..d4890df378 100644
--- a/i18n/src/main/resources/org/apache/directory/server/i18n/errors.properties
+++ b/i18n/src/main/resources/org/apache/directory/server/i18n/errors.properties
@@ -397,6 +397,15 @@ ERR_31008_VALE_BASED_AVANCES_NOT_SUPPORTED=Value based advances not supported.
ERR_31009_NULL_VALUE_COMPARATOR=Value comparator must not be null for tables with duplicate keys.
# apacheds-kerberos-codec errors 32000 - 32999
+ERR_32000_PDU_BUFFER_SIZE_TOO_SMALL=The PDU buffer size is too small !
+ERR_32001_CANNOT_ENCODE_ENCRYPTION_KEY=Cannot encode the EncryptionKey object, the PDU size is {0} when only {1} bytes has been allocated
+ERR_32002_CANNOT_ENCODE__PRINCIPAL_NAME=Cannot encode the principalName object, the PDU size is {0} when only {1} bytes has been allocated
+ERR_32003_CANNOT_PUT_PDU_IN_NULL_BUFFER=Cannot put a PDU in a null buffer !
+ERR_32004_NOT_SUPPORTED_ENCRYPTION_TYPE={0} is not a supported encryption type.
+ERR_32005_KERBEROS_KEY_CANNOT_BE_A_STRING=Kerberos key should not be a String.
+ERR_32006_NULL_PDU_LENGTH=The PDU length is null, this is not allowed
+ERR_32007_NOT_A_KERBEROS_STRING=The value {0} is not a valid KerberosString
+
# apacheds-ldif-partition errors 33000 - 33999
ERR_33000_CANNOT_INITIALIZE_PARTITION_WITH_INVALID_SUFFIX=Cannot initialize a partition without a valid suffix
ERR_33001_PARTITION_CANNOT_BE_CREATED=The {0} partition cannot be created : {1}
@@ -545,260 +554,22 @@ ERR_49044_SUBSTRING_CURSOR_NOT_ORDERED=SubstringCursors may not be ordered and d
ERR_49045_SCOPE_NODE_NOT_IN_SUBTREE_SCOPE=ScopeNode is not of subtree scope.
-ERR_1=Failed to identify OID for: {0}
-ERR_7=Cannot create a digested password for algorithm ''{0}''
-ERR_32=The ModifyTimestamp operational attribute cannot be modified by a user
-ERR_43=The id {0} does not have any OID. It should be a wrong AttributeType.
-ERR_44=Wrong AttributeType, does not have an associated OID : {0}
-ERR_47=The value stored in an Human Readable attribute as a byte[] should be convertible to a String"
-ERR_48=The value stored in a non Human Readable attribute as a String should be convertible to a byte[]
-ERR_50=A Substring filter should be used only on Human Readable attributes
-ERR_51=A Extensible filter should be used only on Human Readable attributes
-ERR_53=The new Attribute or one of its value is incorrect : {0}
-ERR_63=The value stored in a not Human Readable attribute as a String should be convertible to a byte[]
-ERR_64=The value is not valid. It should be a String or a byte[]
-ERR_74=SynchWorker failed to synch directory.
-ERR_77=Encountered a failure while trying to revert to a previous revision: {0}, msg : {1}
-ERR_80=Cannot inject the following entry : {0}. Error : {1}.
-ERR_86=DitContentRule loading NYI
-ERR_87=DitStructureRule loading NYI
-ERR_88=MatchingRuleUse loading NYI
-ERR_89=NameForm loading NYI
ERR_113_COULD_NOT_DELETE_FILE_OR_DIRECTORY=Could not delete file or directory {0}
ERR_115=Failed to delete the working directory.
ERR_116=Failed to delete\:
-ERR_128=Failed to identify OID for\:
-ERR_135=Cannot create a ticket for the {0} KerberosPrincipal, error : {1}
-ERR_136=Cannot create a ticket : {0}
-ERR_137=Cannot encode the Ticket object, the PDU size is {0} when only {1} bytes has been allocated
-ERR_138=The PDU buffer size is too small !
-ERR_139=Cannot encode the AuthorizationData object, the PDU size is {0} when only {1} bytes has been allocated
-ERR_140=Cannot encode the Checksum object, the PDU size is {0} when only {1} bytes has been allocated
-ERR_141=Cannot encode the EncryptedData object, the PDU size is {0} when only {1} bytes has been allocated
-ERR_142=Cannot encode the EncryptionKey object, the PDU size is {0} when only {1} bytes has been allocated
-ERR_143=Cannot encode the HostAddress object, the PDU size is {0} when only {1} bytes has been allocated
-ERR_144=Cannot encode the HostAddresses object, the PDU size is {0} when only {1} bytes has been allocated
-ERR_145=Cannot encode the PreAuthenticationData object, the PDU size is {0} when only {1} bytes has been allocated
-ERR_146=Cannot encode the principalName object, the PDU size is {0} when only {1} bytes has been allocated
-ERR_147=Cannot encode the TransitedEncoding object, the PDU size is {0} when only {1} bytes has been allocated
-ERR_148=Cannot put a PDU in a null buffer !
-ERR_152=Unexpected exception: {0}
-ERR_158=failed to rebind ldap service
-ERR_166=Failed to close the search cursor for message {0} on abandon request.
-ERR_167=Got back more than one entry for search on RootDSE which means Cursor is not functioning properly!
-ERR_170=Failed to send a search request with RefreshAndPersist mode
-ERR_175=failed to close stream
-ERR_176=Error closing NamingEnumeration on PSearchListener
-ERR_177=Error closing connection on PSearchListener
-ERR_178=PSearchListener encountered error
-ERR_181=Failed to run the class {0}
-ERR_182=Failed to run the method {0}
-ERR_183=Error while scanning index on attribute {0} using a {1} cursor type with a key constraint of ''{2}''\:\n" + {3}
-ERR_184=Type {0} help for usage.
-ERR_185=Unknown command: {0}
-ERR_186=forced configuration load (-c) requires the -i option
-ERR_187=Command line parsing failed for {0}. Reason: already selected {1}
-ERR_188=Command line parsing failed for {0}. Reason: missing argument {1}
-ERR_189=Command line parsing failed for {0}. Reason: missing option {1}
-ERR_190=Command line parsing failed for {0}. Reason: unrecognized option {1}
-ERR_191=Command line parsing failed for {0}. Reason: {1}
-ERR_192={0} : unknown command
-ERR_193=port value of ''{0}'' is not a number
-ERR_194=port value of ''{0}'' is larger than max port number: {1}
-ERR_195=port value of ''{0}'' is smaller than the minimum port number: {1}
-ERR_196=Partition directory {0} does not exist!
-ERR_197=delay value of ''{0}'' is not a number
-ERR_198=delay value of ''{0}'' is larger than max delay (seconds) allowed: {1}
-ERR_199=delay value of ''{0}'' is less than zero and makes no sense
-ERR_200=timeOffline value of ''{0}'' is not a number
-ERR_201=timeOffline value of ''{0}'' is larger than max timeOffline (minutes) allowed: {1}
-ERR_202=timeOffline value of ''{0}'' is less than zero and makes no sense
-ERR_203=Add of entry {0} failed for the following reasons provided by the server\:\n{1}
-ERR_204=Delete of entry {0} failed for the following reasons provided by the server\:\n{1}
-ERR_205=ModifyDn of entry {0} failed for the following reasons provided by the server\:\n{1}
-ERR_206=Modify of entry {0} failed for the following reasons provided by the server\:\n{1}
-ERR_207=Binding of user {0} failed for the following reasons provided by the server\:\n{1}
-ERR_208=Import failed...
-ERR_209=ldif file ''{0}'' does not exist
-ERR_210=ldif file ''{0}'' can't be read
-ERR_211=ldif file name must be provided
-ERR_214=in memory index doesn''t support explicit caching
-ERR_218=Not a normalized name: {0}
-ERR_220=Entry {0} contains no entryUuid attribute: {1}
-ERR_222=Cannot call store method: {0}
-ERR_223=[36] aliasDereferencingProblem - attempt to create alias to itself.
-ERR_224=[36] aliasDereferencingProblem - attempt to create alias with cycle to relative {0} not allowed from descendent alias {1}
-ERR_226=[33] aliasProblem - the alias when dereferenced would not name a known object the aliasedObjectName must be set to a valid existing entry.
ERR_249=The global schema subentry cannot be added since it exists by default.
-ERR_254_ADD_EXISTING_VALUE=Trying to add existing value ''{0}'' to attribute {1}
-ERR_259=Attempt to search under non-existant entry\:
-ERR_262=System partition has wrong name: should be ''system'' not ''{0}''.
-ERR_269=userRoot() in org.apache.directory.server.prefs.ServerPreferencesFactory not implemented!
-ERR_270=Failed to set up node.
-ERR_271=Failed to get SPI.
-ERR_272_MODIFY_LEAVES_NO_STRUCTURAL_OBJECT_CLASS=Modify operation leaves no structural objectClass for entry {0}
-ERR_273=Modify operation attempts to delete RDN attribute {0} on entry {1} violates schema constraints
-ERR_274=Modify operation attempts to delete RDN attribute values in use for {0} on entry {1} and violates schema constraints
-ERR_281=The value is not a valid String
-ERR_282=The value stored in an Human Readable attribute is not a String
-ERR_313=Invalid operation on Name {0}
-ERR_319=Cannot execute indirect lookup if it is not the next operation.
-ERR_329=Failed to initialize interceptor chain.
-ERR_330=Interceptor not found: {0}
-ERR_331=Unknown interceptor name: {0}
-ERR_332=Other interceptor is using name ''{0}''
-ERR_333=Unexpected exception.
-ERR_414=Cannot permit the addition of an attributeType with an no EQUALITY matchingRule \nand no super type from which to derive an EQUALITY matchingRule.
-ERR_415=Cannot permit the addition of an attributeType with which cannot resolve an EQUALITY matchingRule from it''s super type.
-ERR_416=Cannot permit the addition of an attributeType with no syntax \nand no super type from which to derive a syntax.
-ERR_430=Got more than one matchingRule for oid of {0}
-ERR_431=Got more than one attributeType for oid of {0}
-ERR_432=Got more than one syntax for oid of {0}
-ERR_433=Got more than one syntaxChecker for oid of {0}
-ERR_434=Attribute of second rdn in dn ''{0}'' expected to be CN oid of {1} but was {2}
-ERR_435=Got more than one result for the entity name: {0}
-ERR_438=Bad serialization, tree : [{0}]
-ERR_472=Not a valid value
-ERR_473=expected string to normalize
-ERR_474=expected byte[] to normalize
ERR_475=can''t move the root DSE
ERR_476=Unidentified change type value: {0}
-ERR_480=object deserialization stream close() failure
-ERR_482=object serialization stream close() failure
-ERR_498=The prefix ''{0}'' is not an ancestor of this entry ''{1}''
ERR_503=Config partition cannot be null
ERR_504=the config partition is not initialized
ERR_505=system partition doesn''t exist
ERR_506=yet to implement
-ERR_507=Invalid interceptor order
ERR_508=Cannot overwrite, config output directory already exists: {0}
ERR_509=Cannot copy non-existant source file {0}
ERR_510=Should not be hitting root without config/config pattern.
ERR_511=parent cannot be null
-ERR_513=Error during underflow [{0}]
-ERR_514=Key not found: {0}
-ERR_515=BPage not ordered
-ERR_516=Invalid child subordinate key
-ERR_517=Argument ''recman'' is null
-ERR_518=Argument ''comparator'' is null
-ERR_519=Argument ''comparator'' must be serializable
-ERR_522=Argument ''pageSize'' must be even
-ERR_523=Argument ''key'' is null
-ERR_524=Argument ''value'' is null
-ERR_525=Argument ''obj1'' is null
-ERR_526=Argument ''obj2'' is null
-ERR_527=Platform doesn''t support UTF8 encoding
-ERR_528=MRU cache must contain at least one entry
-ERR_529=Cannot add null listener.
-ERR_531=Internal cache cannot be null.
-ERR_532=key cannot be null.
-ERR_533=value cannot be null.
-ERR_534=Cannot create bucket with depth > MAX_DEPTH+1. Depth={0}
-ERR_535=Cannot create deeper directory. Depth={0}
-ERR_536=Argument ''recid'' is invalid: {0}
-ERR_537=Name directory must exist
-ERR_538=RecordManager has been closed
-ERR_539_BAD_BLOCK_ID=bogus block id {0}, it should not be negative
-ERR_540=BlockId assigned for transaction block
-ERR_541=transaction count on block {0} below zero!
-ERR_542=Argument ''cache'' is null
-ERR_543=DataPage.setFirst: offset {0} too small
-ERR_544=CRITICAL: file header magic not OK {0}
-ERR_545=couldn''t obtain free translation
-ERR_546=CRITICAL: page header magic for block {0} not OK {1}
-ERR_547=CRITICAL: page header magic not OK {0}
-ERR_548=allocate of free page?
-ERR_549=free free page?
-ERR_550=free header page?
-ERR_551=Soft reference cache not implemented
-ERR_552=Weak reference cache not implemented
-ERR_553=Invalid cache type: {0}
-ERR_554=double get for block {0}
-ERR_555=bad blockid {0} on release
-ERR_556=in use list not empty at commit time ({0})
-ERR_557=in use list not empty at rollback time ({0})
-ERR_558=in txn list not empty at rollback time ({0})
-ERR_559=In transaction not empty
-ERR_560=Dirty blocks at close time
-ERR_561=inUse blocks at close time
-ERR_562=Offset too large for record header ({0}:{1})
-ERR_563=Argument ''maxTxns'' must be greater than 0.
-ERR_564=Cannot change setting while transactions are pending in the log
-ERR_565=Bad magic on log file
-ERR_566=Unexcepted exception: {0}
-ERR_567=Invalid record manager provider\: {0}\n[{1}\: {2}]
-ERR_599=Error instantiating encoder for {0}
-ERR_601=Error accessing decoder for {0}
-ERR_602=Error instantiating decoder for {0}
-ERR_603=AS-REQ PA-ENC-TIMESTAMP padata timestamp, encrypted with the client key
-ERR_604=AS-REP Ticket and TGS-REP Ticket (includes TGS session key or application session key), encrypted with the service key
-ERR_605=AS-REP encrypted part (includes TGS session key or application session key), encrypted with the client key
-ERR_606=TGS-REQ KDC-REQ-BODY AuthorizationData, encrypted with the TGS session key
-ERR_607=TGS-REQ KDC-REQ-BODY AuthorizationData, encrypted with the TGS authenticator subkey
-ERR_608=TGS-REQ PA-TGS-REQ padata AP-REQ Authenticator cksum, keyed with the TGS session key
-ERR_609=TGS-REQ PA-TGS-REQ padata AP-REQ Authenticator (includes TGS authenticator subkey), encrypted with the TGS session key
-ERR_610=TGS-REP encrypted part (includes application session key), encrypted with the TGS session key
-ERR_611=TGS-REP encrypted part (includes application session key), encrypted with the TGS authenticator subkey
-ERR_612=AP-REQ Authenticator cksum, keyed with the application session key
-ERR_613=AP-REQ Authenticator (includes application authenticator subkey), encrypted with the application session key
-ERR_614=AP-REP encrypted part (includes application session subkey), encrypted with the application session key
-ERR_615=KRB-PRIV encrypted part, encrypted with a key chosen by the application
-ERR_616={0} is not a supported encryption type.
-ERR_617=Callback not supported
-ERR_618=File is too large {0}
-ERR_619=Could not completely read file {0}
-ERR_622=Cannot encode the AuthorizationDataEntry object, the PDU size is {0} when only {1} bytes has been allocated
-ERR_624=Failed to get catalog context {0}
-ERR_625=Failed to get initial context {0}
-ERR_626=Kerberos key should not be a String.
-ERR_627=Can''t get a session
-ERR_628=An empty name is not valid in a kerberos name
-ERR_629=A ''/'' at the end of a Kerberos Name is not valid.
-ERR_630=Failed to connect to the server
-ERR_631=The specified configuration dir {0} doesn''t exist under {1}
-ERR_632=The expected context entry does not exist
-ERR_651=SamSubsystem not enabled with key integrity checker
-ERR_652=Entry has null SAM type
-ERR_653=Could not find property ''{0}''
-ERR_654=Expecting entries with SAM type of {0} but got a type of entry with SAM type of {1}
-ERR_655=Could not find verifier class ''{0}'' for SamType( {1} )
-ERR_656=No public default constructor on class ''{0}'' for SamType( {1} )
-ERR_657=Failed on default constructor invocation for class ''{0}'' for SamType( {1} )
-ERR_658=column index max is {0}
-ERR_678=Failed on keystore load which should never really happen.
-ERR_679=Failed to create KeyManagerFactory
-ERR_680=Failed to initialize KeyManagerFactory
-ERR_684=Although ExtendedRequests are SingleReplyRequests they''re not handled using this base class. They have no target entry unlike the rest of the SingleReplyRequests
ERR_689=Unsupported protocol type {0}
ERR_690=Failed to add the extended operation of type {0}
ERR_691=Failed to add the SASL mechanism with the name {0} and implementation class {1}
ERR_692=Failed to add NTLM provider
-ERR_694=Empty ID: {0}
-ERR_695=Invalid replica ID\:
-ERR_697=The following schema directory from the installation layout could not be found\:\n\t{0}
-ERR_698=Unknown SchemaObject type: {0}
-ERR_701=Cursor pos ({0}) not in value range [0-{1}]
-ERR_702=Bind requests only tunnel down into partitions if there are no authenticators to handle the mechanism.\nCheck to see if you have correctly configured authenticators for the server.
-ERR_712=Unrecognized branch node type
-ERR_728=There can only be 2 columns at index 0 and at 1
-ERR_729=You didn''t correctly set col names
-ERR_730=Unrecognized mode.
-ERR_731=Unrecognized FilterDialog command: {0}
-ERR_734_CANNOT_ENCODE_KRBERROR=Cannot encode the KrbError object, the PDU size is {0} when only {1} bytes has been allocated
-ERR_735_CANNOT_ENCODE_KRBSAFEBODY=Cannot encode the KrbSafeBody object, the PDU size is {0} when only {1} bytes has been allocated
-ERR_736_CANNOT_ENCODE_KRBSAFE=Cannot encode the KrbSafe object, the PDU size is {0} when only {1} bytes has been allocated
-ERR_737_CANNOT_ENCODE_ENC_KRB_PRIV_PART=Cannot encode the EncKrbPrivPart object, the PDU size is {0} when only {1} bytes has been allocated
-ERR_738_CANNOT_ENCODE_KRB_PRIV=Cannot encode the KrbPriv object, the PDU size is {0} when only {1} bytes has been allocated
-ERR_739_CANNOT_ENCODE_KRB_CRED_INFO=Cannot encode the KrbCredInfo object, the PDU size is {0} when only {1} bytes has been allocated
-ERR_740_CANNOT_ENCODE_ENC_KRB_CRED_PART=Cannot encode the EncKrbCredPart object, the PDU size is {0} when only {1} bytes has been allocated
-ERR_741_CANNOT_ENCODE_KRB_CRED=Cannot encode the KrbCred object, the PDU size is {0} when only {1} bytes has been allocated
-ERR_742_CANNOT_ENCODE_ENC_TICKET_PART=Cannot encode the EncTicketPart object, the PDU size is {0} when only {1} bytes has been allocated
-ERR_743_CANNOT_ENCODE_TYPED_DATA=Cannot encode the TypedData object, the PDU size is {0} when only {1} bytes has been allocated
-ERR_744_NULL_PDU_LENGTH=The PDU length is null, this is not allowed
-ERR_745_NOT_A_KERBEROS_STRING=The value {0} is not a valid KerberosString
-ERR_746=Not a valid log file number {0}
-ERR_747=Not a valid log file offset {0}
-ERR_748=Invalid log file bufferSize/ max size is sepcified bufferSize {0} logFileSize {0}
-ERR_749=Log Scanner is already closed
-ERR_750=Log content is invalid
ERR_751=Invalid TrustManager Class {0}
diff --git a/kerberos-codec/src/main/java/org/apache/directory/server/kerberos/shared/crypto/encryption/RandomKeyFactory.java b/kerberos-codec/src/main/java/org/apache/directory/server/kerberos/shared/crypto/encryption/RandomKeyFactory.java
index 0029e4de6c..6f64c46eaf 100644
--- a/kerberos-codec/src/main/java/org/apache/directory/server/kerberos/shared/crypto/encryption/RandomKeyFactory.java
+++ b/kerberos-codec/src/main/java/org/apache/directory/server/kerberos/shared/crypto/encryption/RandomKeyFactory.java
@@ -95,7 +95,7 @@ public class RandomKeyFactory
if ( algorithm == null )
{
- throw new KerberosException( ErrorType.KDC_ERR_ETYPE_NOSUPP, I18n.err( I18n.ERR_616,
+ throw new KerberosException( ErrorType.KDC_ERR_ETYPE_NOSUPP, I18n.err( I18n.ERR_32004_NOT_SUPPORTED_ENCRYPTION_TYPE,
encryptionType.getName() ) );
}
diff --git a/kerberos-codec/src/main/java/org/apache/directory/server/kerberos/shared/store/PrincipalStoreEntryModifier.java b/kerberos-codec/src/main/java/org/apache/directory/server/kerberos/shared/store/PrincipalStoreEntryModifier.java
index 1a223b2c96..555f3008b2 100644
--- a/kerberos-codec/src/main/java/org/apache/directory/server/kerberos/shared/store/PrincipalStoreEntryModifier.java
+++ b/kerberos-codec/src/main/java/org/apache/directory/server/kerberos/shared/store/PrincipalStoreEntryModifier.java
@@ -174,7 +174,7 @@ public class PrincipalStoreEntryModifier
{
if ( val.isHumanReadable() )
{
- throw new IllegalStateException( I18n.err( I18n.ERR_626 ) );
+ throw new IllegalStateException( I18n.err( I18n.ERR_32005_KERBEROS_KEY_CANNOT_BE_A_STRING ) );
}
byte[] encryptionKeyBytes = val.getBytes();
diff --git a/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encryptionKey/actions/EncryptionKeyInit.java b/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encryptionKey/actions/EncryptionKeyInit.java
index 91bf1a7d6f..7dfba32338 100644
--- a/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encryptionKey/actions/EncryptionKeyInit.java
+++ b/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encryptionKey/actions/EncryptionKeyInit.java
@@ -63,10 +63,10 @@ public class EncryptionKeyInit extends GrammarAction<EncryptionKeyContainer>
// The Length should not be null
if ( tlv.getLength() == 0 )
{
- LOG.error( I18n.err( I18n.ERR_744_NULL_PDU_LENGTH ) );
+ LOG.error( I18n.err( I18n.ERR_32006_NULL_PDU_LENGTH ) );
// This will generate a PROTOCOL_ERROR
- throw new DecoderException( I18n.err( I18n.ERR_744_NULL_PDU_LENGTH ) );
+ throw new DecoderException( I18n.err( I18n.ERR_32006_NULL_PDU_LENGTH ) );
}
EncryptionKey encKey = new EncryptionKey();
diff --git a/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/principalName/actions/PrincipalNameInit.java b/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/principalName/actions/PrincipalNameInit.java
index 08a9cd2c4e..929a6fe4a5 100644
--- a/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/principalName/actions/PrincipalNameInit.java
+++ b/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/principalName/actions/PrincipalNameInit.java
@@ -63,10 +63,10 @@ public class PrincipalNameInit extends GrammarAction<PrincipalNameContainer>
// The Length should not be null
if ( tlv.getLength() == 0 )
{
- LOG.error( I18n.err( I18n.ERR_744_NULL_PDU_LENGTH ) );
+ LOG.error( I18n.err( I18n.ERR_32006_NULL_PDU_LENGTH ) );
// This will generate a PROTOCOL_ERROR
- throw new DecoderException( I18n.err( I18n.ERR_744_NULL_PDU_LENGTH ) );
+ throw new DecoderException( I18n.err( I18n.ERR_32006_NULL_PDU_LENGTH ) );
}
// We have to create a PrincipalName object here
diff --git a/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/principalName/actions/StoreNameString.java b/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/principalName/actions/StoreNameString.java
index 24c0c99a99..5a6d984cb2 100644
--- a/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/principalName/actions/StoreNameString.java
+++ b/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/principalName/actions/StoreNameString.java
@@ -78,10 +78,10 @@ public class StoreNameString extends GrammarAction<PrincipalNameContainer>
// The Length should not be null
if ( tlv.getLength() == 0 )
{
- LOG.error( I18n.err( I18n.ERR_744_NULL_PDU_LENGTH ) );
+ LOG.error( I18n.err( I18n.ERR_32006_NULL_PDU_LENGTH ) );
// This will generate a PROTOCOL_ERROR
- throw new DecoderException( I18n.err( I18n.ERR_744_NULL_PDU_LENGTH ) );
+ throw new DecoderException( I18n.err( I18n.ERR_32006_NULL_PDU_LENGTH ) );
}
// Get the principalName
@@ -108,10 +108,10 @@ public class StoreNameString extends GrammarAction<PrincipalNameContainer>
String valBytes = Strings.dumpBytes( value.getData() );
String valStr = Strings.utf8ToString( value.getData() );
String valAll = valBytes + "/" + valStr;
- LOG.error( I18n.err( I18n.ERR_745_NOT_A_KERBEROS_STRING, valAll ) );
+ LOG.error( I18n.err( I18n.ERR_32007_NOT_A_KERBEROS_STRING, valAll ) );
// This will generate a PROTOCOL_ERROR
- throw new DecoderException( I18n.err( I18n.ERR_745_NOT_A_KERBEROS_STRING, valAll ) );
+ throw new DecoderException( I18n.err( I18n.ERR_32007_NOT_A_KERBEROS_STRING, valAll ) );
}
}
}
diff --git a/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/EncryptionKey.java b/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/EncryptionKey.java
index 91c6ed3cf2..a69ff891f7 100644
--- a/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/EncryptionKey.java
+++ b/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/EncryptionKey.java
@@ -284,7 +284,7 @@ public class EncryptionKey implements Asn1Object
{
if ( buffer == null )
{
- throw new EncoderException( I18n.err( I18n.ERR_148 ) );
+ throw new EncoderException( I18n.err( I18n.ERR_32003_CANNOT_PUT_PDU_IN_NULL_BUFFER ) );
}
try
@@ -305,9 +305,9 @@ public class EncryptionKey implements Asn1Object
}
catch ( BufferOverflowException boe )
{
- log.error( I18n.err( I18n.ERR_142, 1 + TLV.getNbBytes( encryptionKeyLength )
+ log.error( I18n.err( I18n.ERR_32001_CANNOT_ENCODE_ENCRYPTION_KEY, 1 + TLV.getNbBytes( encryptionKeyLength )
+ encryptionKeyLength, buffer.capacity() ) );
- throw new EncoderException( I18n.err( I18n.ERR_138 ), boe );
+ throw new EncoderException( I18n.err( I18n.ERR_32000_PDU_BUFFER_SIZE_TOO_SMALL ), boe );
}
if ( IS_DEBUG )
diff --git a/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/PrincipalName.java b/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/PrincipalName.java
index c39e443cdb..b68423430a 100644
--- a/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/PrincipalName.java
+++ b/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/PrincipalName.java
@@ -238,7 +238,7 @@ public class PrincipalName implements Asn1Object
{
if ( buffer == null )
{
- throw new EncoderException( I18n.err( I18n.ERR_148 ) );
+ throw new EncoderException( I18n.err( I18n.ERR_32003_CANNOT_PUT_PDU_IN_NULL_BUFFER ) );
}
try
@@ -286,9 +286,9 @@ public class PrincipalName implements Asn1Object
}
catch ( BufferOverflowException boe )
{
- LOG.error( I18n.err( I18n.ERR_146, 1 + TLV.getNbBytes( principalNameSeqLength )
+ LOG.error( I18n.err( I18n.ERR_32002_CANNOT_ENCODE__PRINCIPAL_NAME, 1 + TLV.getNbBytes( principalNameSeqLength )
+ principalNameSeqLength, buffer.capacity() ) );
- throw new EncoderException( I18n.err( I18n.ERR_138 ), boe );
+ throw new EncoderException( I18n.err( I18n.ERR_32000_PDU_BUFFER_SIZE_TOO_SMALL ), boe );
}
if ( IS_DEBUG )