Skip to content

Commit

Permalink
Fixed login problem for ldap users
Browse files Browse the repository at this point in the history
Service script changed version
  • Loading branch information
a-schild committed Mar 7, 2019
1 parent d8df23f commit 69a8766
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ctldap.js
Original file line number Diff line number Diff line change
Expand Up @@ -459,10 +459,10 @@ function authenticate (req, res, next) {
return;
}
} else if (config.debug) {
console.log('[DEBUG] Bind user DN: ' + req.dn.toString());
console.log('[DEBUG] Bind user DN: %s', req.dn);
}
apiPost(site, "authenticate", {
"user": req.dn.rdns[0].cn,
"user": req.dn.rdns[0].attrs.cn.value,
"password": req.credentials
}).then(function () {
if (config.debug) {
Expand Down
2 changes: 1 addition & 1 deletion ctldap_raw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: ChurchTools LDAP-Wrapper v2.0
# Short-Description: ChurchTools LDAP-Wrapper v2.1
# Description: Init script for the ChurchTools LDAP Wrapper.
### END INIT INFO

Expand Down

0 comments on commit 69a8766

Please sign in to comment.