Skip to content

Commit

Permalink
Just change of text and adding text files
Browse files Browse the repository at this point in the history
  • Loading branch information
ttnesby committed May 4, 2018
1 parent ee0e676 commit 2135692
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 4 deletions.
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @navikt/integrasjon
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2018 NAV (Arbeids- og velferdsdirektoratet) - The Norwegian Labour and Welfare Administration

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@ giving minor performance penalty and reduced LDAPS traffic.
## Tools
- Kotlin
- Gradle build tool
- Spek test framework

## Components

1. Unboundid LDAP SDK for LDAPS interaction
2. Caffeine Cache
3. YAML Configuration for LDAP baseDN for users, groups and more. See src/test/resources/ldapconfig.yaml for details

**Observe** that the directory hosting yaml configuration file must be in CLASSPATH
**Observe** that the directory hosting yaml configuration file must be in CLASSPATH.

## Kafka configuration examples

Expand Down Expand Up @@ -49,13 +50,21 @@ Use of Unboundid in-memory LDAP server for all test cases.

Tested on confluent.io version 4.0.0.

See [Confluent Open Source distribution](https://www.confluent.io/product/confluent-open-source/) in order to test locally.

## Build

```
./gradlew clean build
./gradlew shadowJar
./gradlew publish
The result is KafkaPlainSaslServer2AD-<version>-all.jar both authentication and authorization logic.
```
**Observe** that the directory hosting the given JAR file must be in CLASSPATH.

KafkaPlainSaslServer2AD-a_version-all.jar contains the relevant components only.
### Contact us
#### Code/project related questions can be sent to
* Torstein Nesby, `[email protected]`
* Trong Huu Nguyen, `[email protected]`

For internal resources, send requests/questions to slack#kafka
2 changes: 1 addition & 1 deletion src/main/kotlin/no/nav/common/security/ldap/LDAPCache.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import org.slf4j.LoggerFactory
import java.util.concurrent.TimeUnit

/**
* A class using google guava cache for 2 purposes
* A class using caffeine cache for 2 purposes
* - caching of successful ldap bindings
* - caching of confirmed group membership
*
Expand Down

0 comments on commit 2135692

Please sign in to comment.