annotate .svn/pristine/67/67aa4777ed1332a8a87bb44f4455573440b70d60.svn-base @ 1628:9c5f8e24dadc live tip

Quieten this cron script
author Chris Cannam
date Tue, 25 Aug 2020 11:38:49 +0100
parents cbb26bc654de
children
rev   line source
Chris@909 1 /* ssh views */
Chris@909 2
Chris@909 3 CREATE OR REPLACE VIEW ssh_users as
Chris@909 4 select login as username, hashed_password as password
Chris@909 5 from users
Chris@909 6 where status = 1;
Chris@909 7
Chris@909 8
Chris@909 9 /* nss views */
Chris@909 10
Chris@909 11 CREATE OR REPLACE VIEW nss_groups AS
Chris@909 12 select identifier AS name, (id + 5000) AS gid, 'x' AS password
Chris@909 13 from projects;
Chris@909 14
Chris@909 15 CREATE OR REPLACE VIEW nss_users AS
Chris@909 16 select login AS username, CONCAT_WS(' ', firstname, lastname) as realname, (id + 5000) AS uid, 'x' AS password
Chris@909 17 from users
Chris@909 18 where status = 1;
Chris@909 19
Chris@909 20 CREATE OR REPLACE VIEW nss_grouplist AS
Chris@909 21 select (members.project_id + 5000) AS gid, users.login AS username
Chris@909 22 from users, members
Chris@909 23 where users.id = members.user_id
Chris@909 24 and users.status = 1;