Login About Gallery
iSolutions Lookup
SCRIPTING
‎Ask ‎Enter iSolutions Username or Student ID
Input Type
‎Text
Default Answer
‎Text
VARIABLES
‎Add ‎Provided Input ‎to ‎Username
TEXT
‎Match ‎[a-zA-Z]+ ‎in ‎Username
Case Sensitive
SCRIPTING
‎If ‎Matches ‎has any value
TEXT
‎username=$(echo ‎Username ‎ | xargs); input=$(ldapsearch -LLL -H ldaps://nlbldap.soton.ac.uk -b "ou=user,dc=soton,dc=ac,dc=uk" "cn=$username" -x); echo "$input" | grep "displayName:" | sed 's/displayName: //'; echo "$input" | grep "sAMAccountName:" | sed 's/sAMAccountName: //'; echo "$input" | grep "employeeNumber:" | sed 's/employeeNumber: //'; echo "$input" | grep "mail:" | sed 's/mail: //'; echo "$input" | grep "department:" | sed 's/department: //'; echo "$input" | grep "X400" # echo "$input";
VARIABLES
‎Set variable ‎Script ‎to ‎Text
SCRIPTING
‎Otherwise
TEXT
‎username=$(echo ‎Username ‎ | xargs); input=$(ldapsearch -LLL -H ldaps://nlbldap.soton.ac.uk -b "ou=user,dc=soton,dc=ac,dc=uk" "employeeNumber=$username" -x); echo "$input" | grep "displayName:" | sed 's/displayName: //'; echo "$input" | grep "sAMAccountName:" | sed 's/sAMAccountName: //'; echo "$input" | grep "employeeNumber:" | sed 's/employeeNumber: //'; echo "$input" | grep "mail:" | sed 's/mail: //'; echo "$input" | grep "department:" | sed 's/department: //'; echo "$input" | grep "X400" # echo "$input";
VARIABLES
‎Set variable ‎Script ‎to ‎Text
SCRIPTING
‎End If
SCRIPTING
‎Run script over SSH
‎Options Under Construction
SCRIPTING
‎Show ‎Shell Script Result

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 2 years ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0