X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=ud-host;h=0e98182ff46e80c0ee2c923bdb8c42affd47103d;hb=27bf8069a8d4cee2c3b2eecd93f1aac1c1c01bb9;hp=44a9a01b00148d102fa57dd1342aa135bf561010;hpb=890782858c21ebd21476e12af064ca408d77ce6a;p=mirror%2Fuserdir-ldap.git diff --git a/ud-host b/ud-host index 44a9a01..0e98182 100755 --- a/ud-host +++ b/ud-host @@ -57,6 +57,9 @@ AttrInfo = {"description": ["Machine Descr.", 1], "allowedGroups": ["Groups", 17], "exportOptions": ["Export-Opts", 18], "ipHostNumber": ["IP Address", 19], + "mXRecord": ["MXRecord", 20], + "dnsTTL": ["dnsTTL", 21], + "sshdistAuthKeysHost": ["extra authkeys ip", 22], } AttrPrompt = {"description": ["Purpose of the machine"], @@ -78,6 +81,9 @@ AttrPrompt = {"description": ["Purpose of the machine"], "allowedGroups": ["allowed Groups on this host"], "exportOptions": ["additional export options"], "ipHostNumber": ["IP Addresses(es) of the machine"], + "mXRecord": ["Mail Exchanger for this machine"], + "dnsTTL": ["dns TTL value"], + "sshdistAuthKeysHost": ["additional hosts for sshdist's authkeys file"], }; # Create a map of IDs to desc,value,attr @@ -140,7 +146,7 @@ def Overview(Attrs): # Change a single attribute def ChangeAttr(Attrs,Attr): - if (Attr in ["sponsor", "sshRSAHostKey", "purpose", "allowedGroups", "exportOptions", "ipHostNumber"]): + if (Attr in ["sponsor", "sshRSAHostKey", "purpose", "allowedGroups", "exportOptions", "ipHostNumber", "mXRecord", "sshdistAuthKeysHost"]): return MultiChangeAttr(Attrs,Attr); print "Old value: '%s'" % (GetAttr(Attrs,Attr,""));