diff options
author | Mike Fulbright <msf@redhat.com> | 2000-06-05 23:37:03 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2000-06-05 23:37:03 +0000 |
commit | 418dbe17fbdba2a5f49d3ba92873163d29f641d4 (patch) | |
tree | 1f1b59c96b2cb58be1602b0ed737a7a9cbd47998 /kickstart.py | |
parent | 3b90ab8ee11c4521cd915b8913dc6e08923671d1 (diff) | |
download | anaconda-418dbe17fbdba2a5f49d3ba92873163d29f641d4.tar.gz anaconda-418dbe17fbdba2a5f49d3ba92873163d29f641d4.tar.xz anaconda-418dbe17fbdba2a5f49d3ba92873163d29f641d4.zip |
ldap and kerberos changes
Diffstat (limited to 'kickstart.py')
-rw-r--r-- | kickstart.py | 56 |
1 files changed, 51 insertions, 5 deletions
diff --git a/kickstart.py b/kickstart.py index ce2ab7451..58327c8f8 100644 --- a/kickstart.py +++ b/kickstart.py @@ -63,15 +63,35 @@ class KickstartBase(BaseInstallClass): def doAuthconfig(self, args): (args, extra) = isys.getopt(args, '', - [ 'enablenis', 'nisdomain=', 'nisserver=', 'useshadow', - 'enablemd5' ]) + [ 'useshadow', + 'enablemd5', + 'enablenis', 'nisdomain=', 'nisserver=', + 'enableldap', 'enableldapauth', 'ldapserver=', 'ldapbasedn=', + 'enablekrb5', 'krb5realm=', 'krb5kdc=', 'krb5adminserver=', + 'enablehesiod', 'hesiodlhs=', 'hesiodrhs=' ]) - useNis = 0 useShadow = 0 + useMd5 = 0 + + useNis = 0 nisServer = None nisDomain = None nisBroadcast = 0 + + useLdap = 0 + useLdapauth = 0 + ldapServer = None + ldapBasedn = None + + useKrb5 = 0 + krb5Realm = None + krb5Kdc = None + krb5Admin = None + + useHesiod = 0 + hesiodDlhs = None + hesiodRhs = None for n in args: (str, arg) = n @@ -85,11 +105,37 @@ class KickstartBase(BaseInstallClass): nisServer = arg elif (str == '--nisdomain'): nisDomain = arg + elif (str == '--enableldap'): + useLdap = 1 + elif (str == '--enableldapauth'): + useLdapauth = 1 + elif (str == '--ldapserver'): + ldapSever = arg + elif (str == '--ldapbasedn'): + ldapBasedn = arg + elif (str == '--enablekrb5'): + useKrb5 = 1 + elif (str == '--krb5realm'): + krb5Realm = arg + elif (str == '--krb5kdc'): + krb5Kdc = arg + elif (str == '--krb5adminserver'): + krb5Admin = arg + elif (str == '--enablehesdiod'): + useHesiod = 1 + elif (str == '--hesiodlhs'): + hesiodLhs = arg + elif (str == '--hesiodrhs'): + hesiodRhs = arg if useNis and not nisServer: nisBroadcast = 1 - self.setAuthentication(useShadow, useMd5, useNis, nisDomain, - nisBroadcast, nisServer) + self.setAuthentication(useShadow, useMd5, + useNis, nisDomain, nisBroadcast, nisServer, + useLdap, useLdapauth, ldapServer, ldapBasedn, + useKrb5, krb5Realm, krb5Kdc, krb5Admin, + useHesiod, hesiodlhs, hesiodrhs ) + self.addToSkipList("authentication") def doLilo (self, args): |