Tom commented on a post with the following problem, and I thought it merited a post.
“We have a MOSS 2007 FARM AND 3 DOMAINS all have a two way trust. We have over 78 sites all of which stopped with no known reason from being able to find users that are in one of the domains we can find the users in the view profiles yet we can no longer find users using peoplepicker for any users from the one domain.
We have tried this command you have provided and they come back with commandline error
stsadm -o setproperty -pn peoplepicker-searchadforests -pv domain:full domain name,-userlogin domain\username password –url http://webapp url”
It sounds like an interesting problem, but its difficult to answer without more information. Incidentally, the profiles comment, about being able to view user profiles, is rather a red herring. This is handled by an import process specified elsewhere in the SSP, and has nothing to do with the People Picker displaying users.
Lets discuss the stsadm command first. Without knowing the specific error message, I can’t say why the command is failing, but there are two probable outcomes. stsadm is not generally included in the default path for a windows installation, so if the error message is:
’stsadm’ is not recognized as an internal or external command, operable program or batch file.
The problem is simply that you need to find the appropriate location first. The location is generally:
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>
so simple change directory to that path, and run the STSADM again. It sounds obvious, but I must admit, I had a bit of a nightmare trying to find the stsadm path when I first started looking at SharePoint!
The other possibility is that the command has been run, but that the parameters haven’t been entered correctly. If so, you get the terribly helpful response of :
Command line error.
Followed by a complete syntax reference for the command, and it sounds much more likely that this is the cause of the problem, from the notes in the question. Unfortunately, this is quite a lot harder to discuss, as unsuprisingly people aren’t going to give the specific command line with all of their configuration details and passwords to be put onto a website, and the generic, censored versions are probably going to be correct, at least as far as it goes.
The best help I can give here is to put together a full hypothetical example, rather than just repeating the command syntax yet again.
Essentially, you first need to set an internal SharePoint encryption key, then tell the server what domains to add to the list, and what valid username and password to use to connect to the domain in order to pull back the list. Don’t use administrator, btw!!!
To set the initial encryption key, use:
stsadm.exe -o setapppassword -password <yourencryptionkey>
To set the actual domain link, use:
stsadm.exe -o setproperty -url http://domain1.example.com:80 -pn “peoplepicker-searchadforests” -pv “domain:domain1.example.com,domain1\LoginName, P@ssword; domain:domain2.example.com,domain2\LoginName, P@ssword; domain:domain3.example.com,domain3\LoginName, P@ssword“
Of course, with two way trusts a single user name and password could be used if you granted the appropriate rights.
What normally goes wrong putting this together? Normally it is either the encryption key hasn’t been set first, or that construction of the domain list has a syntax issue (or that the surrounding quotes have been missed off).
As a rule, though, if you get a command line error when running stsadm, you have got the format wrong. If the format is right, it won’t necessarily solve the problem (if your username or password is wrong, for example, it still can’t access the other domain information), but you’ll see the changes applied. A good way of checking is to run:
stsadm.exe -o getproperty -url http://domain1.example.com:80 -pn “peoplepicker-searchadforests”
And it will show the details you’ve set (with passwords asterisked out).
What makes the problem Tom is experiencing interesting is that apparently the People Picker has been working, and now isn’t. This, to me, implies that something has changed with the installation, or the Active Directory configuration.
Key things to check would be:
Has the system user context still got access rights to the domain that appears to be no longer accessible? A two way trust means that user rights can be assigned … by default they arent.
Have the active directory servers changed? If so, you may need to force DNS updates, otherwise resolution against the AD may be looking for defunct servers.
Has the stsadm command been run succesfully in the past, and the usernames and passwords have since changed (or expired)? This will obviouslly drop off the people pickers ability to query the domain.
Has a security patch been applied against the domain, or has permissions to the Active Directory been changed? By default, older systems allowed anyone to do a basic LDAP query against the Active Directory, but this was locked down. If this loophole was previously being used instead of setting correct access rights for the security context of the wep application, it’ll obviously start causing this issue.
I hope this helps – Tom, if you’ve solved the problem, please let me know the solution
Recent Comments