Displaying 10 results from an estimated 10 matches for "login_logout".
2007 Oct 02
0
Rails 2.0 & rspec edge - not protected_against_forgery?
...efined method `protect_against_forgery?'' for #<#<Class:0x3219118>:
0x34e1f94>
/Users/jcf/dev/work/sim/vendor/plugins/rspec_on_rails/lib/spec/rails/
dsl/behaviour/rails_example.rb:41:in `method_missing''
/Users/jcf/dev/work/sim/app/helpers/application_helper.rb:8:in
`login_logout''
./spec/helpers/application_helper_spec.rb:28:
I have looked into patching rspec to include the
"protect_against_forgery?" helper, but it''s included dynamically via
a "helper_method :protect_against_forgery?" call in
request_forgery_protection.rb
I have...
2001 Nov 20
0
PATCH: Fixing last/utmpx for Solaris
...Records that the user has logged out. */
void
-record_logout(pid_t pid, const char *ttyname)
+record_logout(pid_t pid, const char *ttyname, const char *user)
{
struct logininfo *li;
- li = login_alloc_entry(pid, NULL, NULL, ttyname);
+ li = login_alloc_entry(pid, user, NULL, ttyname);
login_logout(li);
login_free_entry(li);
}
--- sshlogin.h~ Wed Jul 4 00:46:58 2001
+++ sshlogin.h Mon Nov 19 12:08:34 2001
@@ -17,7 +17,7 @@
void
record_login(pid_t, const char *, const char *, uid_t,
const char *, struct sockaddr *);
-void record_logout(pid_t, const char *);
+void record_logout(...
2007 Jul 06
3
stubbing helper methods for View specs
...9;'/shared/layout_test not logged in
should have the correct head information''
undefined method `logged_in?'' for #<ActionView::Base:0x22ec6f8>
On line #13 of app/views/layouts/thetool.haml
app/views//layouts/thetool.haml:13
app/helpers/application_helper.rb:5:in `login_logout''
(eval):28:in `_render_haml_1''
vendor/plugins/haml/lib/haml/engine.rb:435:in `compile''
vendor/plugins/haml/lib/haml/engine.rb:186:in `to_html''
vendor/plugins/haml/lib/haml/template.rb:69:in `render''
vendor/rails/actionpack/lib/ac...
2003 Feb 28
0
[PATCH] Clean up failed login logging.
....c
===================================================================
RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/sshlogin.c,v
retrieving revision 1.9
diff -u -r1.9 sshlogin.c
--- sshlogin.c 1 Jan 2003 23:43:56 -0000 1.9
+++ sshlogin.c 28 Feb 2003 08:01:49 -0000
@@ -99,3 +99,15 @@
login_logout(li);
login_free_entry(li);
}
+
+/* Record a failed login attempt. */
+void
+record_failed_login(const char *user, const char *host, const char *ttyname)
+{
+#ifdef WITH_AIXAUTHENTICATE
+ loginfailed(user, host, ttyname);
+#endif
+#ifdef _UNICOS
+ cray_login_failure((char *)user, IA_UDBERR);
+#e...
2003 Apr 03
0
[PATCH re-send]: Clean up logging of failed logins.
....c
===================================================================
RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/sshlogin.c,v
retrieving revision 1.9
diff -u -r1.9 sshlogin.c
--- sshlogin.c 1 Jan 2003 23:43:56 -0000 1.9
+++ sshlogin.c 28 Feb 2003 08:01:49 -0000
@@ -99,3 +99,15 @@
login_logout(li);
login_free_entry(li);
}
+
+/* Record a failed login attempt. */
+void
+record_failed_login(const char *user, const char *host, const char *ttyname)
+{
+#ifdef WITH_AIXAUTHENTICATE
+ loginfailed(user, host, ttyname);
+#endif
+#ifdef _UNICOS
+ cray_login_failure((char *)user, IA_UDBERR);
+#e...
2002 Jan 29
0
[Bug 84] New: last command provides incorrect information on Solaris 8
...Records that the user has logged out. */
void
-record_logout(pid_t pid, const char *ttyname)
+record_logout(pid_t pid, const char *ttyname, const char *user)
{
struct logininfo *li;
- li = login_alloc_entry(pid, NULL, NULL, ttyname);
+ li = login_alloc_entry(pid, user, NULL, ttyname);
login_logout(li);
login_free_entry(li);
}
--- sshlogin.h~ Wed Jul 4 00:46:58 2001
+++ sshlogin.h Tue Jan 29 10:56:59 2002
@@ -17,7 +17,7 @@
void
record_login(pid_t, const char *, const char *, uid_t,
const char *, struct sockaddr *);
-void record_logout(pid_t, const char *);
+void record_logout...
2001 Nov 15
1
Patch for "last" providing incorrect information on Solaris 8
...Records that the user has logged out. */
void
-record_logout(pid_t pid, const char *ttyname)
+record_logout(pid_t pid, const char *ttyname, const char *user)
{
struct logininfo *li;
- li = login_alloc_entry(pid, NULL, NULL, ttyname);
+ li = login_alloc_entry(pid, user, NULL, ttyname);
login_logout(li);
login_free_entry(li);
}
--- sshlogin.h.orig Thu Nov 15 09:35:02 2001
+++ sshlogin.h Thu Nov 15 09:38:01 2001
@@ -17,7 +17,7 @@
void
record_login(pid_t, const char *, const char *, uid_t,
const char *, struct sockaddr *);
-void record_logout(pid_t, const char *);
+void record_lo...
2003 Jan 27
1
[PATCH] Creation of record_failed_login() in sshlogin.c
...7 @@
RCSID("$OpenBSD: sshlogin.c,v 1.5 2002/08/29 15:57:25 stevesk Exp $");
#include "loginrec.h"
+#include "log.h"
/*
* Returns the time when the user last logged in. Returns 0 if the
@@ -98,4 +99,20 @@
li = login_alloc_entry(pid, user, NULL, ttyname);
login_logout(li);
login_free_entry(li);
+}
+
+
+/* Record a failed login attempt. */
+void
+record_failed_login(const char *user, const char *host, const char *ttyname)
+{
+ debug3("%s user %s host %s tty %s", __func__, user, host, ttyname);
+
+#ifdef WITH_AIXAUTHENTICATE
+ loginfailed(user, host,...
2001 Jan 29
1
Solaris wtmpx patch
...Records that the user has logged out. */
void
-record_logout(pid_t pid, const char *ttyname)
+record_logout(pid_t pid, const char *ttyname, const char *user)
{
struct logininfo *li;
- li = login_alloc_entry(pid, NULL, NULL, ttyname);
+ li = login_alloc_entry(pid, user, NULL, ttyname);
login_logout(li);
login_free_entry(li);
}
diff -u -r openssh-2.3.0p1.orig/loginrec.c openssh-2.3.0p1/loginrec.c
--- openssh-2.3.0p1.orig/loginrec.c Sat Sep 30 03:34:44 2000
+++ openssh-2.3.0p1/loginrec.c Tue Jan 23 18:24:25 2001
@@ -674,6 +674,9 @@
set_utmpx_time(li, utx);
utx->ut_pid = li->pid;...
2001 Apr 29
2
PATCH: UseLogin fix for 2.9p1 (w/improved last-login time)
...;
+}
+#endif
+
/**
** getlast_entry: Call low-level functions to retrieve the last login
** time.
Index: loginrec.h
--- loginrec.h 2001/02/05 12:42:18 1.5
+++ loginrec.h 2001/04/29 18:12:41
@@ -110,6 +110,9 @@
/* record the entry */
int login_login (struct logininfo *li);
int login_logout(struct logininfo *li);
+#ifdef LOGIN_NEEDS_UTMPX
+int login_utmp_only(struct logininfo *li);
+#endif
/** End of public functions */
Index: session.c
--- session.c 2001/04/18 15:29:34 1.111
+++ session.c 2001/04/29 18:12:41
@@ -127,6 +127,9 @@
void do_exec_pty(Session *s, const char *command);...