Added some debug statements and added the sample jaas application into
the package that is submitted to autobuild.
This commit is contained in:
@@ -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 $@ ========]
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user