-
Notifications
You must be signed in to change notification settings - Fork 47
/
Centrify_Version.xml
32 lines (32 loc) · 1.22 KB
/
Centrify_Version.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?xml version="1.0" encoding="UTF-8"?>
<extensionAttribute>
<displayName>Centrify Version</displayName>
<description/>
<dataType>string</dataType>
<scriptContentsMac>#!/bin/sh
mode=`adinfo --version | grep "CentrifyDC" | awk '{print $3}'`
if [ "$mode" != "" ]; then
echo "<result>Centrify v.${mode//)} Installed</result>"
else
echo "<result>Centrify Not Installed</result>"
fi
# modified by Amanda De Feo 08-16-2017 - jose below
#if [ "$mode" == "5.4.1-455)" ]; then
# echo "<result>Centrify v5.3.3 Installed</result>"
#elif [ "$mode" == "5.4.0-289)" ]; then
# echo "<result>Centrify v5.3.3 Installed</result>"
#elif [ "$mode" == "5.3.3-602)" ]; then
# echo "<result>Centrify v5.3.3 Installed</result>"
#elif [ "$mode" == "5.3.0-213)" ]; then
#echo "<result>Old Centrify Version v5.3.0x Installed</result>"
#elif [ "$mode" == "5.2.4-465)" ]; then
#echo "<result>Old Centrify Version v5.2.4x Installed</result>"
#else
# echo "<result>NA</result>"
#fi</scriptContentsMac>
<scriptContentsWindows/>
</extensionAttribute>