Ignore:
Timestamp:
02/27/14 11:11:58 (12 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1, releng/10.1.1
Children:
47a52f4
Parents:
7c53dd2
Message:

Couple new features for PCDM
1) Add option to require that the user type in the username instead of just selecting one from a list (does not recognize "root" or "toor", I made sure of that)
2) Move the backend system user detection to using "getent" after conversation with john @ ixsystems. That should properly pick up LDAP/ActiveDirectory users as well, whereas "pw" might not.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/PCDM/src/pcdm-config.cpp

    r28c79ad rae41693  
    2525  confStruct << "TRUE";                                 // [8] Password view button enabled 
    2626  confStruct << "10";                                           // [9] Auto-login delay (seconds) 
     27  confStruct << "TRUE";                                 // [10] Show System Users 
    2728  return; 
    2829} 
     
    5657      else if(var=="ENABLE_VIEW_PASSWORD_BUTTON"){ confStruct[8] = val; } 
    5758      else if(var=="AUTO_LOGIN_DELAY"){ confStruct[9] = val; } 
     59      else if(var=="SHOW_SYSTEM_USERS"){ confStruct[10] = val; } 
    5860      else{} 
    5961       
     
    117119} 
    118120 
     121bool Config::allowUserSelection(){ 
     122  if(confStruct[10].toLower()=="true"){ return TRUE; } 
     123  else{ return FALSE; }  
     124} 
Note: See TracChangeset for help on using the changeset viewer.