[cifs-protocol] [REG:111012761781621] Dirsync control

Obaid Farooqi obaidf at microsoft.com
Thu Jan 27 10:13:05 MST 2011


Hi Matthieu:
Thank you for contacting Microsoft regarding your question about MS-DRSR. A member of protocol documentation team will be in touch soon.

Regards,
Obaid Farooqi
Escalation Engineer | Microsoft

-----Original Message-----
From: Matthieu Patou [mailto:mat at samba.org] 
Sent: Thursday, January 27, 2011 3:43 AM
To: pfif at tridgell.net; cifs-protocol at samba.org; Interoperability Documentation Help
Subject: Dirsync control

Hello Doc team,

I'm starting to work on the implementation of the dirsync control for 
samba4.

I've got some questions about the maxsize parameter in the dirsync control

Paragraph 5.112.1.5 DirSyncControlValue of DRSR.pdf says

size: In the request control value, this field indicates the maximum 
number of bytes expected in the
reply. In the reply control value, it is set to 0.

But quite a lot pages on msdn like 
http://msdn.microsoft.com/en-us/library/Aa366978, says
maxAttributeCount: Specifies the maximum number of attributes to return. 
This value may also be used to limit the amount of data returned.

What is the good definition ?

Also it seems that lower value limit so that if you specify a size (or 
maxAttributeCount) smaller than that value it's ignored, I discovered 
this by doing like this:
./bin/ldbsearch --controls="dirsync:1:0:200" -H ldap://172.16.100.25 -U 
administrator%totoTATA123
./bin/ldbsearch --controls="dirsync:1:0:2000" -H ldap://172.16.100.25 -U 
administrator%totoTATA123
./bin/ldbsearch --controls="dirsync:1:0:20000" -H ldap://172.16.100.25 
-U administrator%totoTATA123
./bin/ldbsearch --controls="dirsync:1:0:200000" -H ldap://172.16.100.25 
-U administrator%totoTATA123
./bin/ldbsearch --controls="dirsync:1:0:2000000" -H ldap://172.16.100.25 
-U administrator%totoTATA123

  As in every case the same amount of data is returned.

When trying with another bigger partition: schema

./bin/ldbsearch --controls="dirsync:1:0:200000" -H ldap://172.16.100.25 
-U administrator%totoTATA123  -b 
"CN=Schema,CN=Configuration,DC=w2k8r2,DC=home,DC=matws,DC=net"   yield 
464 results

./bin/ldbsearch --controls="dirsync:1:0:2000000" -H ldap://172.16.100.25 
-U administrator%totoTATA123  -b 
"CN=Schema,CN=Configuration,DC=w2k8r2,DC=home,DC=matws,DC=net"  yield 
879 results

The key value seems to be around 1000000 (1050000 more exactly), can you 
confirm if there is a lower value, and if any upper value ? And if so is 
it implementation dependent.

Also it seems that even if I specify a size of 2MiB (2 * 10^6 Bytes) the 
result size in way bellow this limit, how the size is calculated then ?

Regards.

Matthieu




-- 
Matthieu Patou
Samba Team        http://samba.org
Private repo      http://git.samba.org/?p=mat/samba.git;a=summary	



Microsoft is committed to protecting your privacy.  Please read the Microsoft Privacy Statement for more information.The above is an email for a support case from Microsoft Corp.REPLY ALL TO THIS MESSAGE or INCLUDE casemail at microsoft.com IN YOUR REPLY if you want your response added to the case automatically. For technical assistance, please include the Support Engineer on the TO: line. Thank you.


More information about the cifs-protocol mailing list