Comments (8)
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.
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.
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.
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.
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.
Hi all! I am having the same problem, any thought on that? Thanx!
from casino.
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.
How to use this for beginner.
from casino.
Related Issues (20)
- Rails 5 support! HOT 6
- How CAS server identify differency domain name HOT 4
- LDAP and ActiveRecord have different extra_attributes
- Login with ember.js app and JWT API HOT 1
- Password Recovery option? HOT 1
- Net timeout error when trying to sign in. HOT 1
- Cannot login to CASino: Gives me 403 Forbidden HOT 26
- hi bro..
- CASino ActiveRecord Authentication HOT 2
- Trying to install CASino App. Experiencing bundle exec rake db:migrate issues.
- Resurrecting SAML2 Integration with CASino #94
- User connexion problem
- Mongo for storing schema
- interest in maintainer help? HOT 16
- CASino integration with mobile apps HOT 1
- always getting Incorrect username or password. HOT 1
- CASino integration to several folder in AD using LDAP
- how to create a new user where is sign up ?
- How can we make salted md5, sha 256 or sha 512, compatible with CASino's ActiveRecord? HOT 1
- Rails 4.2 Asset Pipeline issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from casino.