mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[fix] sneaky remaining yldap
This commit is contained in:
parent
980e3d5f11
commit
dc97ee6d33
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ def user_create(auth, username, firstname, lastname, mail, password):
|
|||
}
|
||||
|
||||
# If it is the first user, add some aliases
|
||||
if not yldap.search(base='ou=users,dc=yunohost,dc=org', filter='uid=*'):
|
||||
if not auth.search(base='ou=users,dc=yunohost,dc=org', filter='uid=*'):
|
||||
with open('/etc/yunohost/current_host') as f:
|
||||
main_domain = f.readline().rstrip()
|
||||
aliases = [
|
||||
|
|
Loading…
Reference in a new issue