search for: session_key

Displaying 20 results from an estimated 59 matches for "session_key".

2001 Feb 08
1
ssh1 keyexchange problem ?
Hi, Has anybody produced diffs for openssh-2.3.0p1 for the rsa keyexchange problem that Core-SDI described ? ( I noticed that fix is already in openbsd tree ). -Jarno -- Jarno Huuskonen - System Administrator | Jarno.Huuskonen at uku.fi University of Kuopio - Computer Center | Work: +358 17 162822 PO BOX 1627, 70211 Kuopio, Finland | Mobile: +358 40 5388169
2004 Aug 06
0
winbindd PANIC: smb_xmalloc: malloc fail
...ugs of the Samba HOWTO collection =============================================================== PANIC: internal error Are there any know issues with the gcc 2.9 compiler? Or perhaps I'm missing a flag? I tracked it down to this segment of code in libsmb/cliconnect.c static void cli_set_session_key (struct cli_state *cli, const DATA_BLOB session_key) { cli->user_session_key = data_blob(session_key.data, session_key.length); } I can verify the value of session_key.length is 16 prior to the call to cli_set_session_key, but in data_blob the value becomes 2534319874. If I add a DE...
2007 Mar 13
0
Retrieve session_key
...(because it doesn''t check to see what session key is being set in the application controller). As such, it doesn''t work unless you explicitly set the session key. Currently I just added a line to my application controller like so: UnobtrusiveJavascriptController.send :session, :session_key => ''_reminders_session_id'' I''d like to fix the UJS plugin and submit a patch, but I''m not sure how to best go about it. You can''t simply change the UnobtrusiveJavascriptController to derive from ApplicationController because it won''t know w...
2008 Feb 09
1
how to check the config.action_controller.session options ?
when setting it in my environment.rb config.action_controller.session = { :session_key => ''_myapp_session'', :secret => ''3a64394bb895f1f05e0c07f71127d93d'' } I cannot get it back in the script/console .. :session_key=>"_session_id" !!! why ? >> ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS => {:session...
2010 Mar 04
0
Uploadify authentication problem
...ut there are no errors in the log. Rails(2.3.5) Uploadify(2.1.0) Here is my FlashSessionCookieMiddleware where the problem with the Flash authentication shoud be solved. ------------------------------ require ''rack/utils'' class FlashSessionCookieMiddleware def initialize(app, session_key = ''_session_id'') @app = app @session_key = session_key end def call(env) if env[''HTTP_USER_AGENT''] =~ /^(Adobe|Shockwave) Flash/ req = Rack::Request.new(env) env[''HTTP_COOKIE''] = "#{@session_key}=#{req.params[@s...
2010 Sep 09
1
406 Not Acceptable with swfupload
---------flash_session_cookie_middleware.rb require ''rack/utils'' class FlashSessionCookieMiddleware def initialize(app, session_key = ''_session_id'') @app = app @session_key = session_key end def call(env) if env[''HTTP_USER_AGENT''] =~ /^(Adobe|Shockwave) Flash/ req = Rack::Request.new(env) params = ::Rack::Utils.parse_query(env[''QUERY_STRING''])...
2007 Mar 01
4
Cookie based session management problems
...g worked. Ah, life on the edge. I''m sure I''m just missing something, but I can''t get sessions to survive the first redirect. I added the following code to environment.rb, based on Ryan''s (http://www.ryandaigle.com/) note: config.action_controller.session = { :session_key => ''_<%= app_name %>_session'', :secret => ''<%= CGI::Session.generate_unique_id(app_name) %>'' } The problem is probably related to the fact that the embedded ruby is not getting processed. The generated cookie is NAME: _<% VALUE app_n...
2000 Sep 28
1
[PATCH] Next cleanup part 4 or 5 by now.=)
...ed(struct termios *t, int speed); #endif /* HAVE_NEXT */ - #endif /* _NEXT_POSIX_H */ Only in onext: ssh_prng_cmds diff -ru openssh/sshd.c onext/sshd.c --- openssh/sshd.c Sat Sep 23 01:15:57 2000 +++ onext/sshd.c Thu Sep 28 15:38:39 2000 @@ -1259,7 +1259,7 @@ if (len < 0 || len > sizeof(session_key)) fatal("do_connection: bad len from %s: session_key_int %d > sizeof(session_key) %d", get_remote_ipaddr(), - len, sizeof(session_key)); + len, (int) sizeof(session_key)); memset(session_key, 0, sizeof(session_key)); BN_bn2bin(session_key_int, session_key...
2008 Apr 09
3
form_tag and form_for cause #protect_from_forgery errors
.../form_helper.rb: 204:in `form_for'' app/views/users/new.fbml.erb:2:in `_run_erb_47app47views47users47new46fbml46erb'' I''ve got this in my application.rb: config.action_controller.session_store = :active_record_store config.action_controller.session = { :session_key => ''_app_session'', :secret => ''xxx'' } What''s the trick for getting around this? Thanks, BJ Clark
2008 Dec 16
3
ApplicationProperties
...re developers for my app and then grant special permissions to them ... I tried creating something like this: class ApplicationProperties < ActiveRecord::Base def facebook_session @facebook_session ||= returning Facebooker::Session.create do |session| session.secure_with!(session_key,User.find(:first).facebook_id,1.hour.from_now) end end end but that doesn''t seem to help, i.e. the facebook session thing is specific to the user model .... Many thanks in advance CHEERS> SAM -- Sam Joseph, Ph.D. Co-Director Laboratory for Interactive Learning Technologies...
2009 Oct 13
1
config.action_controller.session[:secret] vs protect_from_forgery :secret
What I want to do is share the same session across many Rails applications. All of them are using Rails 2.2.2. I know that, to share the session, it''s (supposedly) just a matter of sharing the same key and secret among the apps, like this: config.action_controller.session = { :session_key => ''_apps_session'', :secret => ''71b94f37789bbedf9062616218dab005f2ffae65de2cac6313423a70eeff07189c7694d71d5fc0996'' } This being put in config/environment.rb of all the apps you want the session to be share with. Now, some of the apps are return...
2006 Mar 03
1
number_to_currency() helper == non DRY == could be improved
...#39;'number_to_currency()'' method. number_to_currency(0.02) versus number_to_currency(0.02, {:unit => MY_CURRENCY_CONSTANT} ) Not to bad some may say, but it''s still not exactly DRY nor elegant is it ? Instead I would propose as similar scheme to the ''session_key'' override functionality that I use a lot. ## add a custom session ID for this site (when developing with many apps on local system) ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS[:session_key] = ''00_shows_at_top_of_sorted_cookies_list'' Whereby we could def...
2008 Jun 19
5
How do you create one session cookie for multiple subdomains
I am using the restful authentication plugin and am always prompted to login if a different subdomain is accessed. I have found a couple rails "solutions", but none of them seem to work: # development.rb 1. ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS[:session_key] = ".localhost" 2. ActionController::Base.session_options[:key] = ".localhost" Does anyone have a way that works? Thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to t...
2011 Mar 27
2
LinkedIn still not working?
...timeout = 300 agent.open_timeout = 60 agent.max_history = 1 # Prevent excessive memory usage agent.user_agent_alias = ''Mac Safari'' page = agent.get(https://www.linkedin.com/secure/login?trk=hb_signin) form = page.form(''login'') form.session_key = USERNAME form.session_password = PASSWORD new_page = form.click_button Any help would be appreciated. Lonny Eachus ============ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/mechanize-users/attachments/20110327/f323...
2007 Dec 23
3
InvalidAuthenticityToken problems with my login form
I am trying to convert my codeand to use the new Rails 2.0 feature RequestForgeryProtection but I get an InvalidAuthenticityToken error, right from the beginning with my login form.. I followed the recommandations : in my environment.rb config.action_controller.session = { :session_key => ''myappname'', :secret => ''6de86b5566d7598f57e757960760acd2'' } in my application.rb protect_from_forgery :secret => ''6de86b5566d7598f57e757960760acd2'' my sessions_controller.rb doesn''t have anything new inside.....
2008 Oct 10
17
authenticity_token sent, still InvalidAuthenticityToken
Hi! To send the authenticity token from flex back to the server, I followed this: http://blog.dt.org/index.php/2008/06/rails-2-flex-3-and-form-authenticity-tokens/ I have two controllers in my rails app. The method described in the link above works with the actions in one controller, but does not work with the other. The controller which does not work has just one action which performs a file
2004 Aug 09
1
[PATCH] RPA authentication mechanism
...name_ucs2be; + size_t realm_len; + const unsigned char *realm_ucs2be; + + /* requested: */ + unsigned char *service_challenge; + unsigned char *service_timestamp; + + /* received: */ + unsigned int user_challenge_len; + unsigned char *user_challenge; + unsigned char *user_response; + unsigned char *session_key; +}; + +#define RPA_SCHALLENGE_LEN 32 +#define RPA_UCHALLENGE_LEN 16 +#define RPA_TIMESTAMP_LEN 14 + +#define ASN1_APPLICATION 0x60 + +/* Object id encoded using ASN.1 DER */ +static const unsigned char rpa_oid[] = { + 0x06, 0x09, 0x60, 0x86, 0x48, 0x01, 0x86, 0xf8, 0x73, 0x01, 0x01, +}; + +void *...
2019 Feb 18
0
SMB Signing with "map to guest = " options
...move(mem_ctx, &result); } } goto out; } It needs to still run this part form the tail of the function, not skip over it with the 'goto out' /* ensure we are never given NULL session keys */ if (all_zero(info3->base.key.key, sizeof(info3->base.key.key))) { result->session_key = data_blob_null; } else { result->session_key = data_blob_talloc( result, info3->base.key.key, sizeof(info3->base.key.key)); } if (all_zero(info3->base.LMSessKey.key,      sizeof(info3->base.LMSessKey.key))) { result->lm_session_key = data_blob_null; } else { r...
2005 Sep 09
0
ActiveRecordStore session.id
...re for my sessions. I have another model called PageView that stores a record each time a page is viewed (page_id, session_id). In order to implement this, however, I need to be able to access the session''s primary ''id'' value, the integer, not the long encoded ''session_key''. My problem is that I can''t access the session''s numeric id by using @session.id because it just gives me back an integer representation of the session_key. Any help is appreciated. Thanks. -- Chad Nantais cnantais-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007 Sep 17
0
keep sessions while switching domains
...r all domains! Now when switching domains we loose the session, that was previously used and I was not able to restore my old session. I was trying to send the old session id via the url and then reuse it by setting it again like this: redirect_to :host => ''127.0.0.1:3000'' , :session_key => request.cookies[''_xxx_session_id''][0] unless (request.env[''HTTP_HOST''] == ''127.0.0.1:3000'') cookies[:_xxx_session_id] = params[:session_key] This failed since rails seems to regenerate a new session id somehow at a later stage. The new s...