diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-04-01 19:43:59 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-04-01 19:43:59 +0000 |
commit | 4ff8386e3dfee800591e7f856a26ccc700149b02 (patch) | |
tree | 75cd4a45ab9e0298299c821029d6066c29bfbc2b /extra/svn/create_views.sql | |
parent | cb6c8bee473332dfacea8d53745eb75407877a06 (diff) | |
download | redmine-4ff8386e3dfee800591e7f856a26ccc700149b02.tar.gz redmine-4ff8386e3dfee800591e7f856a26ccc700149b02.zip |
Initial commit for svn repository management and access control:
* Identifier attribute added on Project model. Used as the unix group name for the project
* Web services (disabled by default) and scripts for repository management on a remote svn host
git-svn-id: http://redmine.rubyforge.org/svn/trunk@396 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'extra/svn/create_views.sql')
-rw-r--r-- | extra/svn/create_views.sql | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/extra/svn/create_views.sql b/extra/svn/create_views.sql new file mode 100644 index 000000000..ce02e0817 --- /dev/null +++ b/extra/svn/create_views.sql @@ -0,0 +1,24 @@ +/* ssh views */ + +CREATE OR REPLACE VIEW ssh_users as +select login as username, hashed_password as password +from users +where status = 1; + + +/* nss views */ + +CREATE OR REPLACE VIEW nss_groups AS +select identifier AS name, (id + 5000) AS gid, 'x' AS password +from projects; + +CREATE OR REPLACE VIEW nss_users AS +select login AS username, CONCAT_WS(' ', firstname, lastname) as realname, (id + 5000) AS uid, 'x' AS password +from users +where status = 1; + +CREATE OR REPLACE VIEW nss_grouplist AS +select (members.project_id + 5000) AS gid, users.login AS username +from users, members +where users.id = members.user_id +and users.status = 1; |