mirror of
https://github.com/webmin/webmin.git
synced 2025-08-19 01:15:14 +00:00
Also check bdb dir
This commit is contained in:
@ -100,9 +100,12 @@ return $ldap;
|
||||
# For LDIF format configs, returns the config DN for the default database
|
||||
sub get_default_db
|
||||
{
|
||||
local @poss = ( "olcDatabase={1}bdb,cn=config",
|
||||
local @poss = (
|
||||
"olcDatabase={1}hdb,cn=config",
|
||||
"olcDatabase={2}hdb,cn=config" );
|
||||
"olcDatabase={1}bdb,cn=config",
|
||||
"olcDatabase={2}hdb,cn=config",
|
||||
"olcDatabase={2}bdb,cn=config",
|
||||
);
|
||||
foreach my $p (@poss) {
|
||||
local @w = split(/,/, $p);
|
||||
if (-r $config{'config_file'}."/".join("/", reverse(@w)).".ldif") {
|
||||
|
Reference in New Issue
Block a user