Skip to content

Commit b35f6db

Browse files
committed
Merge branch 'master' into release
2 parents 67d9e24 + 2ea7e10 commit b35f6db

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

app/Services/LdapService.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ public function getUserDetails($userName)
4242
$userFilter = $this->buildFilter($this->config['user_filter'], ['user' => $userName]);
4343
$baseDn = $this->config['base_dn'];
4444
$emailAttr = $this->config['email_attribute'];
45+
$followReferrals = $this->config['follow_referrals'] ? 1 : 0;
46+
$this->ldap->setOption($ldapConnection, LDAP_OPT_REFERRALS, $followReferrals);
4547
$users = $this->ldap->searchAndGetEntries($ldapConnection, $baseDn, $userFilter, ['cn', 'uid', 'dn', $emailAttr]);
4648
if ($users['count'] === 0) return null;
4749

config/services.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
'user_filter' => env('LDAP_USER_FILTER', '(&(uid=${user}))'),
8181
'version' => env('LDAP_VERSION', false),
8282
'email_attribute' => env('LDAP_EMAIL_ATTRIBUTE', 'mail'),
83+
'follow_referrals' => env('LDAP_FOLLOW_REFERRALS', false),
8384
]
8485

8586
];

resources/assets/sass/_forms.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#markdown-editor {
3333
position: relative;
3434
z-index: 5;
35-
textarea {
35+
#markdown-editor-input {
3636
font-family: 'Roboto Mono', monospace;
3737
font-style: normal;
3838
font-weight: 400;

0 commit comments

Comments
 (0)