remove pamaccess, not quite the behavior we're looking for
This commit is contained in:
parent
7b5dc597e8
commit
160db309aa
1 changed files with 15 additions and 16 deletions
|
@ -125,10 +125,8 @@ class MakeShellAccounts(BaseClient):
|
||||||
i = 0
|
i = 0
|
||||||
file = open(self.temp + '/passwd.txt', 'w')
|
file = open(self.temp + '/passwd.txt', 'w')
|
||||||
if not self.people:
|
if not self.people:
|
||||||
people = self.people_list()
|
self.people = self.people_list()
|
||||||
local_groups = config.get('host', 'groups')
|
for person in self.people:
|
||||||
for group in local_groups.split(','):
|
|
||||||
for person in people:
|
|
||||||
uid = person['id']
|
uid = person['id']
|
||||||
username = person['username']
|
username = person['username']
|
||||||
human_name = person['human_name']
|
human_name = person['human_name']
|
||||||
|
@ -140,6 +138,7 @@ class MakeShellAccounts(BaseClient):
|
||||||
i = i + 1
|
i = i + 1
|
||||||
file.close()
|
file.close()
|
||||||
|
|
||||||
|
|
||||||
def groups_text(self, groups=None, people=None):
|
def groups_text(self, groups=None, people=None):
|
||||||
i = 0
|
i = 0
|
||||||
file = open(self.temp + '/group.txt', 'w')
|
file = open(self.temp + '/group.txt', 'w')
|
||||||
|
@ -237,7 +236,7 @@ def enable():
|
||||||
except IOError, e:
|
except IOError, e:
|
||||||
print "ERROR: Could not write /etc/sysconfig/authconfig - %s" % e
|
print "ERROR: Could not write /etc/sysconfig/authconfig - %s" % e
|
||||||
sys.exit(5)
|
sys.exit(5)
|
||||||
os.system('/usr/sbin/authconfig --enablepamaccess --updateall')
|
os.system('/usr/sbin/authconfig --updateall')
|
||||||
rmtree(temp)
|
rmtree(temp)
|
||||||
|
|
||||||
def disable():
|
def disable():
|
||||||
|
@ -256,7 +255,7 @@ def disable():
|
||||||
except IOError, e:
|
except IOError, e:
|
||||||
print "ERROR: Could not write /etc/sysconfig/authconfig - %s" % e
|
print "ERROR: Could not write /etc/sysconfig/authconfig - %s" % e
|
||||||
sys.exit(5)
|
sys.exit(5)
|
||||||
os.system('/usr/sbin/authconfig --disablepamaccess --updateall')
|
os.system('/usr/sbin/authconfig --updateall')
|
||||||
rmtree(temp)
|
rmtree(temp)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue