Chris@909: /* ssh views */ Chris@909: Chris@909: CREATE OR REPLACE VIEW ssh_users as Chris@909: select login as username, hashed_password as password Chris@909: from users Chris@909: where status = 1; Chris@909: Chris@909: Chris@909: /* nss views */ Chris@909: Chris@909: CREATE OR REPLACE VIEW nss_groups AS Chris@909: select identifier AS name, (id + 5000) AS gid, 'x' AS password Chris@909: from projects; Chris@909: Chris@909: CREATE OR REPLACE VIEW nss_users AS Chris@909: select login AS username, CONCAT_WS(' ', firstname, lastname) as realname, (id + 5000) AS uid, 'x' AS password Chris@909: from users Chris@909: where status = 1; Chris@909: Chris@909: CREATE OR REPLACE VIEW nss_grouplist AS Chris@909: select (members.project_id + 5000) AS gid, users.login AS username Chris@909: from users, members Chris@909: where users.id = members.user_id Chris@909: and users.status = 1;