<div dir="ltr"><div><div><div><div><div><div><div>Hi,<br></div>At the I/O Lab we asked about the restrictions that apply on performing a delete operation on built-in accounts. To explain the correct behavior, Edgar kindly supplied the following references: <br>
"<br><p class=""><span lang="EN">3.1.1.5.5.1.1 Tombstone Requirements</span></p>
<p class=""><a href="http://msdn.microsoft.com/en-us/library/cc223481.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/cc223481.aspx</a></p><br><p class=""><span lang="EN">A protected object may not be deleted and transformed into a tombstone (see
<a href="http://msdn.microsoft.com/en-us/library/cc223483.aspx" target="_blank">Protected Objects (section
</a><a href="http://msdn.microsoft.com/en-us/library/cc223483.aspx" target="_blank">3.1.1.5.5.3</a><a href="http://msdn.microsoft.com/en-us/library/cc223483.aspx" target="_blank">)</a>).</span></p>
<p class=""><span lang="EN"> </span></p>
<p class=""><span lang="EN">3.1.1.5.5.3 Protected Objects</span></p>
<p class=""><span lang="EN"><a href="http://msdn.microsoft.com/en-us/library/cc223483.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/cc223483.aspx</a></span></p>
<p class=""><span lang="EN"> </span></p>
<p class=""><span lang="EN">3.1.1.6.1.2 Protected Objects</span></p>
<p class=""><a href="http://msdn.microsoft.com/en-us/library/dd240058.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/dd240058.aspx</a></p>
<p class="">…</p>
<p style="margin-left:1in">
<span style="font-size:10pt;font-family:"Courier New"" lang="EN"><span>o<span style="font:7pt "Times New Roman"">  
</span></span></span><span lang="EN">well-known security principals:</span></p>

<span style="font-size:10pt;font-family:Wingdings" lang="EN"><span>§<span style="font:7pt "Times New Roman""> 
</span></span></span><span lang="EN">of class <a href="http://msdn.microsoft.com/en-us/library/cc221822.aspx" target="_blank">
user</a> with RID = DOMAIN_USER_RID_ADMIN</span><br><br>"<br><br></div>However, some testing revealed that the last reference which we hoped would explain why the Administrator should not be deleted, appears to not be relevant to the case. Delete operation on any built-in account or predefined domain rid returns LDAP error 80, and the group membership does not really affect the deletion of users or groups.<br>
<br></div>So after some digging, I found this:<br><br><br><a href="http://msdn.microsoft.com/en-us/library/cc245803.aspx">http://msdn.microsoft.com/en-us/library/cc245803.aspx</a><br><br></div>Namely: If the RID of U's <strong>objectSid</strong> attribute value is less than 1000, an error MUST be returned.<br>
<br></div>Could you please confirm that this is indeed the only restriction relevant to the case?<br><br></div>Best Regards,<br></div>Nadezhda Ivanova<br></div>