Monday, August 6, 2012

How does AD AUTHENTICATION works

A question that comes up frequently involving federated customers is how does an organization need to configure its firewalls to allow users in a trusted, but not fully trusted, domain to access their resources.  Consider the following scenario:
[WEB RESOURCE]---|---FIREWALL---WAN---FIREWALL---|---[USER 2]
[DOMAIN CTRL A]--|                               |---[DOMAIN CTRL B]

User 2 wants to access a web resource in Domain A.  The two domains (A and B) are part of the same forest, but share a common root domain, through which replication occurs.  The domain controllers and other resources are not permitted for direct contact (because the firewalls are owned by someone else in the federation that doesn't care about making anything functional, only secure).  Under these circumstances, what exactly happens when User 2 attempts to connect and authenticate to the Web Resource?
  1. User 2 from Domain B logs onto Domain B workstation.
  2. Domain B workstation contacts Domain B KDC to get user authenticated.
  3. Domain B KDC creates a Ticket Granting Ticket (TGT) for User 2 on Domain B. Included in the TGT is PAC (Privilege Attribute Certificate) data, which is the list of the SIDs of the global, domain local and universal groups that user is a member of.

    NOTE: A GC (for any domain) would need to be contacted for the universal group enumeration.
  4. User 2's workstation receives TGT, extracts PAC data and puts the listed SIDs into an access token that is locally created. It also adds the SIDs of any machine local groups of which the user or the user’s groups are members. That access token is used on that machine only (tokens don’t traverse the wire).
  5. Every time User 2 accesses a member server in Domain B for the first time, User 2’s workstation uses the TGT to get a session ticket for the member server from the Domain B KDC. The KDC generates the session ticket and embeds the PAC data from the TGT that the user presented to the KDC (which keeps the KDC from having to authenticate over and over, but also means that the user has to log off and log back on to get a refreshed PAC from a KDC). The member server receives the session ticket and uses the PAC data in the same way that the workstation did, generating the access token locally and checking its local SAM for any additional SIDs to add to the token.
  6. When User 2 wants to access the Web Server resource in Domain A, User 2’s workstation goes to Domain B’s KDC to get a TGT for Domain A (this is what the trust relationship facilitates; KDCs on each end of the trust exchange long-term keys so that they can issue TGTs for each other.).
  7. User 2’s workstation presents the Domain A TGT to a Domain A KDC and requests a session ticket for the Domain A resource server (the web server in this case). Domain A's KDC works the same way as Domain B’s KDC did when it comes to constructing the session ticket for the member server, including just dumping the PAC data into the session ticket. The only difference is that the Domain B KDC actually constructed the Domain A TGT.
  8. The Domain A member server behaves just like a Domain B member server would and the Domain B workstation did.
Now, here's where the firewalls come in: if User 2’s workstation can’t contact a Domain A KDC, then Kerberos authentication will fail and it falls back to NTLM, and then we start dealing with pass-through authentication, which is going to require direct connectivity between the DCs for the different domains.  But, the web server doesn’t need to be able to access the source KDC (Domain B). Rather, User 2 needs to be able to access the Domain A KDC, which it probably can’t do if this federation is blocking this at the firewall. 
The problem can be somewhat compounded by the fact that the Domain Controller in Domain A won't necessarily be chosen on a consistent basis, so the hosting agency in the federation would need to allow access to potentially any DC in Domain A.  In other words, firewalls would need to be opened (gasp!). 
Actually, Microsoft has recognized this scenario with the R2 release of Windows Server 2003 and provided what is called Active Directory Federation Services, which do allow more control over which domain controllers are used for cross agency authentication.  The problem, however, is that ADFS is designed for a mulitple forest scenario, not multiple trusted domains in the same forest.

 http://blogs.msdn.com/b/anthonw/archive/2006/08/02/686041.aspx

Saturday, July 28, 2012

".library-ms" is no longer working.

When you double-click a library to view the contents, the following error may occur.




".library-ms" is no longer working.

For example, the following error may occur when opening Documents library



"Documents.library-ms" is no longer working.

This library can be safely deleted from your computer. Folders that have been included will not be affected.





Similarly when opening the Music, Pictures or Videos library



"Music.library-ms" is no longer working.

"Pictures.library-ms" is no longer working.

"Videos.library-ms" is no longer working.

To fix this problem, open Windows Explorer, right-click on the corresponding library and choose Delete. Click Yes when asked for confirmation.



Note: Deleting a library does not delete the contents of the included folders. However, you may need to re-add or include your folders manually, if needed.



Then, in the navigation pane of Windows Explorer, right-click Libraries and click Restore default libraries.







This recreates the library that was deleted earlier. This option only restores the default libraries.





--------------------------------------------------------------------------------

What Files Make Up a Virtual Machine





http://www.vmware.com/support/ws5/doc/ws_learning_files_in_a_vm.html


Extension
File Name
Description
.log
.log
or
vmware.log
This is the file that keeps a log of key VMware Workstation activity. This file can be useful in troubleshooting if you encounter problems. This file is stored in the directory that holds the configuration (.vmx) file of the virtual machine.
.nvram
.nvram
or
nvram
This is the file that stores the state of the virtual machine's BIOS.
.vmdk
.vmdk
This is a virtual disk file, which stores the contents of the virtual machine's hard disk drive.
A virtual disk is made up of one or more .vmdk files. If you have specified that the virtual disk should be split into 2GB chunks, the number of .vmdk files depends on the size of the virtual disk. As data is added to a virtual disk, the .vmdk files grow in size, to a maximum of 2GB each. (If you specify that all space should be allocated when you create the disk, these files start at the maximum size and do not grow.) Almost all of a .vmdk file's content is the virtual machine's data, with a small portion allotted to virtual machine overhead.
If the virtual machine is connected directly to a physical disk, rather than to a virtual disk, the .vmdk file stores information about the partitions the virtual machine is allowed to access.
Earlier VMware products used the extension .dsk for virtual disk files.
-<###>.vmdk
This is a redo-log file, created automatically when a virtual machine has one or more snapshots. This file stores changes made to a virtual disk while the virtual machine is running. There may be more than one such file. The ### indicates a unique suffix added automatically by VMware Workstation to avoid duplicate file names.
.vmsd
.vmsd
This is a centralized file for storing information and metadata about snapshots.
.vmsn
-Snapshot.vmsn
This is the snapshot state file, which stores the running state of a virtual machine at the time you take that snapshot
-Snapshot<###>.vmsn
This is the file which stores the state of a snapshot
.vmss
.vmss
This is the suspended state file, which stores the state of a suspended virtual machine
.Some earlier VMware products used the extension .std for suspended state files
.vmtm
.vmtm
This is the configuration file containing team data.
.vmx
.vmx
This is the primary configuration file, which stores settings chosen in the New Virtual Machine Wizard or virtual machine settings editor. If you created the virtual machine under an earlier version of VMware Workstation on a Linux host, this file may have a .cfg extension
.vmxf
.vmxf
This is a supplemental configuration file for virtual machines that are in a team. Note that the .vmxf file remains if a virtual machine is removed from the team.

Tuesday, July 24, 2012

shutting down domain computer remotely

net use \\computername
provide your administrator username and password to login to the account.
once u are able to access the windows drive then give the command for shutdown
shutdown /s /m computername

Monday, July 16, 2012

network card prioritization



problem:-when you connect 2 nic's on your system internet won't work
Resolution:--if you have 2 network cards in the system remove the click on Automatic metric and give the metric no. if you give big metric no it will take less priority.

Thursday, July 5, 2012

windows xp mode could not be restored because of either host processor type mismatch

C:\Users\ (Username)\ AppData\Local\Microsoft\Windows Virtual PC\Virtual Machines directory
I: To rename the file *.vsv, follow the steps mentioned below.
1. Click on Start and click on computer.

2. Go to the following location:
C:\Users\ (Username)\ AppData\Local\Microsoft\Windows Virtual PC\Virtual Machines directory
3. You’ll find a .VSV file in the Virtual Machines Directory.
4. Rename the file.
For example: If the file name is VM.vsv, rename it toVM.old


http://answers.microsoft.com/en-us/windows/forum/windows_other-windows_update/error-windows-xp-mode-could-not-be-restored/eac629ec-f789-477e-b69a-ab175ccb8d3a

Monday, July 2, 2012

Documents.library-Ms Is No Longer Working” In Windows 7


When you double-click a library to view the contents, the following error may occur.


".library-ms" is no longer working.

For example, the following error may occur when opening Documents library

"Documents.library-ms" is no longer working.

This library can be safely deleted from your computer. Folders that have been included will not be affected.



Similarly when opening the Music, Pictures or Videos library

"Music.library-ms" is no longer working.

"Pictures.library-ms" is no longer working.

"Videos.library-ms" is no longer working.

To fix this problem, open Windows Explorer, right-click on the corresponding library and choose Delete. Click Yes when asked for confirmation.

Note: Deleting a library does not delete the contents of the included folders. However, you may need to re-add or include your folders manually, if needed.

Then, in the navigation pane of Windows Explorer, right-click Libraries and click Restore default libraries.



This recreates the library that was deleted earlier. This option only restores the default libraries.


http://www.winhelponline.com/blog/fix-error-library-ms-is-no-longer-working-windows-7/