Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
ARSnova LMS Connector
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
ARSnova
ARSnova LMS Connector
Commits
9b8885f5
Commit
9b8885f5
authored
Nov 21, 2014
by
Andreas Gärtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed property name to managerDn and managerPassword;
parent
d50e48bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
connector-service/src/main/java/de/thm/arsnova/connector/config/SecurityConfig.java
.../java/de/thm/arsnova/connector/config/SecurityConfig.java
+6
-6
No files found.
connector-service/src/main/java/de/thm/arsnova/connector/config/SecurityConfig.java
View file @
9b8885f5
...
...
@@ -33,8 +33,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
// LDAP
@Value
(
"${ldap.serverUrl}"
)
private
String
ldapServerUrl
;
@Value
(
"${ldap.
bindDn}"
)
private
String
ldapBind
Dn
;
@Value
(
"${ldap.
bindPassword}"
)
private
String
ldapBind
Password
;
@Value
(
"${ldap.
managerDn}"
)
private
String
ldapManager
Dn
;
@Value
(
"${ldap.
managerPassword}"
)
private
String
ldapManager
Password
;
@Value
(
"${ldap.userSearchBase}"
)
private
String
ldapUserSearchBase
;
@Value
(
"${ldap.userSearchFilter}"
)
private
String
ldapUserSearchFilter
;
...
...
@@ -88,12 +88,12 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
DefaultSpringSecurityContextSource
contextSource
=
new
DefaultSpringSecurityContextSource
(
ldapServerUrl
);
if
(!
""
.
equals
(
ldap
Bind
Dn
))
{
contextSource
.
set
Base
(
ldapBind
Dn
);
if
(!
""
.
equals
(
ldap
Manager
Dn
))
{
contextSource
.
set
UserDn
(
ldapManager
Dn
);
}
if
(!
""
.
equals
(
ldap
Bind
Password
))
{
contextSource
.
setPassword
(
ldap
Bind
Password
);
if
(!
""
.
equals
(
ldap
Manager
Password
))
{
contextSource
.
setPassword
(
ldap
Manager
Password
);
}
return
contextSource
;
...
...
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