summaryrefslogtreecommitdiffstats
path: root/installclass.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2005-08-29 20:49:55 +0000
committerChris Lumens <clumens@redhat.com>2005-08-29 20:49:55 +0000
commit4c7abe447d798b9191fc7446687206fb189e680e (patch)
tree6187ad4fa17bdb9ad75d1b7af2355e0ac98f6ba6 /installclass.py
parent19dd52d5196dc1185c9a621e8e68769b78e1dfbe (diff)
downloadanaconda-4c7abe447d798b9191fc7446687206fb189e680e.tar.gz
anaconda-4c7abe447d798b9191fc7446687206fb189e680e.tar.xz
anaconda-4c7abe447d798b9191fc7446687206fb189e680e.zip
Simplified the authconfig step to store data as a string to be passed to
authconfig in its entirety, rather than handling it as a series of arguments we need to process. We weren't really doing anything with it anyway.
Diffstat (limited to 'installclass.py')
-rw-r--r--installclass.py43
1 files changed, 3 insertions, 40 deletions
diff --git a/installclass.py b/installclass.py
index a84a8a1f6..9bc5ad31a 100644
--- a/installclass.py
+++ b/installclass.py
@@ -277,45 +277,8 @@ class BaseInstallClass:
def setRootPassword(self, id, pw, isCrypted = 0):
id.rootPassword.set(pw, isCrypted)
- def setAuthentication(self, id, useShadow, useMd5,
- useNIS = 0, nisDomain = "", nisBroadcast = 0,
- nisServer = "",
- useLdap = 0, useLdapauth = 0, ldapServer = "",
- ldapBasedn = "", useldapTls = 0,
- useKrb5 = 0, krb5Realm = "", krb5Kdc = "",
- krb5Admin = "",
- useHesiod = 0, hesiodLhs = "", hesiodRhs = "",
- useSamba = 0, sambaServer= "", sambaWorkgroup = "",
- enableCache = 0):
-
- id.auth.useShadow = useShadow
- id.auth.useMD5 = useMd5
-
- id.auth.useNIS = useNIS
- id.auth.nisDomain = nisDomain
- id.auth.nisuseBroadcast = nisBroadcast
- id.auth.nisServer = nisServer
-
- id.auth.useLdap = useLdap
- id.auth.useLdapauth = useLdapauth
- id.auth.ldapServer = ldapServer
- id.auth.ldapBasedn = ldapBasedn
- id.auth.ldapTLS = useldapTls
-
- id.auth.useKrb5 = useKrb5
- id.auth.krb5Realm = krb5Realm
- id.auth.krb5Kdc = krb5Kdc
- id.auth.krb5Admin = krb5Admin
-
- id.auth.useHesiod = useHesiod
- id.auth.hesiodLhs = hesiodLhs
- id.auth.hesiodRhs = hesiodRhs
-
- id.auth.useSamba = useSamba
- id.auth.sambaServer = sambaServer
- id.auth.sambaWorkgroup = sambaWorkgroup
-
- id.auth.enableCache = enableCache
+ def setAuthentication(self, id, authStr):
+ id.auth = authStr
def setNetwork(self, id, bootProto, ip, netmask, ethtool, device = None, onboot = 1, dhcpclass = None, essid = None, wepkey = None):
if bootProto:
@@ -522,7 +485,7 @@ class BaseInstallClass:
partitions.autoClearPartType = clear
partitions.autoClearPartDrives = []
partitions.autoPartitionRequests = autoCreateLVMPartitionRequests(autorequests)
-
+
def setInstallData(self, id, intf = None):
id.reset()