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

undefined method split for nil - ad_objects/group.rb line 51 #42

Open
guttermonkey opened this issue Sep 17, 2013 · 2 comments
Open

undefined method split for nil - ad_objects/group.rb line 51 #42

guttermonkey opened this issue Sep 17, 2013 · 2 comments
Assignees

Comments

@guttermonkey
Copy link

I've been using AdAuth in a couple apps for awhile and recently upgraded one to 2.0.3 and most of my users are fine, but for one particular user I'm getting an error in the above mentioned line about not being able to split nil. The relevant part of the stack trace:

adauth (2.0.3) lib/adauth/ad_objects/group.rb:51:in cn_groups' adauth (2.0.3) lib/adauth/ad_object.rb:111:inblock in cn_groups_nested'
adauth (2.0.3) lib/adauth/ad_object.rb:109:in each' adauth (2.0.3) lib/adauth/ad_object.rb:109:incn_groups_nested'
adauth (2.0.3) lib/adauth/authenticate.rb:26:in allowed_to_login' adauth (2.0.3) lib/adauth/authenticate.rb:10:inauthenticate'
app/controllers/sessions_controller.rb:8:in `create'

I've checked and the user is pretty much in the same groups as another user with similar groups. I assume that there's something misconfigured in her AD account, I just can't seem to figure out what.

@ghost ghost assigned Arcath Sep 17, 2013
@guttermonkey
Copy link
Author

Well I got the user working by removing one group from her group list. I'm not entirely sure I understand what that would change though if you have some insight.

@Darius590
Copy link

I am having this same problem. I've managed to track it down to a group that has more than 1,500 members. When I look at ado.inspect, I see

:member=>[], :"member;range=0-1499"=>[ ... 1500 members listed ... ]

I'm guessing this is the issue as :member is actually empty causing the split to fail. Any thoughts on the best way to implement a fix for this?

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

3 participants