Re: [cifs-protocol] [REG:110062452298172] Re: Text-file Schema for all of 2000-2008R2

2010-07-08 Thread Bill Wesse
Resending the DumpSchema.cmd(.txt) file; I broke the earlier one during an edit 
(deleted a label ':Perform'). Sorry.

Regards,
Bill Wesse
MCSE, MCTS / Senior Escalation Engineer, US-CSS DSC Protocol Team
8055 Microsoft Way
Charlotte, NC 28273
Email:   bil...@microsoft.com
Tel:   +1(980) 776-8200
Cell:  +1(704) 661-5438
Fax:  +1(704) 665-9606


-Original Message-
From: Bill Wesse
Sent: Thursday, July 08, 2010 7:42 AM
To: "Andrew Bartlett" 
Cc: "MSSolve Case Email" ; "cifs-proto...@samba.org" 

Subject: [REG:110062452298172] Re: Text-file Schema for all of 2000-2008R2

Hi Andrew, here is the current status of your request. 

We have submitted a request to our product team to complete a validated and 
combined schema for Windows 2000, 2003, 2003R2, 2008 and 2008R2, incorporating 
all TDI’s submitted against [MS-ADA1], [MS-ADA2], [MS-ADA3], [MS-ADSC] and 
[MS-ADTS]. Please expect this to take at least several weeks before we have any 
results. I will keep you posted.

Also, please note that the text schemas in the 
SchemaTextFilesAndDisplaySpecifiers.zip I sent on Wed 6/30/2010 are the most 
recent we have provided, with the exception of the Windows 2008 files - 
2k8\MS-AD_Schema_2K8_*.txt; 2k8\DisplaySpecifiers-Win2k8.txt  is current with 
the other display specifier text files.

In the meantime, if you aren’t already aware of the following blog entries, I 
would like to bring them to your attention, as they bear somewhat on your 
efforts. On the same topic, I have attached ‘DumpSchema.cmd.txt’, which will 
invoke ldifde.exe to dump a Windows 2xxx AD domain RootDSE and Configuration 
trees into .ldf files (it will ask if you want to change the domain/DC/user, 
which are preselected from environment variables).

Understanding the minimum set of DIT elements required by the first DC using 
MS-ADTS http://blogs.msdn.com/b/openspecification/archive/2010/03/18/understandi
ng-the-minimum-set-of-dit-elements-required-by-the-first-dc-using-ms-adt
s.aspx

Using the Windows Server Protocols documentation set to better understand the 
Active Directory Schema 
http://blogs.msdn.com/b/openspecification/archive/2009/06/26/using-the-w
indows-server-protocols-documentation-set-to-better-understand-the-activ
e-directory-schema.aspx

Thanks for your patience! 

Regards,
Bill Wesse
MCSE, MCTS / Senior Escalation Engineer, US-CSS DSC Protocol Team
8055 Microsoft Way
Charlotte, NC 28273 
Email:   bil...@microsoft.com 
Tel:   +1(980) 776-8200 
Cell:  +1(704) 661-5438 
Fax:  +1(704) 665-9606 

-Original Message-
From: Bill Wesse
Sent: Thursday, July 08, 2010 6:51 AM
To: "Bill Wesse" 
Cc: "MSSolve Case Email" ; "cifs-proto...@samba.org" 

Subject: [REG:110062452298172] Re: Text-file Schema for all of
2000-2008R2 

On Thu, 2010-07-01 at 17:21 +, Bill Wesse wrote: 
> A quick update: Confirmation on time/dates of the latest schema text 
> files will be forthcoming after the July 6 meeting I mentioned below.
> Sorry I won't be able to confirm before that. Thanks again for your 
> patience...

No worries.  I would rather wait until you have absolute confidence that these 
schema files match the schema in Windows than spend time debugging why they 
don't match. 

Andrew Bartlett 

--
Andrew Bartlett
http://samba.org/~abartlet/ 
Authentication Developer, Samba Team   http://samba.org 
Samba Developer, Cisco Inc. 


@echo off

if defined _vect_ goto :%_vect_%

setlocal
set _this_="%~f0"
set 
_esep_===
set _vect_=GetDefaultSettings
call %_this_%
set _vect_=EchoSettings
call %_this_%
echo.
set _resp_=
set /p _resp_=Enter 'y' to change these settings: 
if "%_resp_%" equ "" goto :Perform
if /i "%_resp_:~0,1%" neq "y" goto :Perform
set _vect_=GetDomainName
call %_this_%
set _vect_=CrackDomainName
call %_this_%
set _vect_=GetDCName
call %_this_%
set _vect_=GetUserName
call %_this_%
set _vect_=EchoSettings
call %_this_%

:Perform
set _vect_=DumpOnePartition
call %_this_% "%_from_%" Configuration
call %_this_% "%_from_%"
goto :Exit

:DumpOnePartition
echo.
echo %_esep_%
set _root_=%~1
if "%~2" equ "" (
   set _file_=RootDSE.ldf
   goto :DumpOnePartitionExecute
)
shift
set _file_=%~1.ldf

:DumpOnePartitionNextSubtree
if "%~1" equ "" goto :DumpOnePartitionExecute
set _root_=CN=%~1,%_root_%
shift
goto :DumpOnePartitionNextSubtree

:DumpOnePartitionExecute
echo Exporting: %USERDNSDOMAIN%
echoTo: %_file_%
echo  Root: %_root_%
echo.
if exist "%_file_%" del /f "%_file_%">nul
ldifde.exe %_sarg_%%_uarg_%-d %_root_% -f "%_file_%"
set _errn_=%errorlevel%
if %_errn_% neq 0 (
   echo Error: %_errn_%
   echo  Deleting: %_file_%
   del /f "%_file_%">nul
)
goto :EOF

:CrackDomainName
set _vect_=CrackDnsDomainName
set _from_=
for /f "tokens=1-26 delims=." %%a in ("%_ddns_%") do call %_this_% %%a %%b %%c 
%%d %%e %%f %%g %%h %%i %%j %%k %%l %%m %%n %%o %%p %%q %%r %%s %%t %%u %%v %%w 
%%x %%y %%z
set _vect_=CrackDomainName

Re: [cifs-protocol] [REG:110062452298172] Re: Text-file Schema for all of 2000-2008R2

2010-07-08 Thread Bill Wesse
Hi Andrew, here is the current status of your request.

We have submitted a request to our product team to complete a validated and 
combined schema for Windows 2000, 2003, 2003R2, 2008 and 2008R2, incorporating 
all TDI’s submitted against [MS-ADA1], [MS-ADA2], [MS-ADA3], [MS-ADSC] and 
[MS-ADTS]. Please expect this to take at least several weeks before we have any 
results. I will keep you posted.

Also, please note that the text schemas in the 
SchemaTextFilesAndDisplaySpecifiers.zip I sent on Wed 6/30/2010 are the most 
recent we have provided, with the exception of the Windows 2008 files - 
2k8\MS-AD_Schema_2K8_*.txt; 2k8\DisplaySpecifiers-Win2k8.txt  is current with 
the other display specifier text files.

In the meantime, if you aren’t already aware of the following blog entries, I 
would like to bring them to your attention, as they bear somewhat on your 
efforts. On the same topic, I have attached ‘DumpSchema.cmd.txt’, which will 
invoke ldifde.exe to dump a Windows 2xxx AD domain RootDSE and Configuration 
trees into .ldf files (it will ask if you want to change the domain/DC/user, 
which are preselected from environment variables).

Understanding the minimum set of DIT elements required by the first DC using 
MS-ADTS
http://blogs.msdn.com/b/openspecification/archive/2010/03/18/understanding-the-minimum-set-of-dit-elements-required-by-the-first-dc-using-ms-adts.aspx

Using the Windows Server Protocols documentation set to better understand the 
Active Directory Schema
http://blogs.msdn.com/b/openspecification/archive/2009/06/26/using-the-windows-server-protocols-documentation-set-to-better-understand-the-active-directory-schema.aspx

Thanks for your patience!

Regards,
Bill Wesse
MCSE, MCTS / Senior Escalation Engineer, US-CSS DSC Protocol Team
8055 Microsoft Way
Charlotte, NC 28273
Email:   bil...@microsoft.com
Tel:   +1(980) 776-8200
Cell:  +1(704) 661-5438
Fax:  +1(704) 665-9606

-Original Message-
From: Bill Wesse
Sent: Thursday, July 08, 2010 6:51 AM
To: "Bill Wesse" 
Cc: "MSSolve Case Email" ; "cifs-proto...@samba.org" 

Subject: [REG:110062452298172] Re: Text-file Schema for all of 2000-2008R2

On Thu, 2010-07-01 at 17:21 +, Bill Wesse wrote: 
> A quick update: Confirmation on time/dates of the latest schema text 
> files will be forthcoming after the July 6 meeting I mentioned below.
> Sorry I won't be able to confirm before that. Thanks again for your 
> patience...

No worries.  I would rather wait until you have absolute confidence that these 
schema files match the schema in Windows than spend time debugging why they 
don't match. 

Andrew Bartlett 

--
Andrew Bartlett
http://samba.org/~abartlet/ 
Authentication Developer, Samba Team   http://samba.org 
Samba Developer, Cisco Inc. 

@echo off

if defined _vect_ goto :%_vect_%

setlocal
set _this_="%~f0"
set 
_esep_===
set _vect_=GetDefaultSettings
call %_this_%
set _vect_=EchoSettings
call %_this_%
echo.
set _resp_=
set /p _resp_=Enter 'y' to change these settings: 
if "%_resp_%" equ "" goto :Perform
if /i "%_resp_:~0,1%" neq "y" goto :Perform
set _vect_=GetDomainName
call %_this_%
set _vect_=CrackDomainName
call %_this_%
set _vect_=GetDCName
call %_this_%
set _vect_=GetUserName
call %_this_%
set _vect_=EchoSettings
call %_this_%
set _vect_=DumpOnePartition
call %_this_% "%_from_%" Configuration
call %_this_% "%_from_%"
goto :Exit

:DumpOnePartition
echo.
echo %_esep_%
set _root_=%~1
if "%~2" equ "" (
   set _file_=RootDSE.ldf
   goto :DumpOnePartitionExecute
)
shift
set _file_=%~1.ldf

:DumpOnePartitionNextSubtree
if "%~1" equ "" goto :DumpOnePartitionExecute
set _root_=CN=%~1,%_root_%
shift
goto :DumpOnePartitionNextSubtree

:DumpOnePartitionExecute
echo Exporting: %USERDNSDOMAIN%
echoTo: %_file_%
echo  Root: %_root_%
echo.
if exist "%_file_%" del /f "%_file_%">nul
ldifde.exe %_sarg_%%_uarg_%-d %_root_% -f "%_file_%"
set _errn_=%errorlevel%
if %_errn_% neq 0 (
   echo Error: %_errn_%
   echo  Deleting: %_file_%
   del /f "%_file_%">nul
)
goto :EOF

:CrackDomainName
set _vect_=CrackDnsDomainName
set _from_=
for /f "tokens=1-26 delims=." %%a in ("%_ddns_%") do call %_this_% %%a %%b %%c 
%%d %%e %%f %%g %%h %%i %%j %%k %%l %%m %%n %%o %%p %%q %%r %%s %%t %%u %%v %%w 
%%x %%y %%z
set _vect_=CrackDomainName
goto :EOF

:CrackDnsDomainName
if "%~1" equ "" goto :EOF
if "%_from_%" equ "" (
   set _from_=DC=%~1
) else (
   set _from_=%_from_%,DC=%~1
)
shift
goto :CrackDnsDomainName

:GetDefaultSettings
set _ddns_=%USERDNSDOMAIN%
set _serv_=%LOGONSERVER:~2%
set _user_=
set _pass_=
set _from_=
set _vect_=CrackDomainName
call %_this_% %_ddns_%
goto :EOF

:EchoSettings
echo.
echo %_esep_%
echo Domain: %_ddns_%
echo BaseDN: %_from_%
if "%_serv_%" equ "" (
   echo Server: DC of %_ddns_%
) else (
   echo Server: %_serv_%
)
if "%_user_%" neq "" (
   echo   User: %_user_%
)
if "%_pass_%" neq "" (
   echo Passwd: %_pass_%
)
goto