Sorry, let me rephrase the question again:
I need define a user /password for sasl but want the authentication at
runtime
be automatic - no explicit promting the user while accessing a tcp socket
with some applications that need authentication (e.g libvirt)
I try : saslpasswd2 -c -p -a libvirt <user>
and it hangs (if i now press Enter it says : "invalid parameter
supplied") . if I avoid the -p flag the above commad works fine and
prompts for password and later when using the tcp (virsh -c
qemu+tcp:...) it prompts for the above defined user/password and
autheticates ok.
But I want without the explicit authentication
The man pages says :
"-p Pipe mode - saslpasswd2 will neither prompt for the password nor
verify that it was entered correctly. This is the default when standard
input is not a terminal. "
In the past (before upgrading of libvirt via rpm) I had the SASL
authentication done automatically without prompting the user at runtime
(virsh qemu+tcp:///system <command> ) and without need to configure that.
Don't know how to restore it .
Any help ?
thanks
Zvi Dubitzky
Email:dubi at il.ibm.com
libvirt-users-bounces at redhat.com wrote on 26/03/2011 18:00:08:
> From: libvirt-users-request at redhat.com
> To: libvirt-users at redhat.com
> Date: 26/03/2011 18:08
> Subject: libvirt-users Digest, Vol 15, Issue 25
> Sent by: libvirt-users-bounces at redhat.com
>
> Send libvirt-users mailing list submissions to
> libvirt-users at redhat.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://www.redhat.com/mailman/listinfo/libvirt-users
> or, via email, send a message with subject or body 'help' to
> libvirt-users-request at redhat.com
>
> You can reach the person managing the list at
> libvirt-users-owner at redhat.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of libvirt-users digest..."
>
>
> Today's Topics:
>
> 1. saslpasswd2 and virsh -c qemu+tcp:///system <command>
> (Zvi Dubitzky)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 26 Mar 2011 16:27:06 +0300
> From: Zvi Dubitzky <DUBI at il.ibm.com>
> To: libvirt-users at redhat.com
> Subject: [libvirt-users] saslpasswd2 and virsh -c qemu+tcp:///system
> <command>
> Message-ID:
> <OF80114F71.6895179C-ONC225785F.00498EC8-C225785F.0049E967 at
il.ibm.com>
> Content-Type: text/plain; charset="US-ASCII"
>
> I need define a user /password for sasl but want that to do the
> verification
> automatically no -promting ( or even maybe avoid the verification)
while> using a tcp socket with some applications that need authentication (e.g
> libvirt)
>
> so I try : saslpasswd2 -c -p -a libvirt <user>
>
> and it hangs (if i now press Enter it says : "invalid parameter
> supplied") . if I avoid the -p flag the above commad works fine and
> prompts for password and later when using the tc p (virsh -c
> qemu+tcp:...) it prompts for the above defined user/password and
> autheticates ok .
> But I want without the prompting
>
> The man pages says
> -p Pipe mode - saslpasswd2 will neither prompt for the password nor
> verify that it was entered correctly. This is the default when standard
> input is not a terminal.
>
> In the past (before some upgrading of libvirt via rpm) the SASL
> authentication was done automatically no need for prompting
> Don't know how to restore it .
>
> Any help ?
>
> thanks
>
> Zvi Dubitzky
> Email:dubi at il.ibm.com
>
>
>
>
> ------------------------------
>
> _______________________________________________
> libvirt-users mailing list
> libvirt-users at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-users
>
> End of libvirt-users Digest, Vol 15, Issue 25
> *********************************************