Bug #2976

Samba: error "GROUP is a Domain, not a group"

Added by Davide Principi over 6 years ago. Updated over 6 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-samba
Target version:v6.5
Security class: Resolution:
Affected version:v6.5 NEEDINFO:No

Description

Steps to reproduce:
  • Create a group named after the samba Domain

This bug seems to be the continuation of #2951

Acknowledgements
  • Michele Bortolotto

Related issues

Related to NethServer 6 - Bug #2951: Samba: error "USER is a Domain, not a user" CLOSED
Duplicated by NethServer 6 - Bug #2944: User-create event fails if user name is "service" CLOSED

Associated revisions

Revision 8fa9e1a1
Added by Davide Principi over 6 years ago

Fixed net sam prefix logic. Refs #2976

The prefix to "net sam" account names depends on the server role. If
role is PDC it is derived from the "workgroup" parameter. Otherwise
it's the machine name. The NethServer::Samba Perl module retrieves it
from secrets.tdb using net getdomainsid and net getlocalsid commands.

History

#1 Updated by Davide Principi over 6 years ago

  • Related to Bug #2951: Samba: error "USER is a Domain, not a user" added

#2 Updated by Davide Principi over 6 years ago

  • Description updated (diff)

#3 Updated by Davide Principi over 6 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Davide Principi
  • % Done changed from 20 to 30

#4 Updated by Davide Principi over 6 years ago

  • Status changed from ON_DEV to MODIFIED
  • Assignee deleted (Davide Principi)
  • % Done changed from 30 to 60

Test case

For each role
  • ws
  • pdc
  • ads (should be the same as ws)
Check the following events:
  • user-create
  • user-modify
  • user-lock
  • user-unlock
  • group-create
  • group-modify
  • password-modify (maybe related to #2968?)
  • profile-modify

#5 Updated by Davide Principi over 6 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70

In nethserver-testing (6.5):
nethserver-samba-1.4.8-1.1git8fa9e1a.ns6.noarch.rpm

#6 Updated by Giacomo Sanchietti over 6 years ago

  • Assignee set to Giacomo Sanchietti

#7 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 70 to 90

Test 1

  • Mode: ws
  • Host name: test
  • Domain name: TEST
  • User and group: TEST
    Dec 11 13:18:51 test esmith::event[3842]: Event: user-create SUCCESS
    
    Dec 11 13:19:09 test esmith::event[3882]: Event: user-modify SUCCESS
    
    Dec 11 13:19:39 test esmith::event[3910]: Event: password-modify SUCCESS
    
    Dec 11 13:20:01 test esmith::event[3932]: Event: user-lock SUCCESS
    
    Dec 11 13:20:14 test esmith::event[3947]: Event: user-unlock SUCCESS
    
    Dec 11 13:20:58 test esmith::event[3999]: Event: group-create SUCCESS
    
    Dec 11 13:21:48 test esmith::event[4028]: Event: group-modify SUCCESS
    
    Dec 11 13:22:47 test esmith::event[4095]: Event: profile-modify SUCCESS
    

Groups and users correctly created with machine name TEST/<name>.
Tested also with hostname test2, groups and users correctly created with machine name TEST2/<name>.

Test case 2 e 3
  • Mode: ws e ads
  • Host name: test2
  • Domain name: TEST
  • User and group: TEST
Dec 11 13:38:57 test2 esmith::event[6477]: Event: group-create SUCCESS

Dec 11 13:38:03 test2 esmith::event[6418]: Event: group-modify SUCCESS

Dec 11 13:44:00 test2 esmith::event[6506]: Event: profile-modify SUCCESS

Dec 11 13:44:30 test2 esmith::event[6594]: Event: user-create SUCCESS

Dec 11 13:45:44 test2 esmith::event[6634]: Event: user-modify SUCCESS

Dec 11 13:47:29 test2 esmith::event[6684]: Event: user-lock SUCCESS

Dec 11 13:47:51 test2 esmith::event[6699]: Event: user-unlock SUCCESS


Groups and users correctly created with workgroup TEST/<name>.

#8 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100
Released in nethserver-testing:
  • nethserver-samba-1.4.9-1.ns6.noarch.rpm

#9 Updated by Davide Principi over 6 years ago

  • Duplicated by Bug #2944: User-create event fails if user name is "service" added

Also available in: Atom PDF