Added some debug statements and added the sample jaas application into
the package that is submitted to autobuild.
This commit is contained in:
@@ -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