Posted on 03-21-2019 01:23 PM
I'm trying to create all of the available command line support for Enterprise Connect into Extension Attributes. How would I make the command:
"/Applications/Enterprise Connect.app/Contents/SharedSupport/eccl -p adUsername"
into an Extension Attribute?
Solved! Go to Solution.
Posted on 03-22-2019 12:33 PM
@Chris_Hafner good catch! Looks like -P
returns true
, and -p
returns user's LDAP name. Fixed.
Posted on 03-21-2019 01:49 PM
This will send the result of the command straight to the Extension Attribute. There's no error checking, or making sure that Enterprise Connect is installed, but it can get you started.
#!/bin/sh
echo "<result>$(/Applications/Enterprise Connect.app/Contents/SharedSupport/eccl -P adUsername)</result>"
Posted on 03-21-2019 07:02 PM
#!/bin/sh
if [ -e /Applications/Enterprise Connect.app ]
then
echo "<result>$(/Applications/Enterprise Connect.app/Contents/SharedSupport/eccl -p adUsername | cut -d":" -f2 | tr -d ' ')</result>"
else
echo "<result>NotInstalled</result>"
fi
Posted on 03-22-2019 11:27 AM
Just noticed a small thing. @donmontalvo -p instead of -P
Posted on 03-22-2019 12:33 PM
@Chris_Hafner good catch! Looks like -P
returns true
, and -p
returns user's LDAP name. Fixed.
Posted on 03-22-2019 01:03 PM
Heh, to be honest, I've stolen this whole thing for new EA's. You guys are the very best!
Posted on 03-22-2019 01:07 PM
@Chris_Hafner @donmontalvo @bramstedtb Thank you everyone!