Displaying 1 result from an estimated 1 matches for "username_to_search".
2011 Oct 28
1
winbind nsswitch resolving names issue
...haviour with wbinfo querying by bash console from
my linux desktop (ubuntu 11.04 smb 3.5.8, joined in domain and regularly
I authenticated to). For my purpose I've written this tiny script
"idtest.sh" :
#!/bin/bash
user=$1
if [ -z $user ]; then
echo "Usage : idtest.sh username_to_search"
exit 1
fi
for gruppo in `id -G $user`; do
if [ "$gruppo" -ge "10000" ]; then
sid=`wbinfo -G $gruppo`
desc=`wbinfo -s $sid`
echo $gruppo - $sid - $desc
fi
done
exit 0
Is not clear to me why if I query my user, randomly it doesn't show mine
"Doma...