Farm Passphrase validation nitpick

Jul 27, 2011 at 6:22 PM

Not a huge deal, but I can't see where the farm passphrase validator actually checks the length of the passphrase. The error states:

"Farm passphrase does not SharePoint complexity requirements. It must be 8 characters or longer and contain three of the following groups:"

But no length check. Not so much an enforcement issue, but I just feel the error text should match what the check is doing.

Thanks for all your hard work,

Philo

 

Coordinator
Aug 7, 2011 at 2:33 PM

Thanks - will look into it. Paul Hickman actually contributed this function so hopefully he reads this...!

Brian

Aug 7, 2011 at 3:08 PM
Edited Aug 7, 2011 at 3:09 PM

You should be able to do that with adding a couple of line to the ValidatePassphrase function.

 

 

  

 if ([string]$FarmPassphrase.length -lt 8)

 

 

 

 }

Write-Host -ForegroundColor Yellow  " - Farm passphrase does not meet minimum length requirements It must be 8 characters or longer and contain three of the following groups:"

 

Throw " - Farm passphrase does not meet SharePoint complexity requirements."

{

 

 

Coordinator
Dec 17, 2011 at 5:17 PM

Hey folks I finally got around to fixing this thanks to Joseph's suggestion. Will be in the next release.

BTW Joseph, ([string]$FarmPassphrase.length -lt 8) will always return True, it should just be ($FarmPassphrase.length -lt 8)

Cheers
Brian