BASH | URLENCODE

For each character in string do # IN=”\\”;printf -v OUT ‘%%%02x’ “‘$IN”; echo $OUT or # echo “this & that” | perl -MURI::Escape -ne ‘chomp;print uri_escape($_),”\n”‘

RADIUS server // local authentication and authorization via unix + pam

Yeah, its sucks. Use this option in only secured networks! Check /etc/pam.d for radiusd file. /etc/raddb/clients.conf client 192.168.100.60 { ipv4addr = 192.168.100.60 secret = mysecret shortname = myshortname } /etc/raddb/radius.conf You wanna read /etc/shadow? Become root. —> Yeah, its sucks. Use this option in only secured networks! user = root group = root /etc/raddb/sites-enabled/default Section […]

Samba // wbcGetpwnam: WBC_ERR_DOMAIN_NOT_FOUND on linux domain member

linux domain member – idmap ad – getent passwd not working – wbinfo -i SAMDOM\\xyzuser returns wbcGetpwnam: WBC_ERR_DOMAIN_NOT_FOUND PROBLEM: Users per default primary group “domain users” has not set gidNumber per default installation. Edit these groups props with ldbedit and add a gidNumber entry. How solved? ( credits: https://stackoverflow.com/questions/30601942/consistent-uid-and-gid-across-linux-clients-for-multiple-domain-using-autorid): wbinfo -n SAMDOM\\user1 to give you […]