openldap Plugin
replicaCount
: The default value is 3, for the convenience of local testing, the above example is set to 1service.type
: The default value isClusterIP
, if you have services outside the Kubernetes cluster that require ldap integration, the value preferably be set toNodePort
, so that services outside the Kubernetes cluster can access the ldap service vialdap://ip:389
instead ofconfigPassword
: Use your own custom passwordltb-passwd
: Ingress of the Ltb-Passwd service by which you can modify your password. If you need this service, you can setltb-passwd.enabled
totrue
.phpldapadmin.ingress
: Ingress of Phpldapadmin service by which you can manage your ldap service. If you wish to expose the service to the Internet, you can change the totrue
and configure your own domain name
Once the installation is complete, you can manage ldap service through phpldapadmin. For local testing, you can access the service through port forwarding. The commands are as follows.
Now you can now access the phpldapadmin service on your browser via http://127.0.0.1:8080
Note: If you’re familiar with OpenLDAP, then you don’t need to continue reading the tutorial below, you can just go ahead and integrate ldap for your service.
The following is a sample file, if you have changed the above configuration, remember to replace dc=devstream,dc=org
with your own.
Verify the LDAP Service
Log in to the container where the ldap service is located, and then use the ldapsearch
command to query the user(uid=example,ou=people,dc=devstream,dc=org
) created above
If your command output is as above, your ldap service is fine. The above values_yaml
is only to facilitate your local testing, if you want production available, you also have to configure , data persistence, etc., refer to OpenLDAP values.yaml