mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
102 lines
1.6 KiB
102 lines
1.6 KiB
// Active Directory Display Specifier Upgrade Tool
|
|
//
|
|
// Copyright (c) 2001 Microsoft Corporation
|
|
//
|
|
// class Analyst: analyzes the display specifiers, logs the findings, and
|
|
// compiles a set of corrective actions.
|
|
//
|
|
// 9 Mar 2001 sburns
|
|
|
|
|
|
|
|
#ifndef ANALYST_HPP_INCLUDED
|
|
#define ANALYST_HPP_INCLUDED
|
|
|
|
|
|
|
|
class Amanuensis;
|
|
class Repairer;
|
|
class ChangedObjectHandler;
|
|
|
|
|
|
|
|
class Analyst
|
|
{
|
|
public:
|
|
|
|
|
|
|
|
Analyst(
|
|
const String& targetDomainControllerName,
|
|
Amanuensis& amanuensis,
|
|
Repairer& repairer);
|
|
|
|
|
|
|
|
HRESULT
|
|
AnalyzeDisplaySpecifiers();
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
HRESULT
|
|
AnalyzeAddedObjects(
|
|
int localeId,
|
|
const String& containerDn);
|
|
|
|
|
|
|
|
HRESULT
|
|
AnalyzeChangedObjects(
|
|
int localeId,
|
|
const String& containerDn);
|
|
|
|
|
|
|
|
HRESULT
|
|
AnalyzeChangedObject(
|
|
int localeId,
|
|
const String& containerDn,
|
|
const ChangedObjectHandler& changeHandler);
|
|
|
|
|
|
|
|
HRESULT
|
|
AnalyzeDisplaySpecifierContainers(const String& configurationDn);
|
|
|
|
|
|
|
|
HRESULT
|
|
AnalyzeDisplaySpecifierContainer(
|
|
int localeId,
|
|
const String& rootContainerDn);
|
|
|
|
|
|
|
|
HRESULT
|
|
AnalyzeDisplaySpecifierObjects(
|
|
int localeId,
|
|
const String& containerDn);
|
|
|
|
|
|
|
|
String targetDcName;
|
|
String ldapPrefix;
|
|
SmartInterface<IADs> rootDse;
|
|
Amanuensis& amanuensis;
|
|
Repairer& repairer;
|
|
|
|
|
|
|
|
// not implemented: no copying allowed.
|
|
|
|
Analyst(const Analyst&);
|
|
const Analyst& operator=(const Analyst&);
|
|
};
|
|
|
|
|
|
|
|
#endif // ANALYST_HPP_INCLUDED
|