From a025eff465feb1c992bc8e3d0084a3631a81ecd9 Mon Sep 17 00:00:00 2001 From: joey <> Date: Tue, 2 Nov 2004 19:05:53 +0000 Subject: [PATCH] Import from samosa: Another question for hostname? And the other debianServer attribute --- ud-host | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ud-host b/ud-host index 0754add..2e72b7b 100755 --- a/ud-host +++ b/ud-host @@ -243,9 +243,13 @@ while(1): if len(NAttrs) != 0: print "Host",NewHost,"already exists."; continue; + NewHostName = raw_input("Hostname? "); + if NewHost == "": + continue; Dn = "host=" + NewHost + "," + HBaseDn; l.add_s(Dn,[("host",NewHost), - ("objectclass","top")]); + ("hostname", NewHostName), + ("objectClass", ("top", "debianServer"))]); # Switch NAttrs = l.search_s(HBaseDn,ldap.SCOPE_ONELEVEL,"host=" + NewHost); -- 2.20.1