Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dex
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hdacloud
dex
Commits
337bbe5f
Commit
337bbe5f
authored
6 years ago
by
Takashi Okamoto
Browse files
Options
Downloads
Patches
Plain Diff
fix typos.
parent
1b7b3515
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Documentation/connectors/kubelogin-activedirectory.md
+9
-9
9 additions, 9 deletions
Documentation/connectors/kubelogin-activedirectory.md
Documentation/connectors/ldap.md
+0
-3
0 additions, 3 deletions
Documentation/connectors/ldap.md
with
9 additions
and
12 deletions
Documentation/connectors/kubelogin-activedirectory.md
+
9
−
9
View file @
337bbe5f
...
...
@@ -40,10 +40,10 @@ subjectAltName = @alt_names
DNS.1 = dex.example.com
```
Please replace dex.example.com to your favorit hostname.
Please replace dex.example.com to your favorit
e
hostname.
Generate certificate and private key by following command.
```
```
console
$
openssl req
-new
-x509
-sha256
-days
3650
-newkey
rsa:4096
-extensions
v3_req
-out
openid-ca.pem
-keyout
openid-key.pem
-config
req.cnf
-subj
"/CN=kube-ca"
-nodes
$
ls
openid
*
openid-ca.pem openid-key.pem
...
...
@@ -53,7 +53,7 @@ openid-ca.pem openid-key.pem
Modify following host, bindDN and bindPW in examples/config-ad-kubelogin.yaml.
```
```
yaml
connectors
:
-
type
:
ldap
name
:
OpenLDAP
...
...
@@ -99,27 +99,27 @@ See https://kubernetes.io/docs/reference/access-authn-authz/authentication/ for
Create context for dex authentication:
```
```
console
$
kubectl config set-context oidc-ctx
--cluster
=
cluster.local
--user
=
test
$ kubectl config set-credentials test
$
kubectl config set-credentials
test
\
--auth-provider=oidc \
--auth-provider-arg=idp-issuer-url=https://dex.example.com:32000/dex \
--auth-provider-arg=client-id=kubernetes \
--auth-provider-arg=client-secret=ZXhhbXBsZS1hcHAtc2VjcmV0 \
--auth-provider-arg=idp-certificate-authority-data=$
(
base64
-w
0 openid-ca.pem
)
\
"
--auth-provider-arg=extra-scopes=offline_access openid profile email group"
--auth-provider-arg=extra-scopes=
"
offline_access openid profile email group"
$
kubectl config use-context oidc-ctx
```
Please confirm idp-issuer-url, cl
e
int-id, client-secret and idp-certificate-authority-data value is same as config-ad-kubelogin.yaml's value.
Please confirm idp-issuer-url, cli
e
nt-id, client-secret and idp-certificate-authority-data value is same as config-ad-kubelogin.yaml's value.
Then run kubelogin:
```
```
console
$
kubelogin
```
Access http://localhost:8000 by web browser and login with your AD account(eg. test@example.com) and password.
Access http://localhost:8000 by web browser and login with your AD account
(eg. test@example.com) and password.
After login and grant, you have following token in ~/.kube/config:
```
...
...
This diff is collapsed.
Click to expand it.
Documentation/connectors/ldap.md
+
0
−
3
View file @
337bbe5f
...
...
@@ -253,7 +253,6 @@ groupSearch:
The following configuration will allow the LDAP connector to search a FreeIPA directory using an LDAP filter.
```
yaml
connectors
:
-
type
:
ldap
id
:
ldap
...
...
@@ -290,7 +289,6 @@ If the search finds an entry, it will attempt to use the provided password to bi
The following configuration will allow the LDAP connector to search a Active Directory using an LDAP filter.
```
yaml
connectors
:
-
type
:
ldap
name
:
ActiveDirectory
...
...
@@ -320,6 +318,5 @@ connectors:
userAttr
:
DN
groupAttr
:
member
nameAttr
:
cn
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment