diff --git a/parse_args b/parse_args index 6feebbb8..acbd42c8 100755 --- a/parse_args +++ b/parse_args @@ -564,7 +564,13 @@ action_map = { ############################# 'tools' : { 'category_help' : _("Specific tools"), - 'actions' : {} + 'actions' : { + ### tools_install() + 'install' : { + 'action_help' : _("Install YunoHost LDAP initialization"), + 'connections' : ['ldap'], + }, + } }, } @@ -642,7 +648,8 @@ def main(action_map): else: result = args.func(vars(args)) except TypeError, error: - print error + if not __debug__ : + traceback.print_exc() print(_("Not (yet) implemented function")) return 1 except YunoHostError, error: diff --git a/yunohost.py b/yunohost.py index 90a9c12b..cf5bc928 100644 --- a/yunohost.py +++ b/yunohost.py @@ -214,7 +214,7 @@ class YunoHostLDAP: """ self.conn = ldap.initialize('ldap://localhost:389') - self.base = 'dc=gavoty,dc=org' + self.base = 'dc=yunohost,dc=org' self.pwd = getpass.getpass(colorize(_('LDAP Admin Password: '), 'yellow')) try: self.conn.simple_bind_s('cn=admin,' + self.base, self.pwd)