Skip to content

Commit 9dba7c5

Browse files
committed
Update LDAPUserManager.php
Doesn't just split the first ':', example the following mailstoragedirectory attribute: maildir:/var/mail/ in ldap is saved mailstoragedirectory: maildir. But adding limit 2 saves correctly. Signed-off-by: Pacman <vivacarvajalito@gmail.com>
1 parent f527780 commit 9dba7c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/LDAPUserManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ public function buildNewEntry($username, $password, $base) {
274274
$entry = [];
275275
$lines = explode(PHP_EOL, $ldif);
276276
foreach ($lines as $line) {
277-
$split = explode(':', $line);
277+
$split = explode(':', $line, 2);
278278
$key = trim($split[0]);
279279
$value = trim($split[1]);
280280
if (!isset($entry[$key])) {

0 commit comments

Comments
 (0)