[evolvis-commits] r18356: fix problem configuring nss and enable allusers/allgroups

mirabilos at evolvis.org mirabilos at evolvis.org
Thu Apr 12 20:40:31 CEST 2012


Author: mirabilos
Date: 2012-04-12 20:40:31 +0200 (Thu, 12 Apr 2012)
New Revision: 18356

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/utils/install-nsspgsql.sh
Log:
fix problem configuring nss and enable allusers/allgroups

Modified: trunk/gforge_base/evolvisforge-5.1/src/utils/install-nsspgsql.sh
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/utils/install-nsspgsql.sh	2012-04-12 18:40:28 UTC (rev 18355)
+++ trunk/gforge_base/evolvisforge-5.1/src/utils/install-nsspgsql.sh	2012-04-12 18:40:31 UTC (rev 18356)
@@ -49,18 +49,18 @@
 #----------------- NSS queries
 getpwnam        = SELECT login AS username,passwd,gecos,('/var/lib/gforge/chroot/home/users/' || login) AS homedir,shell,uid,gid FROM nss_passwd WHERE login = \$1
 getpwuid        = SELECT login AS username,passwd,gecos,('/var/lib/gforge/chroot/home/users/' || login) AS homedir,shell,uid,gid FROM nss_passwd WHERE uid = \$1
-#allusers        = SELECT login AS username,passwd,gecos,('/var/lib/gforge/chroot/home/users/' || login) AS homedir,shell,uid,gid FROM nss_passwd
+allusers        = SELECT login AS username,passwd,gecos,('/var/lib/gforge/chroot/home/users/' || login) AS homedir,shell,uid,gid FROM nss_passwd
 getgroupmembersbygid = SELECT login AS username FROM nss_passwd WHERE gid = \$1
 getgrnam = SELECT name AS groupname,'x',gid,ARRAY(SELECT user_name FROM nss_usergroups WHERE nss_usergroups.gid = nss_groups.gid) AS members FROM nss_groups WHERE name = \$1
 getgrgid = SELECT name AS groupname,'x',gid,ARRAY(SELECT user_name FROM nss_usergroups WHERE nss_usergroups.gid = nss_groups.gid) AS members FROM nss_groups WHERE gid = \$1
-#allgroups = SELECT name AS groupname,'x',gid,ARRAY(SELECT user_name FROM nss_usergroups WHERE nss_usergroups.gid = nss_groups.gid) AS members FROM nss_groups 
+allgroups = SELECT name AS groupname,'x',gid,ARRAY(SELECT user_name FROM nss_usergroups WHERE nss_usergroups.gid = nss_groups.gid) AS members FROM nss_groups 
 groups_dyn = SELECT ug.gid FROM nss_usergroups ug, nss_passwd p WHERE ug.uid = p.uid AND p.login = \$1 AND ug.gid <> \$2
 EOF
     cat > /etc/nss-pgsql-root.conf.gforge-new <<EOF
 ### NSS Configuration for Gforge
 
 #----------------- DB connection
-shadowconnectionstring = user=$sys_dbuser_nss dbname=$db_name
+shadowconnectionstring = user=$db_user_nss dbname=$db_name
 
 #----------------- NSS queries
 shadowbyname    = SELECT login AS shadow_name, passwd AS shadow_passwd, 14087 AS shadow_lstchg, 0 AS shadow_min, 99999 AS shadow_max, 7 AS shadow_warn, '' AS shadow_inact, '' AS shadow_expire, '' AS shadow_flag FROM nss_shadow WHERE login = \$1



More information about the evolvis-commits mailing list