Bug #1915

Home folder of first domain user belong to a computer

Added by Anonymous almost 2 years ago. Updated almost 2 years ago.

Status:Closed Start date:10/30/2012
Priority:Normal Due date:
Assignee:Jean-Philippe Braun % Done:

100%

Category:module-base
Target version:MMC-CORE 3.1.0
Difficulty:
Duration:

Description

MMC Agent: 3.0.5.1
mmc modules: mmc-base & mmc-samba

After a fresh semi-manual install on Unbutu with Debian packages:

1 - join a machine to the domain (this use the /usr/lib/mmc/add_machine_script script)
2 - create a "Domain User" user from the web interface

This create successufily the /home/user directory with the correct "Domain User" group
but the owner of the directory his the previously joined machine$

3 - create a new user

This time the owner and group are correct.

ls -l /home result:

drwx------ 2 computer$      Domain Users   4096 oct.  25 13:26 fisrtuser
drwx------ 2 seconduser     Domain Users   4096 oct.  25 13:29 seconduser

The probelem probably hapen near:
/core/agent/mmc/plugins/base/__init__.py line 938 -> # creating home directory


Subtasks

Bug #1920: Bug #1915 follow-upClosedJean-Philippe Braun

Associated revisions

Revision c947864c
Added by Jean-Philippe Braun almost 2 years ago

base: new freeUID method

Returns the first free uid for posixAccounts starting from uidStart

Search from baseDN for all existing posixAccounts to avoid clashes
between Users and Computers.

Fixes #1920
Fixes #1915

History

Updated by Jean-Philippe Braun almost 2 years ago

  • Target version changed from MMC-CORE 4.0 to MMC-CORE 3.1.0

Updated by Jean-Philippe Braun almost 2 years ago

  • Status changed from New to Closed

Also available in: Atom PDF