Unable to access sharepoint site after validating username pwd
One of the hottest, most discussed topics in Share Point is the whole topic of external sharing.Once you provide your employees with ability to store and manage content internally, there are almost always instances, where they also need to share same content externally.
Would you like to answer one of these unanswered questions instead?Typical scenarios include documents that need to be shared clients, vendors, consultants, contractors.With this blog post, I would like to clarify different options available to you as the Administrator of the Office 365/Share Point Online environment on how to setup external users in Share Point.The list below summarizes a range of common values with hex and decimal values: 525 user not found (1317) 52e invalid credentials (1326) 530 not permitted to logon at this time (1328) 531 not permitted to logon at this workstation (1329) 532 password expired (1330) 533 account disabled (1331) 701 account expired (1793) 773 user must reset password (1907) 775 user account locked (1909) My question, though, is this: how do you get the LDAP server name?If you're writing a portable application, you can't expect the user to know or need to supply the names of AD servers on every network.I have users which are restricted to logging in to specific workstations; how do I specify the workstation that I am trying the login for?
(workstation1 would fail with data 531, workstation2 would work fine, for example)I feel weird as I don't think you're getting enough credit.
And because the inheritance had been broken on the Doc Library, the Share Point groups had to be added there as well.
Essentially the root cause was User Error caused by a Poor Governance model and lack of training. If you have access permissions for some users but not all, the solution may be as simple as checking the security of the lists and libraries that appear on this page: Fancy Site/_layouts/– you are looking for unique permissions on Site page libraries. I'm also slowly going bald, seem to have a permanent spare tyre around my waist and enjoy socialising with friends over a beer or 10. Started working with Share Point when the first version was in limited beta release (participated in the Technology Adoption Program while at Woolworths) and have been committed to the adoption of the technology as a business enabler ever since.
This is a fully managed method without the trouble of Win32 API call to determine if "user must reset password" which clearly none of the other answers achieved.
Is there any loophole in this method causing it's low appreciation rate? This code is bad because it's also doing an authorization check (check if the user is allowed to read active directory information).
If a password's expired or the accounts disabled, then Validate Credentials will return false.