Lines Matching refs:request
101 'Encountered a referral request, but no referrals were supplied.',
139 # Each referral could potentially modify different aspects of the request, depending on the URL. Clone it
140 # here, merge the options, then use that request to send to LDAP. This makes sure we don't accidentally mix
142 $request = clone $messageTo->getRequest();
143 $this->mergeReferralOptions($request, $referral);
148 # If we have a referral on a bind request, then do not bind initially.
151 # should not be followed on a bind request. The problem is that while we bind on a different server,
183 * @param RequestInterface $request
187 protected function mergeReferralOptions(RequestInterface $request, LdapUrl $referral): void
189 if ($referral->getDn() !== null && $request instanceof SearchRequest) {
190 $request->setBaseDn($referral->getDn());
191 } elseif ($referral->getDn() !== null && $request instanceof DnRequestInterface) {
192 $request->setDn($referral->getDn());
195 if ($referral->getScope() !== null && $request instanceof SearchRequest) {
197 $request->setScope(SearchRequest::SCOPE_WHOLE_SUBTREE);
199 $request->setScope(SearchRequest::SCOPE_SINGLE_LEVEL);
201 $request->setScope(SearchRequest::SCOPE_BASE_OBJECT);
205 if ($referral->getFilter() !== null && $request instanceof SearchRequest) {
206 $request->setFilter(Filters::raw($referral->getFilter()));