protected override void FillResolve(Uri context, string[] entityTypes,
                                            string resolveInput, List <Microsoft.SharePoint.WebControls.PickerEntity> resolved)
        {
            //LDAPUser user = LDAPHelper.FindExact(resolveInput);
            LDAPUser user = LDAPHelper.FindExactMultipleOUs(resolveInput);

            if (null != user)
            {
                PickerEntity entity = GetPickerEntity(user);
                resolved.Add(entity);
            }
        }
        protected override void FillSearch(Uri context, string[] entityTypes,
                                           string searchPattern, string hierarchyNodeID, int maxCount,
                                           Microsoft.SharePoint.WebControls.SPProviderHierarchyTree searchTree)
        {
            if (!EntityTypesContain(entityTypes, SPClaimEntityTypes.FormsRole) &&
                !EntityTypesContain(entityTypes, SPClaimEntityTypes.User))
            {
                return;
            }

            //List<LDAPUser> users = LDAPHelper.Search(searchPattern);
            List <LDAPUser> users = LDAPHelper.SearchMultipleOUs(searchPattern);

            foreach (var user in users)
            {
                PickerEntity entity = GetPickerEntity(user);
                searchTree.AddEntity(entity);
            }
        }