search for: do_search

Displaying 20 results from an estimated 34 matches for "do_search".

Did you mean: _search
2007 Apr 12
19
Multiple Model Search
...ActiveRecord::Base, but without the need for a db table :-) > 2. Do I need to set up table relationships to the other models > (has_many) or do my models just inherit from the search class? No and no :-) A sample search model might look like this: class Search attr_accessor :query def do_search return Model.find_by_contents(query) end end any query preprocessing or extended search form fields would go in there, too. In your controller''s search action you then only need to do search = Search.new(params[:search]) @results = search.do_search > 3. Can I still boost cert...
2007 May 02
6
Rewarding exact matches
Is there a way I can get ferret to give the highest ranking to an exact term match? The problem I have right now is that I am searching both title and body fields, so even if I boost the title field, if the body has more instances of the query, then it gets pushed up in rank. I would like for ferret to put exact matches (of the title field) at the very top of the pile, so if I do a
2010 Jan 14
4
Strange OpenLDAP errors w/ samba 3.4.3
Hi all, after an upgrade of my Ubuntu 8.04 64-bit box to a self-compiled samba 3.4.3 (Lenny backport dpkg), I see strange error messages in my OpenLDAP log: slapd[3388]: do_search: invalid dn (sambaDomainName=,sambaDomainName=<domain>,cn=<...>,dc=<...>,dc=<...>) Samba seems to work, though, but this message makes me somewhat nervous. Any ideas? Thanks, Albrecht.
2006 Feb 16
1
Documentation error?
...r [2006/02/15 10:31:14, 0] sam/idmap.c:idmap_init(146) idmap_init: failed to initialize remote backend! [2006/02/15 10:31:14, 1] nsswitch/winbindd.c:main(1011) Could not init idmap -- netlogon proxy only In the slapd log I get this: Feb 15 10:31:14 sbkfs02 slapd[2911]: [ID 940369 local4.debug] do_search Feb 15 10:31:14 sbkfs02 slapd[2911]: [ID 198467 local4.debug] >>> dnPrettyNormal: <ou=idmap,dc=uppsala,dc=se,> Feb 15 10:31:14 sbkfs02 slapd[2911]: [ID 458966 local4.debug] do_search: invalid dn (ou=idmap,dc=uppsala,dc=se,) Feb 15 10:31:14 sbkfs02 slapd[2911]: [ID 131099 local4.debug...
2020 Aug 21
1
qnbinom with small size is slow
Hi Martin, thanks for verifying. I agree that the Cornish-Fisher seems to struggle with the small size parameters, but I also don't have a good idea how to replace it. But I think fixing do_search() is possible: I think the problem is that when searching to the left y is decremented only if `pnbinom(y - incr, n, pr, /*l._t.*/TRUE, /*log_p*/FALSE)) < p` is FALSE. I think the solution is to move the update of y before the if. However, I need to make this slightly awkward check if incr == 1...
2018 Aug 22
2
Samba+LDAP problem after replacing BDC
Hi, I had a working enviroment of one PDC and several BDCs. The PDC is Samba version 3.6.6. After replacing of one BDC, I've started to get the following error in LDAP master server: Aug 22 13:44:59 gw slapd[28598]: conn=46129 op=51 do_search: invalid dn (sambaDomainName=Administrator,(null)) and on the PDC: root@:~# net getlocalsid smbldap_search_domain_info: Adding domain info for XXX failed with NT_STATUS_UNSUCCESSFUL SID for domain XXX-SERVER is: S-1-5-21-967619648-2110556011-518741233 I cannot add any new computer to the domain....
2004 Oct 18
0
Samba, ldap and winbind - almost there!
...9. getent passwd and getent groups don't show domain accounts. --------------------------------------------------------------------------- The winbind idmaps aren't being written to the directory 1. slapcat shows nothing at all 2. tail /var/log/syslog Oct 18 18:53:58 fluoron slapd[2030]: do_search: invalid dn(ou=idmap,"dc=abc,dc=local") Oct 18 18:53:58 fluoron slapd[2030]: conn=4 op=842 RESULT tag=101 err=34 text=invalid DN Oct 18 18:53:58 fluoron slapd[2030]: do_search: invalid dn (ou=idmap,"dc=abc,dc=local") Oct 18 18:53:58 fluoron slapd[2030]: conn=4 op=843 RESULT t...
2011 Jan 03
8
Heroku, needs constant AppController updates?
...i'' require ''open-uri'' require ''chronic'' protect_from_forgery include SessionsHelper def authenticate deny_access unless signed_in? end def find_all_events @event_searches = EventSearch.all @event_searches.each do |es| do_search(es) end end def find_one_band_events(event_id) es = EventSearch.where(:id => event_id)[0] do_search(es) end def do_search(event_search) logger.debug"Changing AppController again" logger.debug"in do search" url = event_search.urlOne if validate(url) logger....
2009 May 20
3
qbinom (PR#13711)
Full_Name: Wolfgang Resch Version: R 2.8.1 GUI 1.27 OS: OS X 10.4.11 Submission from: (NULL) (137.187.89.14) Strange behavior of qbinom: > qbinom(0.01, 5016279, 1e-07) [1] 0 > qbinom(0.01, 5016279, 2e-07) [1] 16 > qbinom(0.01, 5016279, 3e-07) [1] 16 > qbinom(0.01, 5016279, 4e-07) [1] 16 > qbinom(0.01, 5016279, 5e-07) [1] 0
2005 Nov 22
1
Ferret NoMethodError
...;) do |d, s| puts d end NoMethodError: undefined method `weight'' for nil:NilClass from c:/ruby/lib/ruby/gems/1.8/gems/ferret-0.2.2/lib/ferret/search/index_searcher.rb:104:in `search'' from c:/ruby/lib/ruby/gems/1.8/gems/ferret-0.2.2/lib/ferret/index/index.rb:588:in `do_search '' from c:/ruby/lib/ruby/gems/1.8/gems/ferret-0.2.2/lib/ferret/index/index.rb:291:in `search_ea ch'' from c:/ruby/lib/ruby/gems/1.8/gems/ferret-0.2.2/lib/ferret/index/index.rb:290:in `synchroni ze'' from c:/ruby/lib/ruby/gems/1.8/gems/ferret-0.2.2/lib...
2018 Aug 22
1
Samba+LDAP problem after replacing BDC
...>> I had a working enviroment of one PDC and several BDCs. The PDC is >> Samba version 3.6.6. After replacing of one BDC, I've started to get >> the following error in LDAP master server: >> >> Aug 22 13:44:59 gw slapd[28598]: conn=46129 op=51 do_search: invalid >> dn (sambaDomainName=Administrator,(null)) >> >> and on the PDC: >> >> root@:~# net getlocalsid >> smbldap_search_domain_info: Adding domain info for XXX failed with >> NT_STATUS_UNSUCCESSFUL SID for domain XXX-SERVE...
2009 Dec 07
2
Windows 7 + Samba domain issues
...find Unix account for ac-1391$". This implies that the account is missing, but when I look at the LDAP directory with my browser, it is there. Now it gets interesting... At the time I am trying to log in, I get the following in /var/log/syslog Dec 7 19:46:27 server slapd[2514]: conn=184 op=2 do_search: invalid dn (sambaDomainName=,sambaDomainName=DOMAIN,dc=domain,dc=local) Invalid dn indeed. sambaDomainName=DOMAIN,dc=domain,dc=local exists, but sambaDomainName=,sambaDomainName=DOMAIN,dc=domain,dc=local does not. Does anyone know why Samba would be performing this as a lookup? I have seen other...
2005 Jul 04
9
Samba3+LDAP: Can't join domain.
...9 localhost slapd[8515]: connection_get(10): got connid=35 Jul 4 17:38:49 localhost slapd[8515]: connection_read(10): checking for input on id=35 Jul 4 17:38:49 localhost slapd[8515]: ber_get_next on fd 10 failed errno=11 (Resource temporarily unavailable) Jul 4 17:38:49 localhost slapd[8515]: do_search Jul 4 17:38:49 localhost slapd[8515]: >>> dnPrettyNormal: <> Jul 4 17:38:49 localhost slapd[8515]: <<< dnPrettyNormal: <>, <> Jul 4 17:38:49 localhost slapd[8515]: => send_search_entry: dn="" Jul 4 17:38:49 localhost slapd[8515]: <= send_searc...
2008 Apr 17
3
login failed
Hello i've samba 3.022 with a ldap 2.2.26. I've no pb to join domain with my win2000, but when I reboot I'm reject (bad username ...). I find in debug that the first param sent by the client was the login and I think it must be the machines name. Any idee ? -- Denis Rohou Service Informatique ville de Lannion 22113 lannion 02-96-46-64-22
2006 Apr 27
1
Ferret crashing Ruby
.../usr/lib/ruby/gems/1.8/gems/ferret-0.9.1/lib/ferret/search/field_sorted_hit_queue.rb:25:in `initialize'' /usr/lib/ruby/gems/1.8/gems/ferret-0.9.1/lib/ferret/search/index_searcher.rb:115:in `search'' /usr/lib/ruby/gems/1.8/gems/ferret-0.9.1/lib/ferret/index/index.rb:660:in `do_search'' /usr/lib/ruby/gems/1.8/gems/ferret-0.9.1/lib/ferret/index/index.rb:316:in `search'' /usr/lib/ruby/1.8/monitor.rb:229:in `synchronize'' /usr/lib/ruby/gems/1.8/gems/ferret-0.9.1/lib/ferret/index/index.rb:315:in `search'' /home/pedrocr/eadexer/config/....
2006 Sep 20
3
Range searches some times they work, some times not...
...ot; from /usr/lib/ruby/gems/1.8/gems/ferret-0.10.1/lib/ferret/index.rb:572:in `parse'' from /usr/lib/ruby/gems/1.8/gems/ferret-0.10.1/lib/ferret/index.rb:572:in `process_query'' from /usr/lib/ruby/gems/1.8/gems/ferret-0.10.1/lib/ferret/index.rb:560:in `do_search'' from /usr/lib/ruby/gems/1.8/gems/ferret-0.10.1/lib/ferret/index.rb:233:in `search'' from /usr/lib/ruby/1.8/monitor.rb:229:in `synchronize'' from /usr/lib/ruby/gems/1.8/gems/ferret-0.10.1/lib/ferret/index.rb:232:in `search'' from...
2011 Jul 31
1
[BUG?] LDAP authentication with aliases issues
...alias_to_test,ou=domain.pl,ou=Mail,dc=root,dc=pl" scope=0 deref=3 filter="(&(objectClass=posixAccount))" ldap slapd[11729]: conn=1125 op=1 SRCH attr=uid userPassword ldap slapd[11729]: conn=1125 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text= ldap slapd[11729]: conn=1125 op=2 do_search: invalid dn: "uid=test,ou=,ou=Mail,dc=root,dc=pl" ldap slapd[11729]: conn=1125 op=2 SEARCH RESULT tag=101 err=34 nentries=0 text=invalid DN #v- It seems that LDAP AuthDatabase doesn't change the context when looking up for the target object, to which the alias points. Futhermore,...
2010 Jan 25
3
Debian Lenny - Samba 3.2.5 + OpenLDAP (slapd) 2.4.11
I have a serous problem. I have for some time now tried to get an SAMBA based Domain Controller working. I have tried with OpenLDAP and tdbsam as backend, but I get the same error every time. I wood prefer to use LDAP as my backend. I have read tons of how-to SAMBA + LDAP, but non of the seams to work for my, is there someone that maybe can see what I have done rung in my config.? I have
2018 Aug 22
0
Samba+LDAP problem after replacing BDC
...mba.org> wrote: > > Hi, > > I had a working enviroment of one PDC and several BDCs. The PDC is > Samba version 3.6.6. After replacing of one BDC, I've started to get > the following error in LDAP master server: > > Aug 22 13:44:59 gw slapd[28598]: conn=46129 op=51 do_search: invalid > dn (sambaDomainName=Administrator,(null)) > > and on the PDC: > > root@:~# net getlocalsid > smbldap_search_domain_info: Adding domain info for XXX failed with > NT_STATUS_UNSUCCESSFUL SID for domain XXX-SERVER is: > S-1-5-21-967619648-2110556011-518741233 >...
2007 Jul 04
0
error at index.c:901
...' from /var/lib/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:726:in `ensure_reader_open'' from /var/lib/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:733:in `ensure_searcher_open'' from /var/lib/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:755:in `do_search'' from /var/lib/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:334:in `search'' from /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' from /var/lib/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:333:in `search'' from ./lib/sup/inde...