Changeset 706


Ignore:
Timestamp:
Jul 9, 2012, 11:30:49 AM (13 years ago)
Author:
Herwig Bauernfeind
Message:

usermod 2.3.5, groupmod 2.2.3: Fix: Also convert old *nix machine accounts to upper case

Location:
branches/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/scripts/group/groupmod.cmd

    r705 r706  
    11/* GroupMod script for Samba Server for eCS (OS/2) */
    2    Version = '2.2.2'
     2   Version = '2.2.3'
    33/* Copyright (C) netlabs.org 2007-2012
    44
     
    312312
    313313_GroupJoin: /* Add a new user to the groups user STEM */
     314    /* Translate machine account to upper case - Samba 3.3 needs this */
     315    if right(User,1) = "$" then User = translate(User)
    314316    do I = 1 to groupname.0
    315317        if translate(groupname.I) = translate(group) then do
  • branches/scripts/user/usermod.cmd

    r705 r706  
    11/* UserMod script for Samba Server for eCS (OS/2) */
    2    Version = '2.3.4'
     2   Version = '2.3.5'
    33/* Copyright (C) netlabs.org, Herwig Bauernfeind 2007-2012
    44
     
    266266        /* parse fields into stem variables */
    267267        J = J + 1
    268         parse var userline username.J':'password.J':'uid.J':'gid.J':'LoginClass.J':'pwchange.J':'deact.J':'gecos.J':'home.J':'shell.J
    269         Status.J =""   
     268        parse var userline username.J':'password.J':'uid.J':'gid.J':'LoginClass.J':'pwchange.J':'deact.J':'gecos.J':'home.J':'shell.J
     269        /* translate any machine account to upper case - Samba 3.3 seems to need this */
     270        if right(username.J,1) = "$" then username.J = translate(username.J)
     271        Status.J =""
    270272        do K = 1 to J - 1
    271273            if translate(Username.K) = translate(Username.J) then do
Note: See TracChangeset for help on using the changeset viewer.