directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject directory-kerby git commit: Some trivial typos
Date Tue, 13 Feb 2018 11:29:38 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/trunk 821313d1d -> 268d2493e


Some trivial typos


Project: http://git-wip-us.apache.org/repos/asf/directory-kerby/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-kerby/commit/268d2493
Tree: http://git-wip-us.apache.org/repos/asf/directory-kerby/tree/268d2493
Diff: http://git-wip-us.apache.org/repos/asf/directory-kerby/diff/268d2493

Branch: refs/heads/trunk
Commit: 268d2493ecfa6d76b9e794353e4d21254d7db2bd
Parents: 821313d
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Tue Feb 13 10:53:35 2018 +0000
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Tue Feb 13 10:53:35 2018 +0000

----------------------------------------------------------------------
 .../kerberos/kerb/identity/backend/AbstractIdentityBackend.java  | 2 +-
 .../apache/kerby/kerberos/kerb/server/request/KdcRequest.java    | 4 +---
 .../kerberos/tool/kadmin/command/DeletePrincipalCommand.java     | 2 +-
 3 files changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/268d2493/kerby-kerb/kerb-identity/src/main/java/org/apache/kerby/kerberos/kerb/identity/backend/AbstractIdentityBackend.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-identity/src/main/java/org/apache/kerby/kerberos/kerb/identity/backend/AbstractIdentityBackend.java
b/kerby-kerb/kerb-identity/src/main/java/org/apache/kerby/kerberos/kerb/identity/backend/AbstractIdentityBackend.java
index 753408a..78a8a54 100644
--- a/kerby-kerb/kerb-identity/src/main/java/org/apache/kerby/kerberos/kerb/identity/backend/AbstractIdentityBackend.java
+++ b/kerby-kerb/kerb-identity/src/main/java/org/apache/kerby/kerberos/kerb/identity/backend/AbstractIdentityBackend.java
@@ -294,7 +294,7 @@ public abstract class AbstractIdentityBackend
 
         if (doGetIdentity(principalName) == null) {
             logger.error("Error occurred while deleting identity, principal "
-                    + principalName + " does not exists.");
+                    + principalName + " does not exist.");
             throw new KrbException("Principal does not exist.");
         }
 

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/268d2493/kerby-kerb/kerb-server/src/main/java/org/apache/kerby/kerberos/kerb/server/request/KdcRequest.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-server/src/main/java/org/apache/kerby/kerberos/kerb/server/request/KdcRequest.java
b/kerby-kerb/kerb-server/src/main/java/org/apache/kerby/kerberos/kerb/server/request/KdcRequest.java
index 86f47e7..a2f009a 100644
--- a/kerby-kerb/kerb-server/src/main/java/org/apache/kerby/kerberos/kerb/server/request/KdcRequest.java
+++ b/kerby-kerb/kerb-server/src/main/java/org/apache/kerby/kerberos/kerb/server/request/KdcRequest.java
@@ -861,9 +861,7 @@ public abstract class KdcRequest {
      * @return krb identity entry
      */
     protected KrbIdentity getEntry(String principal) throws KrbException {
-        KrbIdentity entry;
-        entry = kdcContext.getIdentityService().getIdentity(principal);
-        return entry;
+        return kdcContext.getIdentityService().getIdentity(principal);
     }
 
     /**

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/268d2493/kerby-tool/kdc-tool/src/main/java/org/apache/kerby/kerberos/tool/kadmin/command/DeletePrincipalCommand.java
----------------------------------------------------------------------
diff --git a/kerby-tool/kdc-tool/src/main/java/org/apache/kerby/kerberos/tool/kadmin/command/DeletePrincipalCommand.java
b/kerby-tool/kdc-tool/src/main/java/org/apache/kerby/kerberos/tool/kadmin/command/DeletePrincipalCommand.java
index 0a2e146..fd8d447 100644
--- a/kerby-tool/kdc-tool/src/main/java/org/apache/kerby/kerberos/tool/kadmin/command/DeletePrincipalCommand.java
+++ b/kerby-tool/kdc-tool/src/main/java/org/apache/kerby/kerberos/tool/kadmin/command/DeletePrincipalCommand.java
@@ -68,7 +68,7 @@ public class DeletePrincipalCommand extends KadminCommand {
             if (reply.equals("yes") || reply.equals("YES") || reply.equals("y") || reply.equals("Y"))
{
                 deletePrincipal(getKadmin(), principal);
             } else if (reply.equals("no") || reply.equals("NO") || reply.equals("n") || reply.equals("N"))
{
-                System.out.println("Pincipal \"" + principal + "\"  not deleted.");
+                System.out.println("Principal \"" + principal + "\"  not deleted.");
             } else {
                 System.err.println("Unknow request, fail to delete the principal.");
             }


Mime
View raw message