mirror of
https://github.com/goharbor/harbor.git
synced 2024-10-30 07:09:35 +01:00
16243cfbbc
push test Add unit test for ldap verify cert remove common.VerifyRemoteCert Update code with PR review comments Add change ldaps config and add UT testcase for TLS feature add ldap verfiy cert checkbox about #3513 Draft harbor ova install guide Search and import ldap user when add project members Add unit test case for SearchAndImportUser ova guide Add ova install guide Add ova install guide 2 Add ova install guide 3 Call ValidateLdapConf before search ldap trim space in username Remove leading space in openLdap username Remove doc change in this branch Update unit test for ldap search and import user Add test case about ldap verify cert checkbox Modify ldap testcase
17 lines
435 B
Bash
Executable File
17 lines
435 B
Bash
Executable File
#!/bin/bash
|
|
NAME=ldap_server
|
|
docker rm -f $NAME 2>/dev/null
|
|
|
|
docker run --env LDAP_ORGANISATION="Harbor." \
|
|
--env LDAP_DOMAIN="example.com" \
|
|
--env LDAP_ADMIN_PASSWORD="admin" \
|
|
--env LDAP_TLS_VERIFY_CLIENT="never" \
|
|
-p 389:389 \
|
|
-p 636:636 \
|
|
--detach --name $NAME osixia/openldap:1.1.7
|
|
|
|
sleep 5
|
|
docker cp ldap_test.ldif ldap_server:/
|
|
docker exec ldap_server ldapadd -x -D "cn=admin,dc=example,dc=com" -w admin -f /ldap_test.ldif -ZZ
|
|
|