Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6331787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:08:15+00:00 2026-05-24T18:08:15+00:00

Im trying to set up a Devise Authenticable LDAP login system. Right now, I

  • 0

Im trying to set up a Devise Authenticable LDAP login system. Right now, I can get it to work using all users. However, i would like to only use users within a certain group. To illustrate, as of now, using all users, the code looks like this:

production:
  host: my.host.domain.com
  port: 389
  attribute: AccountName
  base: cn=users,dc=my,dc=con,dc=to,dc=host
  admin_user: adminuser
  admin_password: password
  ssl: false

So the following is the code i wrote to make it only work within the group “demo2” located within users. However, now it doesnt work with ANY user… Any suggestions?

 production:
  host: my.host.domain.com
  port: 389
  attribute: AccountName
  base: cn=demo2,cn=users,dc=my,dc=con,dc=to,dc=host
  admin_user: adminuser
  admin_password: password
  ssl: false
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T18:08:16+00:00Added an answer on May 24, 2026 at 6:08 pm

    I believe you want to use required_groups in your ldap.yml. If you look at the template file you can see the example:

    group_base: ou=groups,dc=test,dc=com
    ## Requires config.ldap_check_group_membership in devise.rb be true
      # Can have multiple values, must match all to be authorized required_groups:
      # If only a group name is given, membership will be checked against "uniqueMember"
      - cn=admins,ou=groups,dc=test,dc=com
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Devise and I'm trying to set up an invite code that the
I'm trying to redirect users that login to their profile page but get the
Trying to set up caching on our datasets - we're using clr stored procedures
When trying to set DoMatchParen I get the following error: E492: Not an editor
Im trying to set up my app to work with authlogic.. the thing is,
I'm trying to make a two-step confirmation like heroku using Devise. My routes: devise_for
I set up all my certificates and keys today and am trying to run
I am trying to test my controller's create action. I am using Devise for
I am trying to set up Devise to return 401 to unauthorized API requests
I'm using devise & devise_invitable in a rails 3 project, and I'm trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.