remove pamaccess, not quite the behavior we're looking for

This commit is contained in:
Michael McGrath 2008-03-03 16:18:42 -06:00
parent 7b5dc597e8
commit 160db309aa

View file

@ -125,10 +125,8 @@ class MakeShellAccounts(BaseClient):
i = 0
file = open(self.temp + '/passwd.txt', 'w')
if not self.people:
people = self.people_list()
local_groups = config.get('host', 'groups')
for group in local_groups.split(','):
for person in people:
self.people = self.people_list()
for person in self.people:
uid = person['id']
username = person['username']
human_name = person['human_name']
@ -140,6 +138,7 @@ class MakeShellAccounts(BaseClient):
i = i + 1
file.close()
def groups_text(self, groups=None, people=None):
i = 0
file = open(self.temp + '/group.txt', 'w')
@ -237,7 +236,7 @@ def enable():
except IOError, e:
print "ERROR: Could not write /etc/sysconfig/authconfig - %s" % e
sys.exit(5)
os.system('/usr/sbin/authconfig --enablepamaccess --updateall')
os.system('/usr/sbin/authconfig --updateall')
rmtree(temp)
def disable():
@ -256,7 +255,7 @@ def disable():
except IOError, e:
print "ERROR: Could not write /etc/sysconfig/authconfig - %s" % e
sys.exit(5)
os.system('/usr/sbin/authconfig --disablepamaccess --updateall')
os.system('/usr/sbin/authconfig --updateall')
rmtree(temp)