diff options
author | bfox <bfox> | 2001-06-22 16:31:15 +0000 |
---|---|---|
committer | bfox <bfox> | 2001-06-22 16:31:15 +0000 |
commit | af2a741bb5771adfdc3b6e180fd351dfd19ad4f9 (patch) | |
tree | 62fc776faa50d25d4710d8e7563c8a551e0ce6b3 /users.py | |
parent | 1c53c94bdacab554fc05208e79d89c16c5a032a5 (diff) | |
download | anaconda-af2a741bb5771adfdc3b6e180fd351dfd19ad4f9.tar.gz anaconda-af2a741bb5771adfdc3b6e180fd351dfd19ad4f9.tar.xz anaconda-af2a741bb5771adfdc3b6e180fd351dfd19ad4f9.zip |
add support for Samba authentication
Diffstat (limited to 'users.py')
-rw-r--r-- | users.py | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -131,6 +131,10 @@ class Authentication: self.hesiodLhs = "" self.hesiodRhs = "" + self.useSamba = 0 + self.sambaServer = "" + self.sambaWorkgroup = "" + def writeKS(self, f): f.write("authconfig") for arg in self.getArgList(): @@ -200,8 +204,16 @@ class Authentication: else: args.append ("--disablehesiod") - return args + if self.useSamba: + args.append ("--enablesmbauth") + args.append ("--smbservers") + args.append (self.sambaServer) + args.append ("--smbworkgroup") + args.append (self.sambaWorkgroup) + else: + args.append ("--disablesamba") + return args def write (self, instPath): args = [ "/usr/sbin/authconfig", "--kickstart", "--nostart" ] |