Changeset 11608

Show
Ignore:
Timestamp:
11/10/08 14:30:31 (8 weeks ago)
Author:
juruen@…
Message:

+ Bugfix. Set loginShell when adding users. By default it takes /bin/false
but users can change it using /etc/ebox/80samba.conf

Location:
trunk/client/samba
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/client/samba/ChangeLog

    r11511 r11608  
    440.12.99 
    55        + New release 
     60.12.5 
     7        + Bugfix. Set loginShell when adding users. By default it takes /bin/false 
     8        but users can change it using /etc/ebox/80samba.conf 
    690.12.4 
    710        + Bugfix. Check and correct if there is a user or group with a wrong SID. 
  • trunk/client/samba/conf/80samba.conf

    r11460 r11608  
    2121# enable quota support 
    2222enable_quota = yes 
     23 
     24# default login shell for users 
     25login_shell = /bin/false 
  • trunk/client/samba/src/EBox/SambaLdapUser.pm

    r11460 r11608  
    4949use constant GECOS              => 'Ebox file sharing user ';  
    5050use constant USERGROUP          => 513; 
     51use constant DEFAULT_SHELL      => '/bin/false'; 
    5152# Home path for users and groups 
    5253use constant BASEPATH          => '/home/samba'; 
     
    125126 
    126127               sambaAcctFlags       => SMBACCTFLAGS, 
     128 
     129               loginShel            => _loginShell(), 
    127130              }; 
    128131 
     
    161164 
    162165                                     sambaSID             => $sambaSID, 
     166                                     
    163167 
    164168                                     # gecos                => GECOS 
     
    13091313} 
    13101314 
     1315sub _loginShell 
     1316{ 
     1317        my $shell = EBox::Config::configkey('login_shell'); 
     1318 
     1319        if (defined($shell)) { 
     1320                return $shell; 
     1321        } else { 
     1322                return DEFAULT_SHELL; 
     1323        } 
     1324} 
    131113251;