X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=ud-host;h=e16e31a115798cfb226a4ff0abdaa3fcd7c5c3d0;hb=9c46f82fc6e9dc4f6966dafcf2cca92d5f01ec80;hp=d0fe689fec99e64234ddacc17663c4c998004666;hpb=05ba896561b5f56fd9dbbadddfcc666a16cee8b8;p=mirror%2Fuserdir-ldap.git diff --git a/ud-host b/ud-host index d0fe689..e16e31a 100755 --- a/ud-host +++ b/ud-host @@ -211,6 +211,7 @@ while(1): if RootMode == 1: print " a) Arbitary Change"; print " n) New Host"; + print " d) Delete Host"; print " u) Switch Hosts"; print " x) Exit"; @@ -265,6 +266,14 @@ while(1): ChangeAttr(Attrs[0],Attr); continue; + if (Response == 'd'): + Really = raw_input("Really (type yes)? "); + if Really != 'yes': + continue; + print "Deleting",HostDn; + l.delete_s(HostDn); + continue; + # Convert the integer response try: ID = int(Response);