Displaying 5 results from an estimated 5 matches for "resulterror".
2006 May 05
3
exception_notification plugin not sending mails in development on localhost
Hi everyone,
So, I''ve got exception_notification working now, but not in
development mode on localhost. In my ApplicationController, I''ve
added:
local_addresses.clear
Shouldn''t that be enough?
Thank you!
Sean
2006 Mar 08
5
Ruby/LDAP on Rails
...s no attempt to create a socket until later.
When I switch to Rails, though, this gets strange. Running inside a
brand new rails structure (this is 1.0.0), I do:
$ script/console
Loading development environment.
>> require ''ldap''
=> true
>> LDAP::Conn.new()
LDAP::ResultError: can''t initialise an LDAP session
from (irb):2:in `initialize''
from (irb):2
>>
When I first saw this, it was on my mac `ruby -v` -> ruby 1.8.4
(2005-12-24) [powerpc-darwin8.5.0] with ruby-ldap-0.9.2, and I''ve
confirmed the behavior through ruby-...
2006 Feb 06
0
Webrick, ldap segfault on Linux
...uot;
begin
Timeout.timeout(10){
ldap = LDAP::Conn.new(ldap_server) # line 64
ldap.simple_bind(dn, password)
ldap.unbind
}
rescue Timeout::Error
flash[:notice] = "Timed out"
bool = false
rescue LDAP::ResultError => err
bool = false
end
return bool
end
end
The development log shows nothing special for the last entry:
Processing LoginController#login (for 1.2.3.4 at 2006-02-06 11:39:23)
[POST]
Parameters: {"commit"=>"Login", "action"=>"...
2006 Mar 26
17
activeldap
Obviously I am missing something and I don''t know what it is...
I am following the instructions at
http://rubyforge.org/docman/view.php/381/114/activeldap_rb.html
and also here...
http://wiki.rubyonrails.org/rails/pages/HowtoAuthenticateViaLdap
my model looks exactly like this...
class LdapUser < ActiveRecord::Base
ldap_mapping :dnattr => ''uid'', :prefix
2009 Mar 01
8
puppet and LDAP users
...}
and the message I get is this
[root@here]# puppetd --test --noop --tags users
info: Loading fact drbd
info: Retrieving facts
info: Loading fact drbd
info: Caching catalog at /var/lib/puppet/localconfig.yaml
notice: Starting catalog run
err: Got an uncaught exception of type LDAP::ResultError: Invalid DN
syntax
notice: Finished catalog run in 4.01 seconds
I have tcpdump on port 389 running in another window and what I see is
that puppet seems to be trying to send commands to the LDAP server but
is missing the ldapbase info from everything - so it''s sending things
like
uid=myu...