Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gdd-sigma-poc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Guillaume WANG
gdd-sigma-poc
Commits
5e6162ee
Commit
5e6162ee
authored
6 years ago
by
Quentin CHEVALIER
Browse files
Options
Downloads
Patches
Plain Diff
Minor fixes
parent
65fd5cce
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
ldap_config.json
+2
-1
2 additions, 1 deletion
ldap_config.json
src/ldap/internal/config.ts
+1
-1
1 addition, 1 deletion
src/ldap/internal/config.ts
with
3 additions
and
2 deletions
ldap_config.json
+
2
−
1
View file @
5e6162ee
{
"comment_1"
:
"Tout ce fichier sert à protéger les vrais champs du LDAP dans les scripts dans src/ldap. Les champs ci-dessous contiennent le nécessaire à une première connexion par exemple."
,
"comment_tmp"
:
"Passer en LDAPS ASAP."
,
"server_prod"
:
"ldap://frankiz.eleves.polytechnique.fr:389"
,
"server_dev"
:
"ldap://
localhost
:389"
,
"server_dev"
:
"ldap://
129.104.201.10
:389"
,
"comment_2"
:
"Noms de domaines dans LDAP ; le niv d'après est en uid=, voir Wikipedia"
,
"dn_groups"
:
"ou=groups,dc=frankiz,dc=net"
,
...
...
This diff is collapsed.
Click to expand it.
src/ldap/internal/config.ts
+
1
−
1
View file @
5e6162ee
...
...
@@ -16,7 +16,7 @@ import colors from 'colors';
let
path_config
=
path
.
resolve
(
__dirname
,
'
..
'
,
'
..
'
,
'
..
'
,
'
ldap_config.json
'
);
console
.
log
(
colors
.
cyan
(
"
Loading LDAP config file from
"
+
path_config
));
export
const
ldapConfig
=
JSON
.
parse
(
fs
.
readFileSync
(
path_config
).
toString
());
let
path_credentials
=
path
.
resolve
(
__dirname
,
'
..
'
,
'
..
'
,
'
..
'
,
'
ldap_credentials.json
'
)
let
path_credentials
=
path
.
resolve
(
__dirname
,
'
..
'
,
'
..
'
,
'
..
'
,
'
ldap_credentials.json
'
)
;
console
.
log
(
colors
.
cyan
(
"
Loading LDAP credentials from
"
+
path_credentials
));
export
const
credentialsLdapConfig
=
JSON
.
parse
(
fs
.
readFileSync
(
path_credentials
).
toString
());
// Override config server from environment
...
...
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