konveyor / konveyor/operator

TESTING | Automated testing with CI deployed open ldap.

Open
#573 1 comment 0 reactions 1 assignee Claimed by @jortel View on GitHub
needs-kind needs-priority needs-triage
Dominant language
Jinja
Stars
37
Forks
49
Avg merge
1d 10h
Merged PRs (30d)
22

Description

```yaml
---
apiVersion: v1
kind: ConfigMap
metadata:
name: openldap-bootstrap
namespace: openldap
data:
bootstrap.ldif: |
dn: ou=People,dc=example,dc=com
objectClass: organizationalUnit
ou: People

dn: ou=Groups,dc=example,dc=com
objectClass: organizationalUnit
ou: Groups

# Jack Smith
dn: uid=jsmith,ou=People,dc=example,dc=com
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: shadowAccount
uid: jsmith
cn: Jack Smith
givenName: Jack
sn: Smith
userPassword: jsmith
uidNumber: 10001
gidNumber: 10001
homeDirectory: /home/jsmith

# Engineering Group
dn: cn=Engineering,ou=Groups,dc=example,dc=com
objectClass: posixGroup
cn: Engineering
gidNumber: 10001
memberUid: jsmith

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: openldap
namespace: openldap
spec:
replicas: 1
strategy:
type: Recreate # This must be under the first 'spec'
selector:
matchLabels:
app: openldap
template:
metadata:
labels:
app: openldap
spec: # This is 'template.spec'
serviceAccountName: openldap
containers:
- name: openldap
image: osixia/openldap:1.5.0
args: ["--copy-service"]
ports:
- containerPort: 389
env:
- name: LDAP_ORGANISATION
value: "Test Company"
- name: LDAP_DOMAIN
value: "example.com"
- name: LDAP_ADMIN_PASSWORD
value: "adminpassword"
- name: LDAP_CONFIG_PASSWORD
value: "configpassword"
- name: LDAP_TLS
value: "false"
- name: DISABLE_CHOWN
value: "true"
- name: LDAP_ADMIN_PASSWORD
value: admin
volumeMounts:
- name: ldap-data
mountPath: /var/lib/ldap
- name: ldap-config
mountPath: /etc/ldap/slapd.d
- name: bootstrap-ldif
mountPath: /container/service/slapd/assets/config/bootstrap/ldif/custom/bootstrap.ldif
subPath: bootstrap.ldif
volumes: # This must be under 'template.spec'
- name: ldap-data
emptyDir: {}
- name: ldap-config
emptyDir: {}
- name: bootstrap-ldif
configMap:
name: openldap-bootstrap
```
---

Captured from AWS Test cluster.

```yaml
apiVersion: tackle.konveyor.io/v1alpha1
kind: LdapProvider
metadata:
name: tackle-ldap
namespace: konveyor-tackle
spec:
baseDN: dc=example,dc=com
bindDN: cn=admin,dc=example,dc=com
groupFilter: ""
hasMemberOf: false
name: F35A LDAP
password:
name: ldap
namespace: konveyor-tackle
roleMappings:
- any:
- Engineering
roles:
- migrator
url: ldap://openldap.openldap.svc.cluster.local:389
userFilter: ""
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.