Showing posts with label active directory. Show all posts
Showing posts with label active directory. Show all posts

Tuesday, September 17, 2013

SharePoint People Picker, Audiences And Active Directory Trusts

SharePoint People Picker, Audiences And Active Directory Trusts


The following post covers issues I came across when configuring SharePoint 2010 to work with an Active Directory (AD) trust.  In this scenario, SharePoint and user accounts are in domain A and a two-way transitive trust has been created with domain B.  Domain B holds news users who need access to SharePoint.
The first issue was the error below, which occurred when setting permissions for AD users and groups from domain B using the People Picker.
No exact match was found. Click the item(s) that did not resolve for more options
As a two-way trust exists between the two domains and the web application is using Windows authentication, SharePoint should have been able to locate users and groups in the trusted domain.  However, this wasn’t the case and I had to run the commands on this page http://technet.microsoft.com/en-us/library/cc263460.aspx.  The STSADM –o setapppassword –password <password> command has to be run on every SharePoint server running the Windows SharePoint Services Web Application service.  The stsadm.exe –o setproperty –pn peoplepicker-searchadforests –pv <list of forests or domains> -url <webapp> command is run on one SharePoint server running the Windows SharePoint Services Web Application.
The next issue occurred when using the Audience Picker to set an audience on a web part for a group from domain B.  Unlike the People Picker which queries AD, the Audience Picker queries the user profile database for imported users.  In this case I was able to search for the security group from the trusted domain, the group was listed as containing members, but the audience setting failed to work.  This error was caused by a mismatch between the NETBIOS name of domain B and the FQDN, e.g. the NETBIOS name was DOMAINB-XY and the FQDN was DOMAINB.COM.  In order to fix the problem I followed the steps listed here http://blogs.msdn.com/b/russmax/archive/2010/03/20/sharepoint-2010-provisioning-user-profile-synchronization.aspx.  The basic steps are:
  1. Ensure Grant Replicate Directory Changes has been correctly assigned on domain B http://technet.microsoft.com/en-us/library/hh296982.aspx
  2. Set the NetBiosDomainNamesEnabled property to true for the User Profile Service Application
  3. Delete and recreate the AD connection within SharePoint for the import of users from domain B
  4. Import users from domain B.
exchange spam filterexchange spam filter exchange spam filter exchange spam filter exchange spam filter exchange spam filter exchange spam filter

Tuesday, January 29, 2013

Error while installing Exchange 2013

Installation Fail of Exchange 2013 in PrepareAD and Setup.exe

[ERROR] Setup encountered a problem while validating the state of Active Directory: Couldn’t find the Enterprise Organization container.
[08/23/2012 16:50:04.0804] [0] The Exchange Server setup operation didn’t complete.  More details can be found in ExchangeSetup.log located in the <SystemDrive>:\ExchangeSetupLogs folder.
[08/23/2012 16:50:04.0804] [0] The registry key, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\V15\Setup, was not found.
[08/23/2012 16:50:04.0804] [0] End of Setup

 More Error details from ExchageSetupLog

[08/23/2012 18:53:19.0615] [0] Setup is choosing a local domain controller…
[08/23/2012 18:53:28.0981] [0] Setup has chosen the local domain controller SRVR2012.WIN12.COM for initial queries
[08/23/2012 18:53:29.0614] [0] [ERROR] Setup encountered a problem while validating the state of Active Directory: Couldn’t find the Enterprise Organization container.
[08/23/2012 18:53:29.0614] [0] [ERROR] Couldn’t find the Enterprise Organization container.
[08/23/2012 18:53:29.0614] [0] Setup will use the domain controller ”.
[08/23/2012 18:53:29.0614] [0] Setup will use the global catalog ”.
[08/23/2012 18:53:29.0614] [0] Exchange configuration container for the organization is ‘CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=WIN12,DC=COM’.
[08/23/2012 18:53:29.0614] [0] No Exchange organization container was found for the organization. Message: ‘Couldn’t find the Enterprise Organization container.’.
[08/23/2012 18:53:29.0614] [0] Setup will search for an Exchange Server object for the local machine with name ‘SRVR2012′.
[08/23/2012 18:53:29.0723] [0] No Exchange Server with identity ‘SRVR2012′ was found.


CAUSE : 

Generally this problem occurs when unsuccessful installation of Exchange server 2013 found in Active directory Forest.

SOLUTION :

First of all  Delete the Exchange Server Folder – "C:\Program Files\Microsoft\Exchange Server."
  1. Log on to the domain controller with administrative credentials.
  2. Click Start, click Programs, click Administrative Tools and then click Active Directory Users and Computers.
  3. In the Active Directory Users and Computers management console pane, click View from the toolbar menu and select Advanced Features.
  4. In the Active Directory Users and Computers management console pane, locate the incorrect, duplicate Microsoft Exchange System Objects container or organizational unit (OU).
  5. Verify the incorrect, duplicate Microsoft Exchange System Objects container or OU does not contain valid Active Directory objects.
  6. Right-click the incorrect, duplicate Microsoft Exchange System Objects container or OU and then click Delete.
  7. Confirm the deletion by clicking Yes in the Active Directory dialog box.


    For More information Please visit microsoft Technet website :
    http://technet.microsoft.com/en-us/library/aa998138%28v=exchg.80%29.aspx

    Now Run the setup again. :) :)