Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 2108615

Browse files
committed
Added the connection option to import users on a specific LDAP connection
1 parent e8e3c81 commit 2108615

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Commands/Import.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Import extends Command
3434
public function handle()
3535
{
3636
// Retrieve the Adldap instance.
37-
$adldap = $this->getAdldap();
37+
$adldap = $this->getAdldap($this->option('connection'));
3838

3939
if (!$adldap->getConnection()->isBound()) {
4040
// If the connection isn't bound yet, we'll connect to the server manually.
@@ -136,7 +136,9 @@ public function getOptions()
136136
return [
137137
['filter', null, InputOption::VALUE_OPTIONAL, 'The raw filter for limiting users imported.'],
138138

139-
['log', true, InputOption::VALUE_OPTIONAL, 'Log successful and unsuccessful imported users.']
139+
['log', true, InputOption::VALUE_OPTIONAL, 'Log successful and unsuccessful imported users.'],
140+
141+
['connection', null, InputOption::VALUE_OPTIONAL, 'The LDAP connection to use to import users.'],
140142
];
141143
}
142144

0 commit comments

Comments
 (0)