Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Net::BER::BerError in Devise::SessionsController#create #34

Closed
ashleytowers opened this issue Jul 11, 2011 · 1 comment
Closed

Net::BER::BerError in Devise::SessionsController#create #34

ashleytowers opened this issue Jul 11, 2011 · 1 comment

Comments

@ashleytowers
Copy link

Hi,

I'm not sure it's an issue with devise_ldap_authenticatable as such but I thought it would be worth sharing here in case anyone else runs in to this problem:

After upgrading to 0.4.9 I started getting the following exception when authenticating against LDAP:

Net::BER::BerError in Devise::SessionsController#create

Unsupported object type: id=139

with the following in the Terminal window:

Started POST "/d/users/sign_in" for 127.0.0.1 at 2011-07-11 11:58:45 +0100 Processing by ?>Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", >"authenticity_token"=>"T+ttL/6YPK1A/HE4XRukI7SKHDTVr553/hOD+5UyYUk=", "user"=>{"username"=>"admin", >"password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} SQL (0.4ms) SELECT name FROM sqlite_master >WHERE type = 'table' AND NOT name = 'sqlite_sequence'

User Load (1.3ms) SELECT "users".* FROM "users" WHERE "users"."username" = 'admin' LIMIT 1 LDAP: LDAP search: >uid=admin Completed 500 Internal Server Error in 659ms

Net::BER::BerError (Unsupported object type: id=139)

After a bit of digging the problem seems to be related to net-ldap 0.2.2, so I've created a fork to restore the old 0.1.1 dependency. I'm sure this fork will break at some point in the future (but it seems OK for my basic usage at the moment).

If there's anything I can do to help come up with a more permanent fix then I'm happy to help.

-Ash

@cschiewek
Copy link
Owner

0.4 no longer being supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants