summaryrefslogtreecommitdiffstats
path: root/users.py
diff options
context:
space:
mode:
authorbfox <bfox>2001-06-22 16:31:15 +0000
committerbfox <bfox>2001-06-22 16:31:15 +0000
commitaf2a741bb5771adfdc3b6e180fd351dfd19ad4f9 (patch)
tree62fc776faa50d25d4710d8e7563c8a551e0ce6b3 /users.py
parent1c53c94bdacab554fc05208e79d89c16c5a032a5 (diff)
downloadanaconda-af2a741bb5771adfdc3b6e180fd351dfd19ad4f9.tar.gz
anaconda-af2a741bb5771adfdc3b6e180fd351dfd19ad4f9.tar.xz
anaconda-af2a741bb5771adfdc3b6e180fd351dfd19ad4f9.zip
add support for Samba authentication
Diffstat (limited to 'users.py')
-rw-r--r--users.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/users.py b/users.py
index e6f1e55ec..5243153b1 100644
--- a/users.py
+++ b/users.py
@@ -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" ]