Re: inserting sids in Active directory

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Eric Fleischman [MSFT] (efleis_at_online.microsoft.com)
Date: 06/03/04


Date: Thu, 3 Jun 2004 08:45:48 -0500

The preferred method here is to actually restore the directory. IE don't
recreate, restore the objects you would like to bring back.

~Eric

-- 
Eric Fleischman [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Jeff Senter" <jsenter@erols.com> wrote in message 
news:%23MyOL7WSEHA.3636@TK2MSFTNGP09.phx.gbl...
>A university I do some consulting to asked me the question.  What I think 
>they want to do is have their ldap server be thier authorative server. 
>They have written a script that loads all of the user data from the AD 
>schema (metadata) includeing the sid to the ldap server every night.  What 
>I think they whould like to be able to do is to deleate the ad metadata and 
>reinseart it with out have to do a system stat backup.  They have figured 
>out how to do every thing but reinsert the sid.  That leaves them with the 
>problem that the reinserted user can not acccesses any of the data because 
>the sid is incorrect.  I just was wondering if there was a solution?
>
> Jeff
>
> Eric Fleischman [MSFT] wrote:
>
>>When you create a user you can't specify a SID I'm afraid.
>>
>>The ways to "get a user" with a given SID would be:
>>1) Restore the user if it has been deleted, either through tombstone 
>>reanimation (new feature in 2k03) or by performing a system state restore 
>>and marking the object(s) in question as authoritative such that they 
>>replicate out and override the deletion
>>2) You could create a new user which will have a new SID and make a call 
>>to DsAddSidHistory (documented on MSDN) and specify the old SID as an 
>>entry for sIDHistory on the user. That will let the new user have the old 
>>SID as one of the SIDs in their token, but it still wouldn't be their 
>>primary SID. But this would let them access resources ACL'd to the odl 
>>SID.
>>
>>If you don't mind me asking, what's your goal here? Perhaps I could 
>>provide better suggestions if I had a beter big picture view of the goals 
>>in the question.
>>
>>~Eric
>>
>>
>>
> 


Relevant Pages

  • Re: Change the RID Pool on a DC
    ... "Nicolas Diétrich" wrote in ... This backup / restore saves and restores a lot ... >user will get a specified SID). ...
    (microsoft.public.windows.server.active_directory)
  • Re: File encryption and restoring keys
    ... It could be that the "restored" user has the same SID as before. ... This posting is provided "AS IS" with no warranties, and confers no rights. ... > "restore" means simply copy the files. ... > your recovery cert + keys and imported them to the new OS. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: User Account + Password lists
    ... Is there any method that I can backup doamin user accounts data (SID, ... belongs) that I can restore to a new AD once the existing AD is totally dead ...
    (microsoft.public.win2000.security)
  • Re: Recovery of Encrypted files. help!
    ... Where the SID is saved? ... "Rock" wrote: ... I managed to restore the non-encrypted ... > Only if you saved the encryption certificate and key. ...
    (microsoft.public.windowsxp.general)
  • Re: System Identifier
    ... Rhett Gong [MSFT] wrote: ... > account names. ... > to retrieve the SID. ...
    (microsoft.public.win32.programmer.kernel)