
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
03-21-2019
01:23 PM
- last edited on
03-04-2025
05:16 AM
by
kh-richa_mig
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
https://donmontalvo.com

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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>"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
https://donmontalvo.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 03-22-2019 11:27 AM
Just noticed a small thing. @donmontalvo -p instead of -P
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
https://donmontalvo.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 03-22-2019 01:07 PM
@Chris_Hafner @donmontalvo @bramstedtb Thank you everyone!
