Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
smradius
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
shail
smradius
Commits
9696d635
Commit
9696d635
authored
16 years ago
by
Nigel Kukard
Browse files
Options
Downloads
Patches
Plain Diff
* Fixed typo in database tsql file
* Added template queries to the smradiusd.conf file
parent
2c329da1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
database/core.tsql
+1
-1
1 addition, 1 deletion
database/core.tsql
smradiusd.conf
+7
-13
7 additions, 13 deletions
smradiusd.conf
with
8 additions
and
14 deletions
database/core.tsql
+
1
−
1
View file @
9696d635
...
...
@@ -48,7 +48,7 @@ CREATE INDEX @PREFIX@groups_idx1 ON @PREFIX@groups (Name);
/* Group attributes */
CREATE TABLE @PREFIX@group_
check_i
te
m
s (
CREATE TABLE @PREFIX@group_
attribu
tes (
ID @SERIAL_TYPE@,
Name VARCHAR(255) NOT NULL,
...
...
This diff is collapsed.
Click to expand it.
smradiusd.conf
+
7
−
13
View file @
9696d635
...
...
@@ -107,38 +107,32 @@ mod_userdb_test
mod_userdb_sql
EOT
# ========================================================================================
[
mod_userdb_sql
]
sql_password_query
=<<
EOT
SELECT
ID
,
Password
FROM
U
sers
WHERE
Username
= %
u
SELECT
ID
,
Password
FROM
u
sers
WHERE
Username
= %
u
EOT
sql_failure_query
=<<
EOT
INSERT
INTO
AuthFail
(
Username
)
VALUES
(%
u
)
EOT
[
authorization
]
sql_user_attribute_query
=<<
EOT
SELECT
Attribute
,
O
P
,
Value
FROM
U
ser
A
ttributes
WHERE
UserID
= ${
user
.
id
}
SELECT
Attribute
,
O
perator
,
Value
FROM
u
ser
_a
ttributes
WHERE
UserID
= ${
user
.
id
}
EOT
sql_group_query
=<<
EOT
SELECT
GroupID
FROM
U
sers
ToG
roups
WHERE
UserID
= ${
user
.
id
}
SELECT
GroupID
FROM
u
sers
_to_g
roups
WHERE
UserID
= ${
user
.
id
}
EOT
sql_group_attribute_query
=<<
EOT
SELECT
Attribute
,
O
P
,
Value
FROM
G
roup
A
ttributes
WHERE
GroupID
= ${
group
.
id
}
SELECT
Attribute
,
O
perator
,
Value
FROM
g
roup
_a
ttributes
WHERE
GroupID
= ${
group
.
id
}
EOT
# ========================================================================================
[
accounting
]
plugins
=<<
EOT
...
...
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