Displaying 20 results from an estimated 63 matches for "sshlogin".
2003 Jan 27
1
[PATCH] Creation of record_failed_login() in sshlogin.c
...orms support failed login counters and it occurs to me that
there's as few too many instances of:
#ifdef [PLATFORM]
if (authenticated == 0 && strcmp(method, "password") == 0)
some_login_failure_func();
#endif
The attached patch creates a record_failed_login() function in
sshlogin.c to go along with record_login(). This new function holds the
platform-specific code. At the moment, this is AIX and UNICOS, but it
will provide an obvious place for any other platforms that support this
type of thing.
auth_log() is called from do_authloop (proto 1) or userauth_finish
(proto 2...
2002 Apr 10
1
openssh-3.1p1 on GNU/Hurd
...-54,7 +54,7 @@
SSHOBJS= ssh.o sshconnect.o sshconnect1.o sshconnect2.o sshtty.o readconf.o clientloop.o
-SSHDOBJS= sshd.o auth.o auth1.o auth2.o auth-chall.o auth2-chall.o auth-rhosts.o auth-options.o auth-krb4.o auth-pam.o auth2-pam.o auth-passwd.o auth-rsa.o auth-rh-rsa.o auth-sia.o sshpty.o sshlogin.o loginrec.o servconf.o serverloop.o md5crypt.o session.o groupaccess.o auth-skey.o auth-bsdauth.o
+SSHDOBJS= sshd.o auth.o auth1.o auth2.o auth-chall.o auth2-chall.o auth-rhosts.o auth-options.o auth-krb4.o auth-pam.o auth2-pam.o auth-passwd.o auth-rsa.o auth-rh-rsa.o auth-sia.o sshpty.o sshlogin....
2003 Feb 28
0
[PATCH] Clean up failed login logging.
Hi All.
As noted in a previous post, the logging of failed user logins is
somewhat spread out. This patch creates a record_failed_login()
function in sshlogin.c and moves the AIX and UNICOS code to it,
eliminating 3 #ifdefs from the main code. It also provides an obvious
place to add the code for any other platforms that support this.
I've tested this on AIX 4.3.3. Wendy Palm was kind enough to test it
on UNICOS (this patch includes the cast requ...
2006 Sep 22
1
ssh login through AD solution
...ebian's "include" based pam.d,
cat /etc/pam.d/sshd
# ----------------------------------------------------------------------
#%PAM-1.0
auth required pam_stack.so service=system-auth
auth required pam_nologin.so
account sufficient pam_succeed_if.so user ingroup sshlogin
account sufficient pam_succeed_if.so user ingroup wheel
password required pam_stack.so service=system-auth
session required pam_stack.so service=system-auth
session required pam_loginuid.so
session sufficient pam_mkhomedir.so skel=/etc/skel umask=0027
# ---------------...
2003 Apr 03
0
[PATCH re-send]: Clean up logging of failed logins.
Hi All.
This is a re-send of a patch I submitted before 3.6p1.
As noted in a previous post, the logging of failed user logins is
somewhat spread out. This patch creates a record_failed_login()
function in sshlogin.c and moves the AIX and UNICOS code to it,
eliminating 3 #ifdefs from the main code. It also provides an obvious
place to add the code for any other platforms that support this.
I've tested this on AIX 4.3.3. Wendy Palm was kind enough to
test it
on UNICOS (this patch includes the ca...
2001 Mar 06
0
Continued utmp probs with sshlogin.c
Hi all,
I've hacked in some better logging for what's going on with my logins and
utmp/wtmp. Everything seems OK except for u.ut_host.
In my case, the actual variable host for this test case is
aragon.cheshirelaw.com. This is fine (as my logs show):
Mar 5 21:22:47 frodo sshd[10274]: Actual: 983852567 /dev/ttyp0
aragon.cheshirelaw.com
However, check out what u.ut_host is logged as:
2001 Apr 29
2
PATCH: UseLogin fix for 2.9p1 (w/improved last-login time)
...*/
execl(LOGIN_PROGRAM, "login", "-h", hostname,
+#ifdef LOGIN_NEEDS_TERM
+ s->term? s->term : "unknown",
+#endif
"-p", "-f", "--", pw->pw_name, NULL);
/* Login couldn't be executed, die. */
Index: sshlogin.c
--- sshlogin.c 2001/03/26 05:32:17 1.3
+++ sshlogin.c 2001/04/29 18:12:41
@@ -77,6 +77,20 @@
login_free_entry(li);
}
+#ifdef LOGIN_NEEDS_UTMPX
+void
+record_utmp_only(pid_t pid, const char *ttyname, const char *user,
+ const char *host, struct sockaddr * addr)
+{
+ struct logininfo *li;...
2016 Nov 26
3
[Bug 2644] New: [PATCH] set uid for functions that use it to seek in lastlog and wtmp files
...OS: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: sshd
Assignee: unassigned-bugs at mindrot.org
Reporter: posix.ru at gmail.com
Set uid for functions that use it to seek in lastlog and wtmp files:
diff --git a/sshlogin.c b/sshlogin.c
index cea3e76..0fcae4c 100644
--- a/sshlogin.c
+++ b/sshlogin.c
@@ -134,6 +134,7 @@ record_login(pid_t pid, const char *tty, const char
*user, uid_t uid,
li = login_alloc_entry(pid, user, host, tty);
login_set_addr(li, addr, addrlen);
+ li->uid = uid;...
2001 Nov 20
0
PATCH: Fixing last/utmpx for Solaris
...001
+++ session.c Mon Nov 19 12:08:34 2001
@@ -1863,7 +1863,7 @@
/* Record that the user has logged out. */
if (s->pid != 0)
- record_logout(s->pid, s->tty);
+ record_logout(s->pid, s->tty, s->pw->pw_name);
/* Release the pseudo-tty. */
pty_release(s->tty);
--- sshlogin.c~ Tue May 8 16:33:06 2001
+++ sshlogin.c Mon Nov 19 12:08:34 2001
@@ -94,11 +94,11 @@
/* 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_al...
2002 Jan 29
0
[Bug 84] New: last command provides incorrect information on Solaris 8
...6,7 +1866,7 @@
/* Record that the user has logged out. */
if (s->pid != 0)
- record_logout(s->pid, s->tty);
+ record_logout(s->pid, s->tty, s->pw->pw_name);
/* Release the pseudo-tty. */
pty_release(s->tty);
--- sshlogin.c~ Tue May 8 16:33:06 2001
+++ sshlogin.c Tue Jan 29 10:56:59 2002
@@ -94,11 +94,11 @@
/* 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_a...
2024 Jun 12
2
use of ‘idmap_ldb:use rfc2307 = yes’ in DCs
On Wed, 12 Jun 2024 09:00:47 +0200
Christian Naumer via samba <samba at lists.samba.org> wrote:
> Am 11.06.24 um 19:37 schrieb Luis Peromarta via samba:
> > Correct, and I have done so and explained extensively at the
> > beginning to this thread.
> >
> > Question is:
> >
> > Should we stop telling people to provision with idmap_ldb:use
> >
2002 Dec 29
0
[Bug 460] New: ut_addr_v6 not used
...from));
+ fromlen = sizeof(from);
if (packet_connection_is_on_socket()) {
- fromlen = sizeof(from);
if (getpeername(packet_get_connection_in(),
(struct sockaddr *) & from, &fromlen) < 0) {
debug("getpeername: %.100s", strerror(errno));
diff -ruN t/openssh-3.5p1/sshlogin.c openssh-3.5p1/sshlogin.c
--- t/openssh-3.5p1/sshlogin.c 2002-09-04 08:45:11.000000000 +0200
+++ openssh-3.5p1/sshlogin.c 2002-11-05 13:12:25.000000000 +0100
@@ -70,7 +70,7 @@
struct logininfo *li;
li = login_alloc_entry(pid, user, host, ttyname);
- login_set_addr(li, addr, sizeof(struct...
2001 Nov 15
1
Patch for "last" providing incorrect information on Solaris 8
...01
+++ session.c Thu Nov 15 09:38:01 2001
@@ -1856,7 +1856,7 @@
/* Record that the user has logged out. */
if (s->pid != 0)
- record_logout(s->pid, s->tty);
+ record_logout(s->pid, s->tty, s->pw->pw_name);
/* Release the pseudo-tty. */
pty_release(s->tty);
--- sshlogin.c.orig Thu Nov 15 09:35:02 2001
+++ sshlogin.c Thu Nov 15 09:38:01 2001
@@ -94,11 +94,11 @@
/* 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 = logi...
2002 May 09
0
functions : server_input_channel_req userauth_pubkey
...session_destroy_all(void);
diff -ru openssh-3.1p1/sshd.c openssh-3.1p1-mods/sshd.c
- --- openssh-3.1p1/sshd.c Thu May 9 12:18:37 2002
+++ openssh-3.1p1-mods/sshd.c Thu May 9 12:20:06 2002
@@ -1519,3 +1519,4 @@
#endif
debug("KEX done");
}
+
diff -ru openssh-3.1p1/sshlogin.c openssh-3.1p1-mods/sshlogin.c
- --- openssh-3.1p1/sshlogin.c Thu May 9 12:18:37 2002
+++ openssh-3.1p1-mods/sshlogin.c Thu May 9 12:20:07 2002
@@ -67,14 +67,64 @@
void
record_login(pid_t pid, const char *ttyname, const char *user, uid_t
uid,
- - const char *host, struct sockad...
2003 Jun 11
2
[PATCH] Fix typos, OpenBSD + Portable
...n)
buflen = MAX(MIN_READ_SIZE, len);
}
- if (max_req > 0) { /* max_req = 0 iff EOF received */
+ if (max_req > 0) { /* max_req = 0 if EOF received */
if (size > 0 && offset > size) {
/* Only one request at a time
* after the expected EOF */
Index: sshlogin.c
===================================================================
RCS file: /cvs/src/usr.bin/ssh/sshlogin.c,v
retrieving revision 1.6
diff -u -r1.6 sshlogin.c
--- sshlogin.c 2003/04/08 20:21:29 1.6
+++ sshlogin.c 2003/06/11 12:29:21
@@ -79,8 +79,8 @@
}
/*
- * Records that the user has logge...
2005 Sep 12
3
Problems Compiling OpenSSH 4.2p1 on Tru64 UNIX 5.1b
I configure as follows:
./configure --with-zlib=/usr/local/include
cc -o sshd sshd.o auth-rhosts.o auth-passwd.o auth-rsa.o auth-rh-rsa.o
sshpty.o sshlogin.o servconf.o serverloop.o auth.o auth1.o auth2.o
auth-options.o session.o auth-chall.o auth2-chall.o groupaccess.o
auth-skey.o auth-bsdauth.o auth2-hostbased.o auth2-kbdint.o auth2-none.o
auth2-passwd.o auth2-pubkey.o monitor_mm.o monitor.o monitor_wrap.o kexdhs.o
kexgexs.o auth-krb5.o a...
2007 Mar 23
2
openssh 4.6p1 bug / IRIX
hello,
little problem compiling openssh 4.6p1 on irix using mipspro 7.4.x.
c99 -o sshd sshd.o auth-rhosts.o auth-passwd.o auth-rsa.o auth-rh-rsa.o
sshpty.o sshlogin.o servconf.o serverloop.o auth.o auth1.o auth2.o
auth-options.o session.o auth-chall.o auth2-chall.o groupaccess.o
auth-skey.o auth-bsdauth.o auth2-hostbased.o auth2-kbdint.o auth2-none.o
auth2-passwd.o auth2-pubkey.o monitor_mm.o monitor.o monitor_wrap.o
kexdhs.o kexgexs.o auth-krb5.o auth2-gs...
2004 Aug 20
1
problem compiling OpenSSH 3.9 on OpenBSD 3.4
Please pardon any user idiocy involved, but I applied the OpenBSD 3.4
patch to the 3.9 sources on both my i386 and sparc64 OpenBSD 3.4 boxes,
and get the same error:
cc -o sshd sshd.o auth-rhosts.o auth-passwd.o auth-rsa.o
auth-rh-rsa.o sshpty.o sshlogin.o servconf.o serverloop.o uidswap.o
auth.o auth1.o auth2.o auth-options.o session.o auth-chall.o
auth2-chall.o groupaccess.o auth-skey.o auth-bsdauth.o
auth2-hostbased.o auth2-kbdint.o auth2-none.o auth2-passwd.o
auth2-pubkey.o monitor_mm.o monitor.o monitor_wrap.o kexdhs.o kexgexs.o
auth-krb5...
2004 Mar 27
1
Problems Compiling sshd - OpenSSH 3.8p1 on Tru64 UNIX V4.0F PK#7 (OSF)
...mpat
seems to have built without errors. I configure as follows:
CC=cc CFLAGS=-O LDFLAGS=-non_shared ./configure --prefix=/opt/ssh
--with-prngd-socket =/var/run/egd-pool --with-ssl-dir=/opt/ssh
--with-zlib=/opt/zlib
cc -o sshd sshd.o auth-rhosts.o auth-passwd.o auth-rsa.o auth-rh-rsa.o
sshpty.o sshlogin.o servconf.o serverloop.o uidswap.o auth.o auth1.o
auth2.o auth-options.o session.o auth-chall.o auth2-chall.o groupaccess.o
auth-skey.o auth-bsdauth.o auth2-hostbased.o auth2-kbdint.o auth2-none.o
auth2-passwd.o auth2-pubkey.o monitor_mm.o monitor.o monitor_wrap.o
monitor_fdpass.o kexdhs.o ke...
2007 May 01
1
problem while doing make - openssh on sco unix 7.1
...f.o clientloop.o sshtty.o sshconnect.o
sshconnect1.o sshconnect2.o -L. -Lopenbsd-compat/ -L/usr/local/ssl/lib
-L/usr/local/lib -lssh -lopenbsd-compat -lresolv -liaf -lcrypto -lsocket
-lnsl -lgen -lz -lcrypt
cc -o sshd sshd.o auth-rhosts.o auth-passwd.o auth-rsa.o
auth-rh-rsa.o sshpty.o sshlogin.o servconf.o serverloop.o auth.o auth1.o
auth2.o auth-options.o session.o auth-chall.o auth2-chall.o groupaccess.o
auth-skey.o auth-bsdauth.o auth2-hostbased.o auth2-kbdint.o auth2-none.o
auth2-passwd.o auth2-pubkey.o monitor_mm.o monitor.o monitor_wrap.o
kexdhs.o kexgexs.o auth-krb5.o auth2-...