Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lyskom-server-ceder-1616-generations-topgit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
6f7d77ba
Commit
6f7d77ba
authored
33 years ago
by
Per Cederqvist
Browse files
Options
Downloads
Patches
Plain Diff
Began to integrate rfc-931 authentication into the server.
parent
8ce883fe
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/server/ChangeLog
+5
-0
5 additions, 0 deletions
src/server/ChangeLog
src/server/Makefile
+4
-4
4 additions, 4 deletions
src/server/Makefile
src/server/rfc931.c
+60
-0
60 additions, 0 deletions
src/server/rfc931.c
src/server/rfc931.h
+26
-0
26 additions, 0 deletions
src/server/rfc931.h
with
95 additions
and
4 deletions
src/server/ChangeLog
+
5
−
0
View file @
6f7d77ba
Tue Mar 31 23:48:47 1992 Per Cederqvist (ceder@robert)
* rfc931.[hc]: New file.
* Makefile: (GEN_OBJS, GEN_SRCS): Use it.
Tue Mar 24 18:05:18 1992 Per Cederqvist (ceder@robert)
Tue Mar 24 18:05:18 1992 Per Cederqvist (ceder@robert)
* simple-cache.c (save_one_text): Check that the entire file made
* simple-cache.c (save_one_text): Check that the entire file made
...
...
This diff is collapsed.
Click to expand it.
src/server/Makefile
+
4
−
4
View file @
6f7d77ba
#
#
# $Id: Makefile,v 0.2
1
1992/0
2/26 18:45
:2
3
ceder Exp $
# $Id: Makefile,v 0.2
2
1992/0
3/31 21:51
:2
5
ceder Exp $
# Copyright (C) 1991 Lysator Academic Computer Association.
# Copyright (C) 1991 Lysator Academic Computer Association.
#
#
# This file is part of the LysKOM server.
# This file is part of the LysKOM server.
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
#
#
# Please mail bug reports to bug-lyskom@lysator.liu.se.
# Please mail bug reports to bug-lyskom@lysator.liu.se.
#
#
# $Id: Makefile,v 0.2
1
1992/0
2/26 18:45
:2
3
ceder Exp $
# $Id: Makefile,v 0.2
2
1992/0
3/31 21:51
:2
5
ceder Exp $
include
Topdir.make
include
Topdir.make
SCRIPTDIR
=
$(
TOPDIR
)
/scripts
SCRIPTDIR
=
$(
TOPDIR
)
/scripts
...
@@ -64,13 +64,13 @@ GENOBJS = connections.o log.o $(ATOMS) \
...
@@ -64,13 +64,13 @@ GENOBJS = connections.o log.o $(ATOMS) \
kom-types.o
\
kom-types.o
\
send-async.o server-config.o text-garb.o
\
send-async.o server-config.o text-garb.o
\
missing-ansi.o isc-parse.o memory.o
$(
PROTA
)
$(
MUX
)
\
missing-ansi.o isc-parse.o memory.o
$(
PROTA
)
$(
MUX
)
\
internal-connections.o
internal-connections.o
rfc931.o
GEN_SRCS
=
connections.c log.c
$(
ATOMS_SRCS
)
\
GEN_SRCS
=
connections.c log.c
$(
ATOMS_SRCS
)
\
kom-types.c
\
kom-types.c
\
send-async.c server-config.c text-garb.c
\
send-async.c server-config.c text-garb.c
\
missing-ansi.c isc-parse.c memory.c
$(
PROTA_SRCS
)
$(
MUX_SRCS
)
\
missing-ansi.c isc-parse.c memory.c
$(
PROTA_SRCS
)
$(
MUX_SRCS
)
\
internal-connections.c
internal-connections.c
rfc931.o
# Files for lyskomd.
# Files for lyskomd.
...
...
This diff is collapsed.
Click to expand it.
src/server/rfc931.c
0 → 100644
+
60
−
0
View file @
6f7d77ba
/*
* $Id: rfc931.c,v 1.1 1992/03/31 21:51:30 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
*
* LysKOM is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 1, or (at your option)
* any later version.
*
* LysKOM is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*
* You should have received a copy of the GNU General Public License
* along with LysKOM; see the file COPYING. If not, write to
* Lysator, c/o ISY, Linkoping University, S-581 83 Linkoping, SWEDEN,
* or the Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
* MA 02139, USA.
*
* Please mail bug reports to bug-lyskom@lysator.liu.se.
*/
/*
* This function retrieves the real user that owns the TCP/IP link
* that is connecting via the IscSession "scb". The returned string
* points to static data which is overwritten on the next call.
*
* Link with "-lauthuser".
*/
#include
<stddef.h>
#include
"isc-interface.h"
#include
<m-config.h>
#include
"rfc931.h"
#include
<authuser.h>
#ifdef RFC_931
char
*
get_real_username
(
IscSession
*
scb
)
{
extern
int
auth_fd2
();
extern
char
*
auth_tcpuser2
();
unsigned
long
inlocal
;
unsigned
long
inremote
;
unsigned
short
local
;
unsigned
short
remote
;
if
(
auth_fd2
(
scb
->
fd
,
&
inlocal
,
&
inremote
,
&
local
,
&
remote
)
==
-
1
)
return
NULL
;
return
auth_tcpuser2
(
inlocal
,
inremote
,
local
,
remote
);
}
#endif
This diff is collapsed.
Click to expand it.
src/server/rfc931.h
0 → 100644
+
26
−
0
View file @
6f7d77ba
/*
* $Id: rfc931.h,v 1.1 1992/03/31 21:51:34 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
*
* LysKOM is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 1, or (at your option)
* any later version.
*
* LysKOM is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*
* You should have received a copy of the GNU General Public License
* along with LysKOM; see the file COPYING. If not, write to
* Lysator, c/o ISY, Linkoping University, S-581 83 Linkoping, SWEDEN,
* or the Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
* MA 02139, USA.
*
* Please mail bug reports to bug-lyskom@lysator.liu.se.
*/
char
*
get_real_username
(
IscSession
*
scb
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment