I am having trouble running this in my bash script, hopefully someone can help me write the correct line of code:
#!/bin/bash
user=testadmin
pass=123456!@
cu=$(logname)
echo $cu
curl https://cooke.jamfcloud.com/JSSResource/ldapservers/id/1/user/"$cu" --user "$user:$pass"
Unfortunately I get this in the terminal when I execute the script:
<?xml version="1.0" encoding="UTF-8"?><ldap_users><size>0</size></ldap_users>
Any help would be appreciated, I am new and I made a previous post and some of the people in the community criticized more than helping. Thank you in advance for your support.