directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From plusplusjia...@apache.org
Subject [19/26] directory-kerby git commit: DIRKRB-394 Each KeytabEntry will be written twice into keytab file. Contributed by Wei.
Date Mon, 10 Aug 2015 05:16:00 GMT
DIRKRB-394 Each KeytabEntry will be written twice into keytab file. Contributed by Wei.


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

Branch: refs/heads/pkinit-support
Commit: b1ebdec080617f3cbfe6286dabc85ed90cde65b2
Parents: 815d0ae
Author: plusplusjiajia <jiajia.li@intel.com>
Authored: Fri Aug 7 14:28:51 2015 +0800
Committer: plusplusjiajia <jiajia.li@intel.com>
Committed: Fri Aug 7 14:28:51 2015 +0800

----------------------------------------------------------------------
 kerby-dist/README.md                                            | 2 +-
 .../main/java/org/apache/kerby/kerberos/kerb/keytab/Keytab.java | 5 -----
 2 files changed, 1 insertion(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/b1ebdec0/kerby-dist/README.md
----------------------------------------------------------------------
diff --git a/kerby-dist/README.md b/kerby-dist/README.md
index 4b3daff..29e5971 100644
--- a/kerby-dist/README.md
+++ b/kerby-dist/README.md
@@ -39,7 +39,7 @@ The admin principal will be exported into [keytab], it will be used by kadmin
to
 * 3. Start kerby-kdc-server:
 ```
 cd kerby-dist/kdc-dist
-sh bin/start-kdc.sh –start [server-conf-dir] [work-dir]
+sh bin/start-kdc.sh [server-conf-dir] [work-dir]
 ```
 
 * 4. Run kadmin to add principals:

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/b1ebdec0/kerby-kerb/kerb-util/src/main/java/org/apache/kerby/kerberos/kerb/keytab/Keytab.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-util/src/main/java/org/apache/kerby/kerberos/kerb/keytab/Keytab.java
b/kerby-kerb/kerb-util/src/main/java/org/apache/kerby/kerberos/kerb/keytab/Keytab.java
index bd1a4ce..e0a8147 100644
--- a/kerby-kerb/kerb-util/src/main/java/org/apache/kerby/kerberos/kerb/keytab/Keytab.java
+++ b/kerby-kerb/kerb-util/src/main/java/org/apache/kerby/kerberos/kerb/keytab/Keytab.java
@@ -227,11 +227,6 @@ public final class Keytab implements KrbKeytab {
     }
 
     private void writeEntries(KeytabOutputStream kos) throws IOException {
-        for (PrincipalName principal : principalEntries.keySet()) {
-            for (KeytabEntry entry : principalEntries.get(principal)) {
-                entry.store(kos);
-            }
-        }
         for (Map.Entry<PrincipalName, List<KeytabEntry>> entryList : principalEntries.entrySet())
{
             for (KeytabEntry entry : entryList.getValue()) {
                 entry.store(kos);


Mime
View raw message