@@ -671,6 +671,9 @@ private static Void readConfigFileLines(
671
671
private List <String > loadConfigFile (final String fileName )
672
672
throws IOException , KrbException {
673
673
674
+ if (DEBUG ) {
675
+ System .out .println ("Loading config file from " + fileName );
676
+ }
674
677
List <String > result = new ArrayList <>();
675
678
List <String > raw = new ArrayList <>();
676
679
Set <Path > dupsCheck = new HashSet <>();
@@ -781,6 +784,9 @@ private Hashtable<String,Object> parseStanzaTable(List<String> v)
781
784
throws KrbException {
782
785
Hashtable <String ,Object > current = stanzaTable ;
783
786
for (String line : v ) {
787
+ if (DEBUG ) {
788
+ System .out .println (line );
789
+ }
784
790
// There are only 3 kinds of lines
785
791
// 1. a = b
786
792
// 2. a = {
@@ -979,16 +985,22 @@ public int[] defaultEtype(String configName) throws KrbException {
979
985
String default_enctypes ;
980
986
default_enctypes = get ("libdefaults" , configName );
981
987
if (default_enctypes == null && !configName .equals ("permitted_enctypes" )) {
988
+ if (DEBUG ) {
989
+ System .out .println ("Getting permitted_enctypes from libdefaults" );
990
+ }
982
991
default_enctypes = get ("libdefaults" , "permitted_enctypes" );
983
992
}
984
993
int [] etype ;
985
994
if (default_enctypes == null ) {
986
995
if (DEBUG ) {
987
- System .out .println ("Using builtin default etypes for " +
996
+ System .out .println ("default_enctypes were null, using builtin default etypes for configuration " +
988
997
configName );
989
998
}
990
999
etype = EType .getBuiltInDefaults ();
991
1000
} else {
1001
+ if (DEBUG ) {
1002
+ System .out .println ("default_enctypes:" + default_enctypes );
1003
+ }
992
1004
String delim = " " ;
993
1005
StringTokenizer st ;
994
1006
for (int j = 0 ; j < default_enctypes .length (); j ++) {
@@ -1010,7 +1022,8 @@ public int[] defaultEtype(String configName) throws KrbException {
1010
1022
}
1011
1023
}
1012
1024
if (ls .isEmpty ()) {
1013
- throw new KrbException ("no supported default etypes for "
1025
+ throw new KrbException ("out of " + len +
1026
+ " default etypes no supported etypes found for configuration "
1014
1027
+ configName );
1015
1028
} else {
1016
1029
etype = new int [ls .size ()];
0 commit comments