Bug #2811

Smb logon drive ignored during migration

Added by Andrea Marchionni over 5 years ago. Updated about 5 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-final NEEDINFO:No

Description

During migration from NethService/SME Server the prop LogonDrive of the record smb seems to be ignored: the settings are not migrated on new system.

configuration (10.8 KB) Giacomo Sanchietti, 09/03/2014 09:34 AM


Related issues

Related to NethServer 6 - Enhancement #2803: Edit workgroup name when role is Workstation CLOSED

Associated revisions

Revision 177653c6
Added by Davide Principi over 5 years ago

nethserver-samba-migrate-sam: migrate LogonDrive prop. Refs #2811

History

#2 Updated by Davide Principi over 5 years ago

  • Status changed from NEW to TRIAGED
  • % Done changed from 0 to 20

#3 Updated by Davide Principi over 5 years ago

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

On branch b2803 Refs #2803

#4 Updated by Davide Principi over 5 years ago

Added code that migrates LogonDrive prop

#5 Updated by Davide Principi over 5 years ago

#6 Updated by Davide Principi over 5 years ago

  • Subject changed from Smb logon drive ingnored during migration to Smb logon drive ignored during migration

#7 Updated by Davide Principi over 5 years ago

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

Test case

Check the bug is not reproducible on the modified version

#8 Updated by Davide Principi over 5 years ago

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

In nethserver-testing:
nethserver-samba-1.4.5-1.14git5c2b63f.ns6.noarch.rpm

#9 Updated by Giacomo Sanchietti over 5 years ago

  • Assignee set to Giacomo Sanchietti

#10 Updated by Giacomo Sanchietti over 5 years ago

  • File configuration added
  • Status changed from ON_QA to TRIAGED
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 70 to 20

Verification FAILED.

The LogonDrive property is migrated only if the server role is set to PDC.
But inside the template smb.conf, logon drive option is always set regardless of the server role.
So the LogonDrive must always be migrated.

QA note: use the configuration db for testing.

#11 Updated by Giacomo Sanchietti over 5 years ago

  • Status changed from TRIAGED to MODIFIED
  • % Done changed from 20 to 60

#12 Updated by Giacomo Sanchietti over 5 years ago

  • Status changed from MODIFIED to ON_QA
  • Assignee set to Giacomo Sanchietti
  • % Done changed from 60 to 70

#13 Updated by Giacomo Sanchietti over 5 years ago

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

The logon drive is migrated only if original server is set to PDC. See #2832

DB dump:

[root@localhost ~]# db configuration show smb 
smb=service
    AdsLdapAccountsBranch=
    AdsRealm=
    DeadTime=10080
    LogonDrive=X:
    NetbiosAliasList=TEST
    OsLevel=35
    RoamingProfiles=no
    ServerRole=PDC
    Sid=S-1-5-21-15772789-4259746978-2344231576
    TCPPorts=139,445
    UseClientDriver=yes
    UseCups=enabled
    WinsServerIP=
    WinsServerStatus=disabled
    Workgroup=MITEL-NETWORKS
    access=private
    status=enabled

#14 Updated by Giacomo Sanchietti about 5 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100
Package in nethserver-updates:
  • nethserver-samba-1.4.6-1.ns6.noarch.rpm

Also available in: Atom PDF