Magellan Linux

Diff of /alx-src/trunk/alxconfig-ng/functions/config_auth.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 249 by niro, Wed Apr 13 16:09:25 2005 UTC revision 250 by niro, Wed Apr 13 18:55:25 2005 UTC
# Line 1  Line 1 
1  # $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/functions/config_auth.sh,v 1.1 2005-04-13 16:09:25 niro Exp $  # $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/functions/config_auth.sh,v 1.2 2005-04-13 18:55:25 niro Exp $
2  # configures the system authentification via mysql db settings  # configures the system authentification via mysql db settings
3    
4  get_auth_settings()  get_auth_settings()
# Line 30  config_auth() Line 30  config_auth()
30   get_auth_settings   get_auth_settings
31    
32   [ -n "${ALX_AUTH_SHELL_PW}" ] && \   [ -n "${ALX_AUTH_SHELL_PW}" ] && \
33   usermod -p $(perl -e "printf(crypt("${ALX_AUTH_SHELL_PW}","AD"))") root   usermod -p $(perl -e "printf(crypt('${ALX_AUTH_SHELL_PW}','AD'))") root
34    
35   [ -n "${ALX_AUTH_STATION_PW}" ] && \   [ -n "${ALX_AUTH_STATION_PW}" ] && \
36   usermod -p $(perl -e "printf(crypt("${ALX_AUTH_SHELL_PW}","AD"))") ${ALX_UNPRIV_USER}   usermod -p $(perl -e "printf(crypt('${ALX_AUTH_SHELL_PW}','AD'))") ${ALX_UNPRIV_USER}
37    
38   [ -n "${ALX_AUTH_SAMBA_PW}" ] && \   [ -n "${ALX_AUTH_SAMBA_PW}" ] && \
39   smbpasswd -a root ${ALX_AUTH_SAMBA_PW}   smbpasswd -a root ${ALX_AUTH_SAMBA_PW}

Legend:
Removed from v.249  
changed lines
  Added in v.250