{"id":17972349,"url":"https://github.com/apache/directory-kerby","last_synced_at":"2025-04-12T02:54:38.020Z","repository":{"id":28852870,"uuid":"32376872","full_name":"apache/directory-kerby","owner":"apache","description":"Mirror of Apache Directory Kerby","archived":false,"fork":false,"pushed_at":"2025-04-04T11:10:52.000Z","size":43677,"stargazers_count":111,"open_issues_count":3,"forks_count":74,"subscribers_count":24,"default_branch":"trunk","last_synced_at":"2025-04-05T00:01:35.045Z","etag":null,"topics":["directory","java","network-client","network-server"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apache.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-03-17T07:00:05.000Z","updated_at":"2025-04-03T08:23:25.000Z","dependencies_parsed_at":"2024-02-08T23:05:23.488Z","dependency_job_id":"d932bbfc-a909-405c-841b-f2d619211aa9","html_url":"https://github.com/apache/directory-kerby","commit_stats":{"total_commits":2040,"total_committers":34,"mean_commits":60.0,"dds":0.7892156862745098,"last_synced_commit":"b7e6a0bc9f35f8ce6e7af1a9ae046d49981d3e85"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fdirectory-kerby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fdirectory-kerby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fdirectory-kerby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fdirectory-kerby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apache","download_url":"https://codeload.github.com/apache/directory-kerby/tar.gz/refs/heads/trunk","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248509903,"owners_count":21116125,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["directory","java","network-client","network-server"],"created_at":"2024-10-29T16:12:44.998Z","updated_at":"2025-04-12T02:54:37.968Z","avatar_url":"https://github.com/apache.png","language":"Java","readme":"\u003c!--\n  Licensed to the Apache Software Foundation (ASF) under one\n  or more contributor license agreements.  See the NOTICE file\n  distributed with this work for additional information\n  regarding copyright ownership.  The ASF licenses this file\n  to you under the Apache License, Version 2.0 (the\n  \"License\"); you may not use this file except in compliance\n  with the License.  You may obtain a copy of the License at\n\n  http://www.apache.org/licenses/LICENSE-2.0\n\n  Unless required by applicable law or agreed to in writing,\n  software distributed under the License is distributed on an\n  \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n  KIND, either express or implied.  See the License for the\n  specific language governing permissions and limitations\n  under the License.\n--\u003e\n[![Build Status](https://ci-builds.apache.org/job/Directory/job/dir-kerby-jdk8//badge/icon?subject=Build)](https://ci-builds.apache.org/job/Directory/job/dir-kerby-jdk8/)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.apache.kerby/kerby-all/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.apache.kerby/kerby-all/)\n[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/apache/directory-kerby/badge)](https://api.securityscorecards.dev/projects/github.com/apache/directory-kerby)\n\n\nApache Kerby\n============\n\nApache Kerby, as an [Apache Directory](http://directory.apache.org) sub project, is a Java Kerberos binding. It provides a rich, intuitive and interoperable implementation, library, KDC and various facilities that integrates PKI, OTP and token (OAuth2) as desired in modern environments such as cloud, Hadoop and mobile.\n\n![](https://github.com/apache/directory-kerby/blob/trunk/docs/logo.png)\n\n### The Initiatives/Goals \n- Aims as a Java Kerberos binding, with rich and integrated facilities that integrate Kerberos, PKI and token (OAuth2) for both client and server sides.\n- Provides client APIs at the Kerberos protocol level to interact with a KDC server through AS and TGS exchanges.\n- Provides a standalone KDC server that supports various identity backends including memory based, Json file based, LDAP based and even Zookeeper based.\n- Provides an embedded KDC server that applications can easily integrate into products, unit tests or integration tests.\n- Supports FAST/Preauthentication framework to allow popular and useful authentication mechanisms.\n- Supports PKINIT mechanism to allow clients to request tickets using x509 certificate credentials.\n- Supports Token Preauth mechanism to allow clients to request tickets using JWT tokens.\n- Supports OTP mechanism to allow clients to request tickets using One Time Password.\n- Provides support for JAAS, GSSAPI and SASL frameworks that applications can leverage.\n- Minimal dependencies, the core part is ensured to depend only on JRE and SLF4J, for easy use and maintenance.\n\n### KrbClient APIs\nA Krb client API for applications to interact with KDC.  \nPlease look at [kerb-client](docs/1.0.0-rc2/krbclient.md) for details.\n\n### Kadmin\nServer side admin facilities.  \nPlease look at [kerb-admin](docs/1.0.0-rc2/kadmin.md) for details.\n\n### KdcServer\nKerberos Server API.  \nPlease look at [kerb-server](docs/1.0.0-rc2/kdcserver.md) for details.\n\n### SimpleKdcServer\nA simplified Kdc server. It can be imported by other project to work as a kdc server.  \nPlease look at [kerb-simplekdc](docs/1.0.0-rc2/simplekdc.md) for details.\n\n### ASN-1 support\nA model driven ASN-1 encoding and decoding framework implemented with Java.  \nPlease look at [kerby-asn1](docs/1.0.0-rc2/kerby-asn1.md) for details.\n\n### How to play with the standalone KDC\nPlease look at [Kerby KDC](kerby-dist/README.md) for details.\n\n### Kerberos Crypto and Encryption Types\n- Implementing des, des3, rc4, aes, camellia encryption and corresponding checksum types\n- Interoperates with MIT Kerberos and Microsoft AD\n- Independent of Kerberos code in JRE, but relies on JCE\n\nSimilar to [MIT krb5 encryption types](http://web.mit.edu/kerberos/krb5-1.14/doc/admin/conf_files/kdc_conf.html#encryption-types):\n\n| Encryption Type | Description |\n| --------------- | ----------- |\n| des-cbc-crc | DES cbc mode with CRC-32 (weak) |\n| des-cbc-md4 | DES cbc mode with RSA-MD4 (weak) |\n| des-cbc-md5 | DES cbc mode with RSA-MD5 (weak) |\n| des3-cbc-sha1 des3-hmac-sha1 des3-cbc-sha1-kd | Triple DES cbc mode with HMAC/sha1 |\n| des-hmac-sha1 | DES with HMAC/sha1 (weak) |\n| aes256-cts-hmac-sha1-96 aes256-cts AES-256 | CTS mode with 96-bit SHA-1 HMAC |\n| aes128-cts-hmac-sha1-96 aes128-cts AES-128 | CTS mode with 96-bit SHA-1 HMAC |\n| arcfour-hmac rc4-hmac arcfour-hmac-md5 | RC4 with HMAC/MD5 |\n| arcfour-hmac-exp rc4-hmac-exp arcfour-hmac-md5-exp | Exportable RC4 with HMAC/MD5 (weak) |\n| camellia256-cts-cmac camellia256-cts | Camellia-256 CTS mode with CMAC |\n| camellia128-cts-cmac camellia128-cts | Camellia-128 CTS mode with CMAC |\n| des | The DES family: des-cbc-crc, des-cbc-md5, and des-cbc-md4 (weak) |\n| des3 | The triple DES family: des3-cbc-sha1 |\n| aes | The AES family: aes256-cts-hmac-sha1-96 and aes128-cts-hmac-sha1-96 |\n| rc4 | The RC4 family: arcfour-hmac |\n| camellia | The Camellia family: camellia256-cts-cmac and camellia128-cts-cmac |\n\n### Identity Backend\nA standalone KDC server that can integrate various identity backends including:\n- MemoryIdentityBackend.\n  - It is default Identity Backend, and no cofiguration is needed. This backend is for no permanent storage requirements.\n- JsonIdentityBackend.\n  - It implemented by Gson which is used to convert Java Objects into their JSON representation and convert a JSON string to an equivalent Java object. A json file will be created in \"backend.json.dir\". This backend is for small, easy, development and test environment.\n- MySQLIdentityBackend.\n  - A backend based on MySQL.\n- ZookeeperIdentityBackend.\n  - Currently it uses an embedded Zookeeper. In follow up it will be enhanced to support standalone Zookeeper cluster for\n  replication and reliability. Zookeeper backend would be a good choice for high reliability, high performance and high scalability requirement and scenarios. \n- LdapIdentityBackend.\n  - The Ldap server can be standalone or embedded using ApacheDS server as the backend. It is used when there is exist ldap server.\n- MavibotBackend.\n  - A backend based on Apache Mavibot(an MVCC BTree library).\n\n### Network Support\n- Include UDP and TCP transport.\n- Default KDC server implementation.\n  - The Networking Classes in the JDK is used.\n- Netty based KDC server implementation.\n  - Netty is an asynchronous event-driven network application framework for rapid development of maintainable high    performance protocol servers \u0026 clients.\n  - With better throughput, lower latency.\n\n### Tools\n- kinit:\n  - Obtains and caches an initial ticket-granting ticket for principal.\n- klist:\n  - Lists the Kerby principal and tickets held in a credentials cache, or the keys held in a keytab file.\n- kdcinit:\n  - This is used to initialize and prepare all kinds of KDC side materials, like initializing concrete back end, setting up master keys, necessary principals (tgs, kadmin) and etc.\n- kadmin:\n  - Command-line interfaces to the Kerby administration system.\n\n#### Kerby Common Projects\n- kerby-asn1. A model driven ASN-1 encoding and decoding framework\n- kerby-config. A unified configuration API that aims to support various configuration file formats, like XML, INI, even Java Map and Properties.\n- kerby-util. Common utilities used by project.\n\n### Dependency\n- The core part is ensured to only depend on the JRE and SLF4J. Every external dependency is taken carefully and maintained separately.\n- [Nimbus JOSE + JWT](http://connect2id.com/products/nimbus-jose-jwt), needed by token-provider and TokenPreauth mechanism.\n- [Netty](http://netty.io/), needed by netty based KDC server.\n- [Zookeeper](https://zookeeper.apache.org/), needed by zookeeper identity backend.\n\n### How to use library\nThe Apache Kerby is also available as a Maven dependency.\n\n- Kerby Client API:\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003eorg.apache.kerby\u003c/groupId\u003e\n    \u003cartifactId\u003ekerb-client-api-all\u003c/artifactId\u003e\n    \u003cversion\u003e${kerby-version}\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n- Kerby Server API:\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003eorg.apache.kerby\u003c/groupId\u003e\n    \u003cartifactId\u003ekerb-server-api-all\u003c/artifactId\u003e\n    \u003cversion\u003e${kerby-version}\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n- Kerby ASN1:\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003eorg.apache.kerby\u003c/groupId\u003e\n    \u003cartifactId\u003ekerby-asn1\u003c/artifactId\u003e\n    \u003cversion\u003e${kerby-version}\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n- Kerby Simple KDC:\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003eorg.apache.kerby\u003c/groupId\u003e\n    \u003cartifactId\u003ekerb-simplekdc\u003c/artifactId\u003e\n    \u003cversion\u003e${kerby-version}/version\u003e\n\u003c/dependency\u003e\n```\n- please replace the ${kerby-version} with the release version.\n- Apache Kerby 2.1.0 is the latest release and recommended version for all users.\n\n### License\nApache License V2.0\n\n### How to contribute\n- Git repo in Apache: https://git-wip-us.apache.org/repos/asf/directory-kerby.git\n- Umbrella JIRA: it's tracked in the master JIRA [DIRKRB-102](https://issues.apache.org/jira/browse/DIRKRB-102), and find tasks there.\n- Directory Developers List: dev@directory.apache.org [Subscribe](dev-subscribe@directory.apache.org)\n- Kerby Developers List: kerby@directory.apache.org [Subscribe](kerby-subscribe@directory.apache.org)\n\n### Downloads\n- [Release 2.1.0](https://directory.apache.org/kerby/download/download-sources.html)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapache%2Fdirectory-kerby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapache%2Fdirectory-kerby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapache%2Fdirectory-kerby/lists"}