Changeset 926


Ignore:
Timestamp:
Jul 6, 2016, 4:45:40 PM (9 years ago)
Author:
Herwig Bauernfeind
Message:

GUI-Tools: SMBUsers: Fix unknown smb.conf options break policy mods

Location:
branches/guitools-1.0
Files:
1 added
12 edited

Legend:

Unmodified
Added
Removed
  • branches/guitools-1.0/shared/sambainit.vrs

    r451 r926  
    373373/*:VRX */
    374374_PasswordDbRewrite:
    375     IF options.!debug == 1 THEN say "_PasswordDBRewrite() started"
     375    IF options.!debug == 1 then say time()' _PasswordDBRewrite() started'
    376376
    377377    /* Reset any old rc from pwd_mkdb.exe */
     
    396396        call _SambaShowError
    397397    end
    398     IF options.!debug == 1 THEN say "_PasswordDBRewrite() done ("pwd_mkdbrc")"
    399 return
     398    IF options.!debug == 1 then say time()" _PasswordDBRewrite() done ("pwd_mkdbrc")"
     399return
  • branches/guitools-1.0/smbusers/readme.smbusers

    r574 r926  
    1 Local Samba users and groups 0.9.10-test
    2 ========================================
    3 
    4 NOTE: If smbusers.exe detects an error during startup (inspect the console
    5       for "ERROR could not find ...." messages), it will not let you save any
    6       changes to disk, as this might make the situation worse than it is.
    7      
    8 NOTE: Make sure you have read and understood Ticket #59 at
    9       http://svn.netlabs.org/samba before using smbusers.exe!
    10 
    11 NOTE: Ticket #59 seems to be gone in Samba 3.3.x!     
    12 
    13 NOTE: smbusers.exe needs rexxini.dll, drctl017.dll, rxcrypt.dll and vrobj.dll
    14       somewhere in the LIBPATH. In case you installed a recent Samba WPI this
    15       is requirement is fullfilled.
    16      
    17 NOTE: Version 0.5.0 or better are designed to work with the new usermod.cmd
    18       script (enclosed for conveniance), which replaces useradd.cmd,
    19       userren.cmd and userdel.cmd. Don't forget to update your smb.conf
    20       (look into usermod.cmd to see what changes need to be done!).
    21      
    22 NOTE: In case it is not possible to change smb.conf there are forwarder
    23       scripts included that translate the old calling convention into the
    24       new one.
     1Local Samba users and groups 1.0.4
     2==================================
    253     
    264With smbusers.exe you can
     
    6341NOTE: There is an alternative icon view on the users page, which does not
    6442      have a particular purpose at this time.
     43     
     44NOTE: Version 1.0.0 optionally also stores the crypted password in
     45      master.passwd. You have to turn on this feature manually.
    6546
    6647Right click to bring up a context menu.
     
    154135         Ticket #59 situation (groups broken).
    155136
     137NOTE: If smbusers.exe detects an error during startup (inspect the console
     138      for "ERROR could not find ...." messages), it will not let you save any
     139      changes to disk, as this might make the situation worse than it is.
     140     
     141NOTE: Make sure you have read and understood Ticket #59 at
     142      http://svn.netlabs.org/samba before using smbusers.exe!
     143
     144NOTE: Ticket #59 seems to be gone in Samba 3.3.x!     
     145
     146NOTE: smbusers.exe needs rexxini.dll, drctl017.dll, rxcrypt.dll and vrobj.dll
     147      somewhere in the LIBPATH. In case you installed a recent Samba WPI this
     148      is requirement is fullfilled.
     149     
     150NOTE: Version 0.5.0 or better are designed to work with the new usermod.cmd
     151      script (enclosed for conveniance), which replaces useradd.cmd,
     152      userren.cmd and userdel.cmd. Don't forget to update your smb.conf
     153      (look into usermod.cmd to see what changes need to be done!).
     154     
     155NOTE: In case it is not possible to change smb.conf there are forwarder
     156      scripts included that translate the old calling convention into the
     157      new one.
     158
    156159
    157160How to get back to a working state in case of a pwd_mkdb.exe error:
     
    166169
    167170Bug reports appreciated.
    168 mailto:herwig.bauernfeind@aon.at
    169 HerwigB on irc://freenode/netlabs
     171mailto:herwig.bauernfeind@bitwiseworks.com
  • branches/guitools-1.0/smbusers/smbusers.RC

    r288 r926  
    1 icon   1 add_rem_users.ico
    2 bitmap 2 netlabs.bmp
    3 bitmap 4 paper1.bmp
    4 bitmap 5 paper2.bmp
    5 bitmap 6 paper3.bmp
     1ICON   1 add_rem_users.ICO
     2BITMAP 2 bww_bw.bmp
     3BITMAP 4 PAPER1.BMP
     4BITMAP 5 PAPER2.BMP
     5BITMAP 6 PAPER3.BMP
    66icon 8 group.ico
    7 bitmap 11 tab11.bmp
    8 bitmap 12 tab12.bmp
    9 bitmap 13 tab13.bmp
    10 bitmap 14 tab14.bmp
    11 bitmap 15 tab15.bmp
    12 bitmap 16 tab16.bmp
    13 bitmap 17 tab17.bmp
    14 bitmap 18 tab18.bmp
    15 bitmap 21 tab21.bmp
    16 bitmap 22 tab22.bmp
    17 bitmap 23 tab23.bmp
    18 bitmap 24 tab24.bmp
    19 bitmap 25 tab25.bmp
    20 bitmap 26 tab26.bmp
    21 bitmap 27 tab27.bmp
    22 bitmap 28 tab28.bmp
     7BITMAP 11 TAB11.BMP
     8BITMAP 12 TAB12.BMP
     9BITMAP 13 TAB13.BMP
     10BITMAP 14 TAB14.BMP
     11BITMAP 15 TAB15.BMP
     12BITMAP 16 TAB16.BMP
     13BITMAP 17 TAB17.BMP
     14BITMAP 18 TAB18.BMP
     15BITMAP 21 TAB21.BMP
     16BITMAP 22 TAB22.BMP
     17BITMAP 23 TAB23.BMP
     18BITMAP 24 TAB24.BMP
     19BITMAP 25 TAB25.BMP
     20BITMAP 26 TAB26.BMP
     21BITMAP 27 TAB27.BMP
     22BITMAP 28 TAB28.BMP
    2323icon 29 user.ico
    24 icon 30 add_users.ico
    25 icon 31 add_users_d.ico
    26 icon 32 rem_users.ico
    27 icon 33 rem_users_d.ico
    28 icon 34 join_group.ico
    29 icon 35 join_group_d.ico
    30 icon 36 leave_group.ico
    31 icon 37 leave_group_d.ico
     24icon 30 add_users.ICO
     25icon 31 add_users_d.ICO
     26icon 32 rem_users.ICO
     27icon 33 rem_users_d.ICO
     28icon 34 join_group.ICO
     29icon 35 join_group_d.ICO
     30icon 36 leave_group.ICO
     31icon 37 leave_group_d.ICO
    3232icon 38 add_group.ico
    3333icon 39 add_group_d.ico
  • branches/guitools-1.0/smbusers/smbusers.VRP

    r579 r926  
    55RunParameters:
    66RunDirectory: U:\Develop\Samba\guitools-1.0\smbusers
    7 VRXWindow: __VREMainWindow,1,2156,3228,903,4192
    8 VRXWindow: __VRESectionListWindow,1,373,12093,11539,3342
    9 VRXWindow: __VREToolsWindow,0,3192,9395,6486,1669
    10 VRXWindow: __VREWindListWindow,1,385,8913,2650,3150
     7VRXWindow: __VREMainWindow,1,2156,3228,903,5974
     8VRXWindow: __VRESectionListWindow,1,373,12093,11539,6035
     9VRXWindow: __VREToolsWindow,1,3300,9395,5468,1669
     10VRXWindow: __VREWindListWindow,1,385,8913,5348,3150
    1111UserFile: 1
    1212UserWindow: Main,1
    1313UserWindow: AddUser,1
     14UserWindow: About,1
  • branches/guitools-1.0/smbusers/smbusers.VRX

    r579 r926  
    102102    userdata = VRGet(VRInfo("OBject"),"Userdata")
    103103    parse var userdata Container '|' fieldh '|' VisStatus
    104 say userdata
    105104    ok = VRMethod(Container,"SetFieldAttr", fieldh, "Visible", \VisStatus )
    106105return
     
    351350    ok = stream(samba.!group,'c','close')
    352351
    353     NTGroupname. = ""
     352    NTGroupname. = "(klibc group)"
    354353    NTComment. = ""
    355354    NTGroupType. = ""
     
    538537
    539538    settings.!WriteMasterPwd = VRGetIni( "Settings", "WriteMasterPwd", OurINI)
    540     if settings.!WriteMasterPwd = "" then settings.!WriteMasterPwd = 0
     539    if settings.!WriteMasterPwd = "" then settings.!WriteMasterPwd = 1
    541540
    542541    options.!debug = VRGetIni( "Options", "Debug", OurINI)
     
    15241523    CurUser = arg(1)
    15251524
    1526     /* "up" hier drin heiát UserProperties */
     1525    /* "up" is an abbreviation for UserProperties in here */
    15271526
    15281527    UserProperties = TempDir'UserProperties.txt'
     
    16681667    ok = VRSet("About","Caption", NLVGetMessage(127))
    16691668    ok = VRSet("PB_AboutOK","Caption", NLVGetMessage(2))
    1670     SambaTeam.0 = 8
    1671     SambaTeam.1 = 'Paul Smedley'
    1672     SambaTeam.2 = 'Yuri Dario'
    1673     SambaTeam.3 = 'Herwig Bauernfeind'
    1674     SambaTeam.4 = 'Silvan Scherrer'
    1675     SambaTeam.5 = 'Alex Taylor'
    1676     SambaTeam.6 = 'Nikolay Kolosov'
    1677     SambaTeam.7 = 'All the Samba people'
    1678     SambaTeam.8 = 'All the netlabs people'
     1669    SambaTeam.0 = 9
     1670    SambaTeam.1 = 'Silvan Scherrer'
     1671    SambaTeam.2 = 'Herwig Bauernfeind'
     1672    SambaTeam.3 = 'Vitali Pelenyov'
     1673    SambaTeam.4 = 'Paul Smedley'
     1674    SambaTeam.5 = 'Yuri Dario'
     1675    SambaTeam.6 = 'Alex Taylor'
     1676    SambaTeam.7 = 'Nikolay Kolosov'
     1677    SambaTeam.8 = 'All the Samba people'
     1678    SambaTeam.9 = 'All the netlabs people'
    16791679    ok = VRSet("About","Font", VRGet("Page_4","Font"))
    16801680    ok = VRMethod("LB_SambaTeam","AddStringList", "SambaTeam." )
     
    31133113
    31143114    call _SambaInit
    3115 say "hier!"
    31163115    if ErrorState then call _OnErrorDisable
    3117 say "hier jetzt!"
     3116   
    31183117    if StartSamba then do
    31193118        address cmd samba.!smbcmd' start'
    31203119    end
    3121 say "hier2!"
    31223120    if \_SambaRunning() then do
    31233121        Msg.Text  = NLVGetMessage(107)
     
    36123610    if SelGroups.0 = 0 then return
    36133611    do I = 1 to SelGroups.0
     3612        if SelGroups.I = "(klibc group)" then iterate
    36143613        ok = VRCopyFile(samba.!group, samba.!group'.bak')
    36153614        say samba.!netexe' rpc addmem "'SelGroups.I'" 'Username.SelNr' 'DebugLevel' 'UserCred' 2>'samba.!error' 1>'samba.!msg
     
    37153714    say samba.!pdbeditexe' --policies-reset 'DebugLevel' 1>'samba.!msg
    37163715    address cmd samba.!pdbeditexe' --policies-reset 'DebugLevel' 1>'samba.!msg
    3717     call _SambaShowMsg "description"
     3716    call _SambaShowMsg "description unknown parameter"
    37183717return
    37193718
     
    37233722    say samba.!pdbeditexe' -P "'VRGet("DDCB_Policy","Value")'" -C 'VRGet("EF_PolValue","Value")' 'DebugLevel' 1>'samba.!msg
    37243723    address cmd samba.!pdbeditexe' -P "'VRGet("DDCB_Policy","Value")'" -C 'VRGet("EF_PolValue","Value")' 'DebugLevel' 1>'samba.!msg
    3725     call _SambaShowMsg "description"
     3724    call _SambaShowMsg "description unknown parameter"
    37263725return
    37273726
  • branches/guitools-1.0/smbusers/smbusers_de.mkm

    r569 r926  
    201201; More error messages
    202202SMU0180I: Zuwenig freier Platz auf "%1"!
    203 SMU0181I:
    204 SMU0182I:
    205 SMU0183I:
    206 SMU0184I:
    207 SMU0185I:
    208 SMU0186I:
    209 SMU0187I:
    210 SMU0188I:
    211 SMU0189I:
     203SMU0181?:
     204SMU0182?:
     205SMU0183?:
     206SMU0184?:
     207SMU0185?:
     208SMU0186?:
     209SMU0187?:
     210SMU0188?:
     211SMU0189?:
    212212;More settings
    213213SMU0190I: Passwort auch in master.passwd speichern
     214SMU0191I: Standardbenutzerkonto
     215SMU0192I: Alternatives Benutzerkonto
     216SMU0193I: Administratorkonto
     217SMU0194I: Gastkonto
     218SMU0195?:
     219SMU0196?:
     220SMU0197?:
     221SMU0198?:
     222SMU0199?:
  • branches/guitools-1.0/smbusers/smbusers_en.mkm

    r569 r926  
    211211;More settings
    212212SMU0190I: Write password also to master.passwd
     213SMU0191I: Default user account
     214SMU0192I: Alternative user account
     215SMU0193I: Administrator account
     216SMU0194I: Guest account
     217SMU0195?:
     218SMU0196?:
     219SMU0197?:
     220SMU0198?:
     221SMU0199?:
  • branches/guitools-1.0/smbusers/smbusers_es.mkm

    r569 r926  
    211211;More settings
    212212SMU0190I: Write password also to master.passwd
     213SMU0191I: Default user account
     214SMU0192I: Alternative user account
     215SMU0193I: Administrator account
     216SMU0194I: Guest account
     217SMU0195?:
     218SMU0196?:
     219SMU0197?:
     220SMU0198?:
     221SMU0199?:
  • branches/guitools-1.0/smbusers/smbusers_fr.mkm

    r569 r926  
    227227;More settings
    228228SMU0190I: Write password also to master.passwd
     229SMU0191I: Default user account
     230SMU0192I: Alternative user account
     231SMU0193I: Administrator account
     232SMU0194I: Guest account
     233SMU0195?:
     234SMU0196?:
     235SMU0197?:
     236SMU0198?:
     237SMU0199?:
  • branches/guitools-1.0/smbusers/smbusers_sv.mkm

    r569 r926  
    212212;More settings
    213213SMU0190I: Write password also to master.passwd
     214SMU0191I: Default user account
     215SMU0192I: Alternative user account
     216SMU0193I: Administrator account
     217SMU0194I: Guest account
     218SMU0195?:
     219SMU0196?:
     220SMU0197?:
     221SMU0198?:
     222SMU0199?:
Note: See TracChangeset for help on using the changeset viewer.