Added some debug statements and added the sample jaas application into

the package that is submitted to autobuild.
This commit is contained in:
Juan Carlos Luciani
2006-08-14 20:27:43 +00:00
parent 392a4e7695
commit f3126b10c9
12 changed files with 94 additions and 8 deletions

View File

@@ -86,7 +86,7 @@ all: $(BUILDDIR)/$(WEBAPP) $(BUILDDIR)/$(MODULE_NAME).$(MODULE_EXT)
$(BUILDDIR)/%.class: %.java
@echo [======== Compiling $@ ========]
$(JAVAC) -sourcepath src -classpath $(CLASSPATH) -d $(BUILDDIR)/webapp/WEB-INF/classes $<
$(JAVAC) -g -sourcepath src -classpath $(CLASSPATH) -d $(BUILDDIR)/webapp/WEB-INF/classes $<
$(BUILDDIR)/$(WEBAPP): $(BUILDDIR) $(CLASSES)
@echo [======== Creating Webapp $@ ========]

View File

@@ -97,6 +97,11 @@ public class GetAuthPolicy implements RpcMethod
GetAuthPolicyRespMsg getAuthPolicyRespMsg = new GetAuthPolicyRespMsg(ProtoDefs.httpNotFoundStatusMsg,
ProtoDefs.httpNotFoundStatusCode);
out.println(getAuthPolicyRespMsg.toString());
System.err.println("GetAuthPolicy.invoke()- Service "
+ getAuthPolicyReqMsg.getServiceName()
+ " at " + getAuthPolicyReqMsg.getHostName()
+ " not enabled");
}
}
catch (Exception e)

View File

@@ -232,6 +232,10 @@ public class Krb5Authenticate implements AuthMechanism, Serializable
identId = sr.getName() + "," + searchContext;
}
}
else
{
System.err.println("Krb5Authenticate.invoke()- No matching identity entities found");
}
}
catch (NamingException e)
{

View File

@@ -162,6 +162,10 @@ public class PwdAuthenticate implements AuthMechanism, Serializable
"(cn={0})",
new String[] {pwToken.getUsername()},
controls);
if (!answer.hasMore())
{
System.err.println("PwdAuthenticate.invoke()- No matching identity entities found");
}
// Enumerate through the users returned checking the password
while (answer.hasMore())
@@ -198,6 +202,12 @@ public class PwdAuthenticate implements AuthMechanism, Serializable
System.err.println("PwdAuthenticate.invoke()- NamingException: " + e.getExplanation());
}
}
// Check if we did not resolve the identity
if (identId == null)
{
System.err.println("PwdAuthenticate.invoke()- Failed to resolve identity for entity " + pwToken.getUsername());
}
}
catch (NamingException e)
{