mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] lxc uid number is limited to 65536 by default
This commit is contained in:
parent
68d6ed911e
commit
240a7d76d8
1 changed files with 2 additions and 1 deletions
|
@ -170,7 +170,8 @@ def user_create(operation_logger, username, firstname, lastname, mail, password,
|
||||||
|
|
||||||
uid_guid_found = False
|
uid_guid_found = False
|
||||||
while not uid_guid_found:
|
while not uid_guid_found:
|
||||||
uid = str(random.randint(200, 99999))
|
# LXC uid number is limited to 65536 by default
|
||||||
|
uid = str(random.randint(200, 65000))
|
||||||
uid_guid_found = uid not in all_uid and uid not in all_gid
|
uid_guid_found = uid not in all_uid and uid not in all_gid
|
||||||
|
|
||||||
# Adapt values for LDAP
|
# Adapt values for LDAP
|
||||||
|
|
Loading…
Add table
Reference in a new issue