Giter Club home page Giter Club logo

Comments (8)

mongeta avatar mongeta commented on July 26, 2024

Where I can find the logs about CASino using LDAP to check if there's an error there?

Can we put just the login account in the admin_user?

Our LDAP doesn't accept anonymous connections, so for authentication, we need to use a real account&password, how can I specify them?

In RUBYcas was easy:

auth_user: [email protected]
auth_password: xxdff34xxxxxx

thanks

from casino.

pencil avatar pencil commented on July 26, 2024

Yes, you'd use admin_user and admin_password. Please post your cas.yml (with sensitive information blanked out) if you still have no success.

from casino.

mongeta avatar mongeta commented on July 26, 2024

This is my current cas.yml, I can't see any reference that CASino is trying to reach our ldap server, that's why it would be great if I could find where the logs are :-)

thanks,

development:
  frontend:
    sso_name: 'CASino'
    footer_text: 'Powered by <a href="http://rbcas.com/">CASino</a>'
  authenticators:

########################################
# LDAP
########################################
    my_company_ldap:
      authenticator: 'LDAP'
      options:
        host: 'ldap.myhost.com'
        port: 389
        base: 'ou=xxxxxxx,dc=myCompany,dc=com'
        username_attribute: 'uid'
        admin_user: "[email protected]"
        admin_password: "xxxxxxxxxx"
#        encryption: 'simple_tls'
#        extra_attributes:
#          email: 'mail'
#          fullname: 'displayname'

from casino.

pencil avatar pencil commented on July 26, 2024

CASino's log is in log/<environment>.log. Maybe your server has the RAILS_ENV environment variable set? Unless your server is running in development mode, you may need to change the first line of your cas.yml to production. Restart the application server afterwards. Make sure the other settings, such as sso_name and footer_text are working.

from casino.

mongeta avatar mongeta commented on July 26, 2024

Sorry, I know where are the server logs, but in this logs there are no LDAP connection:

Started POST "/login" for 127.0.0.1 at 2014-09-15 20:46:51 +0200
Processing by CASino::SessionsController#create as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"KcwXD8UL9GtaUJMEnesHBTO+6i6KFTXe9F6cVuS9k+Q=", "lt"=>"LT-14108068032994-l5nhqAxw6DKkf5FZz5TbGJNJsctJuGSPf4acsoBX", "username"=>"[email protected]", "password"=>"[FILTERED]", "button"=>""}
  �[1m�[36mCASino::LoginTicket Load (0.5ms)�[0m  �[1mSELECT  "casino_login_tickets".* FROM "casino_login_tickets"  WHERE "casino_login_tickets"."ticket" = 'LT-14108068032994-l5nhqAxw6DKkf5FZz5TbGJNJsctJuGSPf4acsoBX' LIMIT 1�[0m
Login ticket 'LT-14108068032994-l5nhqAxw6DKkf5FZz5TbGJNJsctJuGSPf4acsoBX' successfully validated
  �[1m�[35mSQL (1.4ms)�[0m  DELETE FROM "casino_login_tickets" WHERE "casino_login_tickets"."id" = 65
  �[1m�[36m (0.1ms)�[0m  �[1mBEGIN�[0m
  �[1m�[35mCASino::LoginTicket Exists (0.3ms)�[0m  SELECT  1 AS one FROM "casino_login_tickets"  WHERE "casino_login_tickets"."ticket" = 'LT-14108068117378-QDelvRRcpAB8Ru595cUHFAKGX7aHQitq3mq2Agv1' LIMIT 1
  �[1m�[36mSQL (0.2ms)�[0m  �[1mINSERT INTO "casino_login_tickets" ("created_at", "ticket", "updated_at") VALUES ($1, $2, $3) RETURNING "id"�[0m  [["created_at", "2014-09-15 18:46:51.739575"], ["ticket", "LT-14108068117378-QDelvRRcpAB8Ru595cUHFAKGX7aHQitq3mq2Agv1"], ["updated_at", "2014-09-15 18:46:51.739575"]]
  �[1m�[35m (0.8ms)�[0m  COMMIT
Created login ticket 'LT-14108068117378-QDelvRRcpAB8Ru595cUHFAKGX7aHQitq3mq2Agv1'
  Rendered vendor/bundle/ruby/2.0.0/gems/casino-3.0.3/app/views/casino/application/_messages.html.erb (0.1ms)
  Rendered vendor/bundle/ruby/2.0.0/gems/casino-3.0.3/app/views/casino/application/_footer.html.erb (0.1ms)
  Rendered vendor/bundle/ruby/2.0.0/gems/casino-3.0.3/app/views/casino/sessions/new.html.erb within layouts/application (2.6ms)
Completed 403 Forbidden in 358ms (Views: 5.3ms | ActiveRecord: 3.3ms)

Also my server is in Development mode:

=> Booting WEBrick
=> Rails 4.1.0 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
=> Ctrl-C to shutdown server
[2014-09-15 20:41:59] INFO  WEBrick 1.3.1
[2014-09-15 20:41:59] INFO  ruby 2.0.0 (2013-06-27) [x86_64-darwin13.0.2]
[2014-09-15 20:41:59] INFO  WEBrick::HTTPServer#start: pid=39113 port=3000

And yes, the footer_text works, I can see the modified one.

I can't see the sso_name updated.

I'm sure the cas.yml file is used, if I use a number as a password without quotes, I can see the error in the log, but I never, never, found any LDAP related connection in the logs, that's what I'm looking for ...

thanks again,

regards,

from casino.

VictorRO avatar VictorRO commented on July 26, 2024

Hi all! I am having the same problem, any thought on that? Thanx!

from casino.

pencil avatar pencil commented on July 26, 2024

Please update your CASino installation, execute RAILS_ENV=<environment> bundle exec rake casino:authentication:test, enter your account data and post the result here.

from casino.

maungmaung0 avatar maungmaung0 commented on July 26, 2024

How to use this for beginner.

from casino.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.