Changeset 706 for branches/scripts/user


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.