Answered unable to add AD user to sharepoint site

  • Tuesday, December 07, 2010 4:01 PM
     
     

    Hi,

    We are setting up our new sharepoint server 2010. We have managed successfully to import all the users from AD. We have also added few users to the sites.

    I had to change Synchronisation connection to import the distribution list from AD(this was done by selecting additional OU from AD that contained the distribution list).

    After a while, I am facing a strange problem that I cannot add any users to my site. When I try to type in the user account, I get the error that 'No exact match was found. Click the item(s) that did not resolve for more options.'.

    After going through some of the google searches, I have run the following commands :

    stsadm –o setapppassword –password MyPassword  and

    stsadm -o setproperty -pn peoplepicker-searchadforests -pv domain:YourDomain.com,domain\user,password –url relevant web application - here domain\user I set was the application pool identity for the selected web application.

    Now, I tried to add the user as a site collection administrator from central admin. The people picker will recognize the user when I type in the user name, but will give the error "The specified user domain\user could not be found..." upon confirming the selected user.

    Can someone help me to resolve this.

    Many thanks,

    Anu

All Replies

  • Wednesday, December 08, 2010 2:12 PM
     
     

    Hi,

    Can someone help me with the above issue please? The strange thing is that I can add users to other site collections in the same web application without any problem. It is only this particular site collection that has some permissions issue in querying the AD.

    I tried to add the users using stsadm -o adduser and get the error. "Access Denied. You do not have permission to perform this action or access this resource".

    Your help is very much appreciated.

    regards,

    Anu

  • Monday, December 13, 2010 10:32 AM
     
     Answered

    Hi,

    I managed to resolve this issue. UserAccountdirectoryPath for this site was incorrect. After a lot of attempts to resolve it, I decided to check teh contentdb. The Sites table holds information about the. Here, all sites except the one giving problem had UserAccountDirectoryPath set to null. After setting this property to null for this site, it started working without any problem.

    Hope someone else will find this useful.

    regards,

    Anu

    • Marked As Answer by Lily Wu Friday, December 17, 2010 1:30 AM
    •  
  • Tuesday, November 27, 2012 10:53 PM
     
     
    I think you meant the dbo.AllSites table.

    macrel