2007/11/27, Ian Kent <[EMAIL PROTECTED]>:
> I have no idea what you are talking about here.
>

sorry for not being clear.

 - im using version 5.0.2
 - i want an executable map that asks some info to user.
 - i take auto.smb as base and add something like this:

opts="-fstype=cifs,credentials=$CREDENTIALS"

USERSESSION=`w | grep "x-session-manager"`
USER=`echo "$UXSESSION" | cut -d" " -f1`
DISPLAY=`echo "$UXSESSION" | tr -s " " | cut -d" " -f2`
CREDENTIALS="/home/$USER/.smb.auth.$key"

if [ ! -e "$CREDENTIALS" ]; then
    NEWKEY=`zenity --entry --hide-text --text="Enter your pass for $key"`
    echo -e "username=$USER\npassword=$NEWKEY" > "$CREDENTIALS"
fi

[...]

this works as long as there's only one user on the machine and is
pretty limited. if user variables were exposed to executable maps it
could be easily integrated with Zenity, DBUS, xmessage, or any other
user space process.


> The USER macro is available to maps (along with the others I mentioned
> before), including executable maps as an environment variable, and as a
> macro variable for normal maps, when using version 5.
>

but this is _after_ the executable map is processed, so its usability
is very limited.

> If you're talking about version 4 then that information isn't available
> in the kernel request packet to the daemon so it can't be done.
>

i was talking about v5 all the time, but i hope now is more clear.

regards,

muzzol

-- 
========================
     ^ ^
     O O
    (_ _)
muzzol(a)gmail.com
========================
jabber id: muzzol(a)jabber.dk
========================
No atribueixis qualitats humanes als ordinadors.
No els hi agrada.
========================
"El gobierno español sólo habla con terroristas, homosexuales y
catalanes, a ver cuando se decide a hablar con gente normal"
Jiménez Losantos
========================
<echelon spamming>
bomb terrorism bush aznar teletubbies
</echelon spamming>

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to