Google Guys, this is ugly
Google wird missbraucht um links in spam etwas vertrauenswürdiger zu machen:
http://www.google.com/pagead/iclk?sa=l&ai=frEDmT&num=17616&adurl=http://www.microsoft.com
Google this is ugly…
Google wird missbraucht um links in spam etwas vertrauenswürdiger zu machen:
http://www.google.com/pagead/iclk?sa=l&ai=frEDmT&num=17616&adurl=http://www.microsoft.com
Google this is ugly…
Ein kleines Bash Script für eine bequeme LDAP Abfrage:
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 33 34 35 36 37 | #!/bin/sh # # ldap-query.sh <arg1> <arg2> # # this script is used to perform ldap querys by giving 2 arguments: # - <arg1> the search query p.e.: uid=xxx # - <arg2> the attribute to be returned p.e.: displayName # # ATTENTION: Make sure ldap-utils are installed befor using this script. # # (c) 2008 René Moser if [ $# -ne 2 ] then echo "ldap-query.sh: needs 2 arguments: p.e. uid=c18xxx displayName" exit 1 fi query="${1}" attr="${2}" ldap_host="ldap.example.com" ldap_searchbase="dc=example,dc=com" # if ldap host doesn't allow read querys whitout auth #ldap_binddn="cn=Administrator,cn=People,dc=example,dc=com" #ldap_bindpwd="secret" #ldap_cmd="ldapsearch -h ${ldap_host} -x -D ${ldap_binddn} -w ${ldap_bindpwd} -b ${ldap_searchbase}" ldap_cmd="ldapsearch -h ${ldap_host} -x -b ${ldap_searchbase}" result=$(${ldap_cmd} -LLL ${query} ${attr} | grep "^${attr}:") if [ "${result}" != "" ]; then result=$(echo ${result} | sed -e 's/^.*: //') echo ${result} fi |