Error while trying to do ssh stuff

This is de error I recieve when I try to list keys:

admin@Yroklaus:~ $ sudo yunohost user ssh list-keys admin
Mot de passe d'administration : 
Traceback (most recent call last):
  File "/usr/bin/yunohost", line 219, in <module>
    timeout=opts.timeout,
  File "/usr/lib/python2.7/dist-packages/moulinette/__init__.py", line 136, in cli
    moulinette.run(args, output_as=output_as, password=password, timeout=timeout)
  File "/usr/lib/python2.7/dist-packages/moulinette/interfaces/cli.py", line 390, in run
    ret = self.actionsmap.process(args, timeout=timeout)
  File "/usr/lib/python2.7/dist-packages/moulinette/actionsmap.py", line 498, in process
    return func(**arguments)
  File "/usr/lib/moulinette/yunohost/user.py", line 459, in user_ssh_list_keys
    return yunohost.ssh.user_ssh_list_keys(auth, username)
  File "/usr/lib/moulinette/yunohost/ssh.py", line 59, in user_ssh_list_keys
    authorized_keys_file = os.path.join(user["homeDirectory"][0], ".ssh", "authorized_keys")
KeyError: 'homeDirectory'

And this when I try to allow a user to ssh:

admin@Yroklaus:~ $ sudo yunohost user ssh allow admin
Mot de passe d'administration : 
Erreur : Une erreur est survenue lors de l'opération LDAP