Skip to content
Snippets Groups Projects
Commit 9696d635 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

* 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
...@@ -48,7 +48,7 @@ CREATE INDEX @PREFIX@groups_idx1 ON @PREFIX@groups (Name); ...@@ -48,7 +48,7 @@ CREATE INDEX @PREFIX@groups_idx1 ON @PREFIX@groups (Name);
/* Group attributes */ /* Group attributes */
CREATE TABLE @PREFIX@group_check_items ( CREATE TABLE @PREFIX@group_attributes (
ID @SERIAL_TYPE@, ID @SERIAL_TYPE@,
Name VARCHAR(255) NOT NULL, Name VARCHAR(255) NOT NULL,
......
...@@ -107,38 +107,32 @@ mod_userdb_test ...@@ -107,38 +107,32 @@ mod_userdb_test
mod_userdb_sql mod_userdb_sql
EOT EOT
# ========================================================================================
[mod_userdb_sql]
sql_password_query=<<EOT sql_password_query=<<EOT
SELECT ID, Password FROM Users WHERE Username = %u SELECT ID, Password FROM users WHERE Username = %u
EOT EOT
sql_failure_query=<<EOT sql_failure_query=<<EOT
INSERT INTO AuthFail (Username) VALUES (%u) INSERT INTO AuthFail (Username) VALUES (%u)
EOT EOT
[authorization]
sql_user_attribute_query=<<EOT sql_user_attribute_query=<<EOT
SELECT Attribute, OP, Value FROM UserAttributes WHERE UserID = ${user.id} SELECT Attribute, Operator, Value FROM user_attributes WHERE UserID = ${user.id}
EOT EOT
sql_group_query=<<EOT sql_group_query=<<EOT
SELECT GroupID FROM UsersToGroups WHERE UserID = ${user.id} SELECT GroupID FROM users_to_groups WHERE UserID = ${user.id}
EOT EOT
sql_group_attribute_query=<<EOT sql_group_attribute_query=<<EOT
SELECT Attribute, OP, Value FROM GroupAttributes WHERE GroupID = ${group.id} SELECT Attribute, Operator, Value FROM group_attributes WHERE GroupID = ${group.id}
EOT EOT
# ========================================================================================
[accounting] [accounting]
plugins=<<EOT plugins=<<EOT
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment