Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] connection openldap cluster failed , ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1) #5194

Closed
linghan-hub opened this issue Sep 20, 2023 · 1 comment
Assignees
Labels
bug kind/bug Something isn't working Stale
Milestone

Comments

@linghan-hub
Copy link
Collaborator

linghan-hub commented Sep 20, 2023

kbcli version
Kubernetes: v1.25.12-eks-2d98532
KubeBlocks: 0.7.0-alpha.13
kbcli: 0.7.0-alpha.13
  1. install cv and cd
helm upgrade --install openldap deploy/openldap
  1. create cluster
    helm template openldap-cluster deploy/openldap-cluster
---
# Source: openldap-cluster/templates/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
  name: openldap-cluster
  labels:
    helm.sh/chart: openldap-cluster-0.1.0-alpha.0
    app.kubernetes.io/name: openldap-cluster
    app.kubernetes.io/instance: openldap-cluster
    app.kubernetes.io/version: "2.4.57"
    app.kubernetes.io/managed-by: Helm
---
# Source: openldap-cluster/templates/cluster.yaml
apiVersion: apps.kubeblocks.io/v1alpha1
kind: Cluster
metadata:
  name: openldap-cluster
  labels:
    helm.sh/chart: openldap-cluster-0.1.0-alpha.0
    app.kubernetes.io/name: openldap-cluster
    app.kubernetes.io/instance: openldap-cluster
    app.kubernetes.io/version: "2.4.57"
    app.kubernetes.io/managed-by: Helm
spec:
  clusterDefinitionRef: openldap
  clusterVersionRef: openldap-2.4.57
  terminationPolicy: Halt
  affinity:
    topologyKeys: 
      - kubernetes.io/hostname
  componentSpecs:
    - name: openldap
      componentDefRef: openldap-compdef
      replicas: 1
      serviceAccountName: openldap-cluster
---
# Source: openldap-cluster/templates/tests/test-connection.yaml
apiVersion: v1
kind: Pod
metadata:
  name: "openldap-cluster-test-connection"
  labels:
    helm.sh/chart: openldap-cluster-0.1.0-alpha.0
    app.kubernetes.io/name: openldap-cluster
    app.kubernetes.io/instance: openldap-cluster
    app.kubernetes.io/version: "2.4.57"
    app.kubernetes.io/managed-by: Helm
  annotations:
    "helm.sh/hook": test
spec:
  containers:
    - name: test-openldap-cluster
      image: "docker.io/osixia/openldap:1.5.0"
      command:
        - "ldapsearch"
      args:
        - "-x"
        - "-H"
        - "ldap://openldap-cluster-openldap-0.openldap-cluster-openldap-headless.default.svc.cluster.local"
        - "-b"
        - "dc=kubeblocks,dc=io"
        - "-D"
        - "cn=admin,dc=kubeblocks,dc=io"
        - "-w"
        - "admin"
  restartPolicy: Never
  1. see cluster
k get cluster,pod
NAME                                          CLUSTER-DEFINITION   VERSION           TERMINATION-POLICY   STATUS    AGE
cluster.apps.kubeblocks.io/openldap-cluster   openldap             openldap-2.4.57   Halt                 Running   14m

NAME                                                   READY   STATUS    RESTARTS   AGE
pod/keda-admission-webhooks-54559966c6-wcmjl           1/1     Running   0          22h
pod/keda-operator-756bf6f677-b9n8q                     1/1     Running   0          22h
pod/keda-operator-metrics-apiserver-6f85cf9f44-97g7z   1/1     Running   0          22h
pod/openldap-cluster-openldap-0                        1/1     Running   0          14m
pod/openldap-cluster-test-connection                   0/1     Error     0          14m
k logs openldap-cluster-test-connection
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
@linghan-hub linghan-hub added the kind/bug Something isn't working label Sep 20, 2023
@linghan-hub linghan-hub added this to the Release 0.7.0 milestone Sep 20, 2023
@github-actions
Copy link

This issue has been marked as stale because it has been open for 30 days with no activity

@github-actions github-actions bot added the Stale label Oct 23, 2023
@ahjing99 ahjing99 modified the milestones: Release 0.7.0, Release 0.8.0 Nov 6, 2023
@ahjing99 ahjing99 modified the milestones: Release 0.8.0, Release 0.9.0 Jan 12, 2024
@ahjing99 ahjing99 modified the milestones: Release 0.9.0, Release 0.9.1 Jul 8, 2024
@github-actions github-actions bot modified the milestones: Release 0.9.1, Release 0.9.2 Aug 8, 2024
@github-actions github-actions bot modified the milestones: Release 0.9.2, Release 0.8.5 Oct 8, 2024
@github-actions github-actions bot modified the milestones: Release 0.9.2, Release 0.9.3 Jan 14, 2025
@shanshanying shanshanying closed this as not planned Won't fix, can't repro, duplicate, stale Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug kind/bug Something isn't working Stale
Projects
None yet
Development

No branches or pull requests

4 participants