Restored support for initial databases

This commit is contained in:
Michael Grafnetter 2019-01-01 20:13:56 +01:00
parent 8860b4cbcc
commit a0ca560659
1 changed files with 29 additions and 25 deletions

View File

@ -176,6 +176,9 @@
this.ServerReference = context.DistinguishedNameResolver.Resolve(this.ServerReferenceDNT.Value);
}
// The crossRefContainer does not exist in initial DBs, as it is created during dcpromo.
if (this.State != DatabaseState.Boot)
{
// Construct crossRefContainer DN (CN=Partitions,CN=Configuration,...)
var crossRefContainer = new DistinguishedName(CrossRefContainerRDN);
crossRefContainer.AddParent(this.ConfigurationNamingContext);
@ -210,6 +213,7 @@
}
}
}
}
public int NTDSSettingsDNT
{