mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] If uid is less than 1001 nsswitch ignore it
This commit is contained in:
parent
4e335e0782
commit
aef3ee1434
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ def user_create(operation_logger, username, firstname, lastname, domain, passwor
|
|||
uid_guid_found = False
|
||||
while not uid_guid_found:
|
||||
# LXC uid number is limited to 65536 by default
|
||||
uid = str(random.randint(1000, 65000))
|
||||
uid = str(random.randint(1001, 65000))
|
||||
uid_guid_found = uid not in all_uid and uid not in all_gid
|
||||
|
||||
# Adapt values for LDAP
|
||||
|
|
Loading…
Add table
Reference in a new issue