Return-Path: X-Original-To: apmail-directory-commits-archive@www.apache.org Delivered-To: apmail-directory-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 980BB10DC4 for ; Thu, 22 Jan 2015 21:47:40 +0000 (UTC) Received: (qmail 21725 invoked by uid 500); 22 Jan 2015 21:47:40 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 21670 invoked by uid 500); 22 Jan 2015 21:47:40 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 21660 invoked by uid 99); 22 Jan 2015 21:47:40 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jan 2015 21:47:40 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 3B600E03A3; Thu, 22 Jan 2015 21:47:40 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: drankye@apache.org To: commits@directory.apache.org Date: Thu, 22 Jan 2015 21:47:40 -0000 Message-Id: <10e1b1d2e2d241ccb01aa8d2941126d8@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [01/45] directory-kerberos git commit: DIRKRB-149 New layout structure with the new name "Apache Kerby" Repository: directory-kerberos Updated Branches: refs/heads/master 3558a6bae -> ceacb982d http://git-wip-us.apache.org/repos/asf/directory-kerberos/blob/ceacb982/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index acf3f8f..c89e94e 100644 --- a/pom.xml +++ b/pom.xml @@ -15,21 +15,14 @@ 4.0.0 - - org.apache - apache - 16 - - - - org.haox - haox-all + org.apache.kerby + kerby-all 1.0-SNAPSHOT pom - Haox Project - Haox, just for the way - http://www.haox.org + Apache Kerby Project + Apache Kerby project + http://www.kerby.org 2014 @@ -44,9 +37,12 @@ 3rdparty - contrib - haox-kerb - haox-kdc + lib + kerby-asn1 + kerby-kerb + kerby-kdc + tool + kdc-backend benchmark http://git-wip-us.apache.org/repos/asf/directory-kerberos/blob/ceacb982/tool/pom.xml ---------------------------------------------------------------------- diff --git a/tool/pom.xml b/tool/pom.xml new file mode 100644 index 0000000..6862b35 --- /dev/null +++ b/tool/pom.xml @@ -0,0 +1,45 @@ + + + + 4.0.0 + + + org.apache.kerby + kerby-all + 1.0-SNAPSHOT + + + tool + Tool + Kerby KDC and client tools + + + + org.apache.kerby + kerby-config + ${project.version} + + + org.apache.kerby + kerb-client + ${project.version} + + + org.apache.kerby + kerby-token + ${project.version} + + + http://git-wip-us.apache.org/repos/asf/directory-kerberos/blob/ceacb982/tool/src/main/java/org/apache/kerberos/tool/Kinit.java ---------------------------------------------------------------------- diff --git a/tool/src/main/java/org/apache/kerberos/tool/Kinit.java b/tool/src/main/java/org/apache/kerberos/tool/Kinit.java new file mode 100644 index 0000000..7362c4f --- /dev/null +++ b/tool/src/main/java/org/apache/kerberos/tool/Kinit.java @@ -0,0 +1,42 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ +package org.apache.kerby.kerberos.tool; + +import org.apache.kerby.kerberos.kerb.client.KrbClient; + +/** + * kinit like tool + */ +public class Kinit { + + public static void main(String[] args) throws Exception { + if (args.length < 2 || args.length > 3) { + System.err.println( + "Usage: " + Kinit.class.getSimpleName() + + " "); + return; + } + + final String host = args[0]; + final Integer port = Integer.parseInt(args[1]); + KrbClient krbClnt = new KrbClient(host, port.shortValue()); + } + +}