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