There can be only one hostname by the ldap schema, so don't allow multiple
[mirror/userdir-ldap.git] / ud-host
diff --git a/ud-host b/ud-host
index 0fa035a..442de6d 100755 (executable)
--- 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,""));