~ubuntu-branches/ubuntu/natty/sadms/natty

« back to all changes in this revision

Viewing changes to bin/conf/unconfig.sh

  • Committer: Bazaar Package Importer
  • Author(s): Gauvain Pocentek
  • Date: 2010-02-22 20:14:54 UTC
  • Revision ID: james.westby@ubuntu.com-20100222201454-up4zkzo13w9091i0
Tags: upstream-2.0.14~CVS20100222
ImportĀ upstreamĀ versionĀ 2.0.14~CVS20100222

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
# bbou@ac-toulouse.fr
 
3
# 2007-06-24 09:24:55 
 
4
# conf/unconfig.sh
 
5
 
 
6
### P A R A M S
 
7
MYVERBOSE=
 
8
if [ "$1" = "-v" ]; then
 
9
        MYVERBOSE="-v"
 
10
        shift
 
11
fi
 
12
MYPAM=
 
13
if [ "$1" = "-pam" ];then
 
14
        MYPAM='True'
 
15
        shift
 
16
fi
 
17
MYADMIN="$1"
 
18
MYADMINPWD="$2"
 
19
#echo "admin=${MYADMIN}"
 
20
#echo "admin passwd=${MYADMINPWD}"
 
21
#echo "pam=${MYPAM}"
 
22
 
 
23
### I N C L U D E S
 
24
. ./_include.sh
 
25
 
 
26
### S T A R T
 
27
 
 
28
if [ ! -z "${MYPAM}" ]; then
 
29
        echo "+begin pam winbind uninstall"
 
30
        case ${DISTRIBUTION} in
 
31
                Redhat|Fedora|Mandriva)
 
32
                        ./unconfig-pam_winbind.sh "all" "system-auth"
 
33
                        ;;
 
34
                Debian|Ubuntu)
 
35
                        ./unconfig-pam_winbind.sh "auth" "common-auth" "account" "common-account" "password" "common-password" "session" "common-session"
 
36
                        ;;
 
37
                *)
 
38
                echo "Unsupported distribution" >&2
 
39
                exit 1
 
40
                ;;
 
41
        esac
 
42
        echo "+end pam winbind uninstall"
 
43
fi
 
44
 
 
45
echo "[1]"
 
46
./unconfig-smb.sh
 
47
 
 
48
echo "[2]"
 
49
./unconfig-nss.sh
 
50
 
 
51
echo "[3]"
 
52
./unconfig-winbind.sh
 
53
 
 
54
echo "[4]"
 
55
./leave-domain.sh ${MYVERBOSE} "${MYADMIN}" "${MYADMINPWD}"
 
56
 
 
57
#./unconfig-smbconf.sh
 
58
#./unconfig-kerberos.sh
 
59
 
 
60
echo "[uninstall ok]"
 
61
exit 0