From: rmurray <> Date: Thu, 13 Oct 2005 03:26:41 +0000 (+0000) Subject: There can be only one hostname by the ldap schema, so don't allow multiple X-Git-Tag: userdir-ldap-0.3.11~3 X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=commitdiff_plain;h=17c89ab2ed7eb1dabe70906e87c13667e7e0ae45 There can be only one hostname by the ldap schema, so don't allow multiple hostnames to be added. --- diff --git a/ud-host b/ud-host index 0fa035a..442de6d 100755 --- a/ud-host +++ b/ud-host @@ -129,7 +129,7 @@ def Overview(Attrs): # Change a single attribute def ChangeAttr(Attrs,Attr): - if (Attr == "sponsor" or Attr == "hostname" or Attr == "sshRSAHostKey"): + if (Attr == "sponsor" or Attr == "sshRSAHostKey"): return MultiChangeAttr(Attrs,Attr); print "Old value: '%s'" % (GetAttr(Attrs,Attr,""));