tags/smeserver-lemonldap-ng-0.2.19-1
parent
9b7e219094
commit
aa73eed866
2 changed files with 21 additions and 1 deletions
@ -0,0 +1,14 @@ |
||||
{ |
||||
|
||||
use esmith::DomainsDB; |
||||
my $d = esmith::DomainsDB->open() or die "Couldn't open DomainsDB\n"; |
||||
|
||||
foreach my $domain ($d->domains){ |
||||
my $llng = $domain->prop('LemonLDAP') || ''; |
||||
next unless $llng eq 'enabled'; |
||||
$domain->set_prop('Authentication', 'LemonLDAP'); |
||||
$domain->delete_prop('LemonLDAP'); |
||||
} |
||||
|
||||
} |
||||
|
Loading…
Reference in new issue