Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lyskom-server-ceder-1616-generations-topgit
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
058963d4
Commit
058963d4
authored
Feb 27, 1994
by
Per Cederqvist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(ident_param): New function.
(parameters): Added Ident-authentcation.
parent
525e1b4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
2 deletions
+34
-2
src/server/server-config.c
src/server/server-config.c
+34
-2
No files found.
src/server/server-config.c
View file @
058963d4
/*
* $Id: server-config.c,v 0.2
4 1994/02/19 04:15:16
ceder Exp $
* $Id: server-config.c,v 0.2
5 1994/02/27 15:49:15
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -30,7 +30,7 @@
*
*/
static
char
*
rcsid
=
"$Id: server-config.c,v 0.2
4 1994/02/19 04:15:16
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: server-config.c,v 0.2
5 1994/02/27 15:49:15
ceder Exp $"
;
#include "rcs.h"
USE
(
rcsid
);
...
...
@@ -54,6 +54,7 @@ USE(rcsid);
static
Success
log_param
(
const
char
*
val
,
const
struct
parameter
*
par
);
static
Success
jubel
(
const
char
*
val
,
const
struct
parameter
*
par
);
static
Success
ident_param
(
const
char
*
val
,
const
struct
parameter
*
par
);
/* Default value for DEFAULT_DBASE_DIR. Since this is used in two
places in this file, use a define. */
...
...
@@ -184,6 +185,8 @@ static const struct parameter parameters[] = {
/* Register a forbidden text number. */
{
"Jubel"
,
jubel
,
0
,
-
1
,
NULL
,
NULL
},
{
"Ident-authentication"
,
ident_param
,
0
,
1
,
"try"
,
&
param
.
authentication_level
},
/* end marker */
{
NULL
,
NULL
,
0
,
0
,
NULL
,
NULL
}};
...
...
@@ -250,6 +253,35 @@ jubel(const char *val, const struct parameter *par)
return
OK
;
}
static
Success
ident_param
(
const
char
*
val
,
const
struct
parameter
*
par
)
{
if
(
val
==
NULL
)
restart_kom
(
"ident_param(): val == NULL
\n
"
);
if
(
!
strcmp
(
val
,
"off"
)
||
!
strcmp
(
val
,
"never"
))
{
*
(
int
*
)
par
->
value
=
0
;
}
else
if
(
!
strcmp
(
val
,
"on"
)
||
!
strcmp
(
val
,
"try"
))
{
*
(
int
*
)
par
->
value
=
1
;
}
else
if
(
!
strcmp
(
val
,
"require"
)
||
!
strcmp
(
val
,
"required"
))
{
*
(
int
*
)
par
->
value
=
2
;
}
else
{
log
(
"%s expects
\"
never
\"
,
\"
try
\"
or
\"
required
\"
as argument
\n
"
,
par
->
name
);
return
FAILURE
;
}
return
OK
;
}
void
read_configuration
(
const
char
*
conf_file
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment