Skip to content

Commit

Permalink
Align Oracle group membership with other DB schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
ndptech committed Nov 19, 2024
1 parent 0ca8257 commit c45132d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion raddb/mods-config/sql/main/oracle/queries.conf
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ authorize_group_reply_query = "\
group_membership_query = "\
SELECT GroupName \
FROM ${usergroup_table} \
WHERE UserName='%{SQL-User-Name}'"
WHERE UserName='%{SQL-User-Name}' \
ORDER BY Priority"

#######################################################################
# Accounting and Post-Auth Queries
Expand Down
6 changes: 4 additions & 2 deletions raddb/mods-config/sql/main/oracle/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,11 @@ CREATE OR REPLACE TRIGGER radreply_serialnumber
--
CREATE TABLE radusergroup (
id INT PRIMARY KEY,
UserName VARCHAR(30) UNIQUE NOT NULL,
GroupName VARCHAR(30)
UserName VARCHAR(30) NOT NULL,
GroupName VARCHAR(30),
Priority INT
);
CREATE INDEX radusergroup_idx1 ON radusergroup(UserName);
CREATE SEQUENCE radusergroup_seq START WITH 1 INCREMENT BY 1;

--
Expand Down

0 comments on commit c45132d

Please sign in to comment.