Ticket 48013 - Inconsistent behaviour of DS when LDAP Sync is used with an invalid cookie
Bug Description: Some invalid cookies are treated as errors, while others are not.
Fix Description: Perform the cookie parsing and validation in the same step. This
gives consistent results.
https://fedorahosted.org/389/ticket/48013
Reviewed by: nhosoi(Thanks!)
(cherry picked from commit fdf46817fcc3b334bd477316d253bc18f243c0f6)
(cherry picked from commit 41dff5ba7a6368bfb2d8a2057dd5ba5b6a91d175)