Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
79286c93
Commit
79286c93
authored
Jun 07, 2019
by
Krakinou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
encode password
parent
97d12b94
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
web.py
cps/web.py
+3
-3
No files found.
cps/web.py
View file @
79286c93
...
...
@@ -186,8 +186,8 @@ if ldap_support and config.config_use_ldap:
app
.
config
[
'LDAP_HOST'
]
=
config
.
config_ldap_provider_url
app
.
config
[
'LDAP_PORT'
]
=
config
.
config_ldap_port
app
.
config
[
'LDAP_SCHEMA'
]
=
config
.
config_ldap_schema
app
.
config
[
'LDAP_USERNAME'
]
=
config
.
config_ldap_
serv_username
app
.
config
[
'LDAP_PASSWORD'
]
=
config
.
config_ldap_serv_password
app
.
config
[
'LDAP_USERNAME'
]
=
config
.
config_ldap_
user_object
.
replace
(
'
%
s'
,
config
.
config_ldap_serv_username
)
+
','
+
config
.
config_ldap_dn
app
.
config
[
'LDAP_PASSWORD'
]
=
base64
.
b64decode
(
config
.
config_ldap_serv_password
)
if
config
.
config_ldap_use_ssl
:
app
.
config
[
'LDAP_USE_SSL'
]
=
True
if
config
.
config_ldap_use_tls
:
...
...
@@ -3162,7 +3162,7 @@ def configuration_helper(origin):
content
.
config_ldap_port
=
to_save
[
"config_ldap_port"
]
content
.
config_ldap_schema
=
to_save
[
"config_ldap_schema"
]
content
.
config_ldap_serv_username
=
to_save
[
"config_ldap_serv_username"
]
content
.
config_ldap_serv_password
=
to_save
[
"config_ldap_serv_password"
]
content
.
config_ldap_serv_password
=
base64
.
b64encode
(
to_save
[
"config_ldap_serv_password"
])
content
.
config_ldap_dn
=
to_save
[
"config_ldap_dn"
]
content
.
config_ldap_user_object
=
to_save
[
"config_ldap_user_object"
]
reboot_required
=
True
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment