|
|
|
@ -85,18 +85,18 @@ class Application(EventHandler): |
|
|
|
return True |
|
|
|
|
|
|
|
def usage(): |
|
|
|
print "Usage: " + sys.argv[0] + " -[HDbhpk] bindip bindport\n" |
|
|
|
print "Create a tree representation of all DNs starting with a given base DN." |
|
|
|
print "Only simple binds to the directory with DN and password are supported." |
|
|
|
print "If no password OPTION is given the password will be asked interactive." |
|
|
|
print "If no outfile the given the result will be written to stdout.\n" |
|
|
|
print "Required OPTIONS are:\n" |
|
|
|
print "Usage: " + sys.argv[0] + " ARGUMENT... [OPTIONS]... bindip bindport\n" |
|
|
|
print "Start a webserver on the given bindip and bindport. On the page a" |
|
|
|
print "tree representation of all DNs starting with a given base DN is" |
|
|
|
print "visualized." |
|
|
|
print "Only simple binds to the directory with DN and password are supported.\n" |
|
|
|
print "ARGUMENTS:\n" |
|
|
|
print " {:30s} : {:s}".format('-H, --hosturi=URI', 'The URI to the ldap server to query in the form:') |
|
|
|
print " {:30s} {:s}".format('', 'ldap[s]://host.uri[:port]') |
|
|
|
print " {:30s} : {:s}".format('-D, --binddn=DN', 'The DN to use for the LDAP bind.') |
|
|
|
print " {:30s} : {:s}".format('-p, --password=PASSWORD', 'The password to use for the LDAP bind.') |
|
|
|
print " {:30s} : {:s}\n".format('-b, --basedn=DN', 'The DN to start the tree with.') |
|
|
|
print "Optional OPTIONS are:\n" |
|
|
|
print "OPTIONS:\n" |
|
|
|
print " {:30s} : {:s}".format('-h, --help', 'Show this help page') |
|
|
|
|
|
|
|
def main(): |
|
|
|
|