- use first free uid in range for system user accounts
- new function for getting the first free uid in a range in getenttools git-svn-id: file:///home/www/usr01/svn/gnuviechadmin/gnuviech.info/gnuviechadmin/trunk@237 a67ec6bc-e5d5-0310-a910-815c51eb3124
This commit is contained in:
parent
d5ace903bf
commit
aaa23c9c5f
2 changed files with 14 additions and 5 deletions
|
@ -74,11 +74,8 @@ class SysuserEntity(BackendEntity):
|
|||
return config.get('sysuser', 'shellno')
|
||||
|
||||
def _get_next_sysuid(self):
|
||||
uid = int(config.get('sysuser', 'minuid'))
|
||||
muid = getenttools.get_max_uid(int(config.get('sysuser', 'maxuid')))
|
||||
if muid >= uid:
|
||||
uid = muid + 1
|
||||
return uid
|
||||
return getenttools.get_next_uid(int(config.get('sysuser', 'minuid')),
|
||||
int(config.get('sysuser', 'maxuid')))
|
||||
|
||||
def _populate_home(self):
|
||||
templatedir = get_template_dir(config.get('sysuser', 'hometemplate'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue