[GH-ISSUE #19] authentication failed :( #10

Closed
opened 2026-02-27 16:00:40 +03:00 by kerem · 21 comments
Owner

Originally created by @hmandevteam on GitHub (Jan 18, 2013).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/19

Hi all,
i trying to use WebVirtMgr on my Mageia 64bit. When i start it with:
$ ./manage.py runserver 127.0.0.1:8000

seems that all work but when i try to overview... i receive auth failed:
http://img407.imageshack.us/img407/4402/noauth.jpg

in https://www.webvirtmgr.net/docs/ is required to add user by using
saslpasswd2 and THIS IS PROBLEM: saslpasswd2 -a libvirt fred (as sampe)
don't create passwd.db file. In messages i saw:
saslpasswd2: could not find auxprop plugin, was searching for [all]

could you help me ?

Originally created by @hmandevteam on GitHub (Jan 18, 2013). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/19 Hi all, i trying to use WebVirtMgr on my Mageia 64bit. When i start it with: $ ./manage.py runserver 127.0.0.1:8000 seems that all work but when i try to overview... i receive auth failed: http://img407.imageshack.us/img407/4402/noauth.jpg in https://www.webvirtmgr.net/docs/ is required to add user by using saslpasswd2 and THIS IS PROBLEM: saslpasswd2 -a libvirt fred (as sampe) don't create passwd.db file. In messages i saw: saslpasswd2: could not find auxprop plugin, was searching for [all] could you help me ?
kerem closed this issue 2026-02-27 16:00:40 +03:00
Author
Owner

@retspen commented on GitHub (Jan 18, 2013):

cat /etc/sysconfig/saslauthd

what show?

<!-- gh-comment-id:12414979 --> @retspen commented on GitHub (Jan 18, 2013): cat /etc/sysconfig/saslauthd what show?
Author
Owner

@hmandevteam commented on GitHub (Jan 18, 2013):

Id: saslauthd.sysconfig,v 1.1 2001/05/02 10:55:48 wiget Exp
Authentications mechanism (for list see saslauthd -v)
SASL_AUTHMECH=pam

Hostname for remote IMAP server (if rimap auth mech is used)
Ldap configuration file (if ldap auth mech is used)
SASL_MECH_OPTIONS=

Extra options (for list see saslauthd -h)
SASLAUTHD_OPTS=

<!-- gh-comment-id:12415696 --> @hmandevteam commented on GitHub (Jan 18, 2013): $Id: saslauthd.sysconfig,v 1.1 2001/05/02 10:55:48 wiget Exp $ Authentications mechanism (for list see saslauthd -v) SASL_AUTHMECH=pam Hostname for remote IMAP server (if rimap auth mech is used) Ldap configuration file (if ldap auth mech is used) SASL_MECH_OPTIONS= Extra options (for list see saslauthd -h) SASLAUTHD_OPTS=
Author
Owner

@retspen commented on GitHub (Jan 18, 2013):

/etc/sysconfig/saslauthd - OK

what show?
$ ldd /usr/sbin/saslpasswd2
$ ls -l /usr/lib64/sasl2

<!-- gh-comment-id:12416183 --> @retspen commented on GitHub (Jan 18, 2013): /etc/sysconfig/saslauthd - OK what show? $ ldd /usr/sbin/saslpasswd2 $ ls -l /usr/lib64/sasl2
Author
Owner

@hmandevteam commented on GitHub (Jan 18, 2013):

    linux-vdso.so.1 =>  (0x00007fff441ff000)
    libsasl2.so.2 => /usr/lib64/libsasl2.so.2 (0x00007f57b7210000)
    libc.so.6 => /lib64/libc.so.6 (0x00007f57b6e84000)
    libdl.so.2 => /lib64/libdl.so.2 (0x00007f57b6c80000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f57b742c000)



lrwxrwxrwx 1 root root    20 set 14 11:11 libcrammd5.so -> libcrammd5.so.2.0.23*
lrwxrwxrwx 1 root root    20 set 14 11:11 libcrammd5.so.2 -> libcrammd5.so.2.0.23*
-rwxr-xr-x 1 root root 22912 apr 28  2012 libcrammd5.so.2.0.23*
lrwxrwxrwx 1 root root    22 mag 24  2012 libdigestmd5.so -> libdigestmd5.so.2.0.23*
lrwxrwxrwx 1 root root    22 mag 24  2012 libdigestmd5.so.2 -> libdigestmd5.so.2.0.23*
-rwxr-xr-x 1 root root 52072 apr 28  2012 libdigestmd5.so.2.0.23*
lrwxrwxrwx 1 root root    18 mag 24  2012 liblogin.so -> liblogin.so.2.0.23*
lrwxrwxrwx 1 root root    18 mag 24  2012 liblogin.so.2 -> liblogin.so.2.0.23*
-rwxr-xr-x 1 root root 18784 apr 28  2012 liblogin.so.2.0.23*
lrwxrwxrwx 1 root root    17 mag 24  2012 libntlm.so -> libntlm.so.2.0.23*
lrwxrwxrwx 1 root root    17 mag 24  2012 libntlm.so.2 -> libntlm.so.2.0.23*
-rwxr-xr-x 1 root root 35328 apr 28  2012 libntlm.so.2.0.23*
lrwxrwxrwx 1 root root    18 mag 24  2012 libplain.so -> libplain.so.2.0.23*
lrwxrwxrwx 1 root root    18 mag 24  2012 libplain.so.2 -> libplain.so.2.0.23*
-rwxr-xr-x 1 root root 18784 apr 28  2012 libplain.so.2.0.23*
<!-- gh-comment-id:12416250 --> @hmandevteam commented on GitHub (Jan 18, 2013): ``` linux-vdso.so.1 => (0x00007fff441ff000) libsasl2.so.2 => /usr/lib64/libsasl2.so.2 (0x00007f57b7210000) libc.so.6 => /lib64/libc.so.6 (0x00007f57b6e84000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f57b6c80000) /lib64/ld-linux-x86-64.so.2 (0x00007f57b742c000) lrwxrwxrwx 1 root root 20 set 14 11:11 libcrammd5.so -> libcrammd5.so.2.0.23* lrwxrwxrwx 1 root root 20 set 14 11:11 libcrammd5.so.2 -> libcrammd5.so.2.0.23* -rwxr-xr-x 1 root root 22912 apr 28 2012 libcrammd5.so.2.0.23* lrwxrwxrwx 1 root root 22 mag 24 2012 libdigestmd5.so -> libdigestmd5.so.2.0.23* lrwxrwxrwx 1 root root 22 mag 24 2012 libdigestmd5.so.2 -> libdigestmd5.so.2.0.23* -rwxr-xr-x 1 root root 52072 apr 28 2012 libdigestmd5.so.2.0.23* lrwxrwxrwx 1 root root 18 mag 24 2012 liblogin.so -> liblogin.so.2.0.23* lrwxrwxrwx 1 root root 18 mag 24 2012 liblogin.so.2 -> liblogin.so.2.0.23* -rwxr-xr-x 1 root root 18784 apr 28 2012 liblogin.so.2.0.23* lrwxrwxrwx 1 root root 17 mag 24 2012 libntlm.so -> libntlm.so.2.0.23* lrwxrwxrwx 1 root root 17 mag 24 2012 libntlm.so.2 -> libntlm.so.2.0.23* -rwxr-xr-x 1 root root 35328 apr 28 2012 libntlm.so.2.0.23* lrwxrwxrwx 1 root root 18 mag 24 2012 libplain.so -> libplain.so.2.0.23* lrwxrwxrwx 1 root root 18 mag 24 2012 libplain.so.2 -> libplain.so.2.0.23* -rwxr-xr-x 1 root root 18784 apr 28 2012 libplain.so.2.0.23* ```
Author
Owner

@retspen commented on GitHub (Jan 18, 2013):

You have auxprop plugin:
lrwxrwxrwx 1 root root 18 mag 24 2012 libplain.so -> libplain.so.2.0.23*
lrwxrwxrwx 1 root root 18 mag 24 2012 libplain.so.2 -> libplain.so.2.0.23*

But saslpasswd2 not linked with this library.

Try this:
saslpasswd2 -a libvirt -f /etc/libvirt/passwd.db
or
saslpasswd2 -cf /etc/libvirt/passwd.db

<!-- gh-comment-id:12417544 --> @retspen commented on GitHub (Jan 18, 2013): You have auxprop plugin: lrwxrwxrwx 1 root root 18 mag 24 2012 libplain.so -> libplain.so.2.0.23* lrwxrwxrwx 1 root root 18 mag 24 2012 libplain.so.2 -> libplain.so.2.0.23* But saslpasswd2 not linked with this library. Try this: saslpasswd2 -a libvirt -f /etc/libvirt/passwd.db or saslpasswd2 -cf /etc/libvirt/passwd.db
Author
Owner

@hmandevteam commented on GitHub (Jan 18, 2013):

always error message in messages file:
saslpasswd2: could not find auxprop plugin, was searching for [all]

<!-- gh-comment-id:12418251 --> @hmandevteam commented on GitHub (Jan 18, 2013): always error message in messages file: saslpasswd2: could not find auxprop plugin, was searching for [all]
Author
Owner

@retspen commented on GitHub (Jan 18, 2013):

Then the only way to rebuild this package from source or srpm (without auxprop plugin)

<!-- gh-comment-id:12418457 --> @retspen commented on GitHub (Jan 18, 2013): Then the only way to rebuild this package from source or srpm (without auxprop plugin)
Author
Owner

@hmandevteam commented on GitHub (Jan 18, 2013):

ok, i'm going to modify spec file and rpmbuild -ba :)

<!-- gh-comment-id:12418494 --> @hmandevteam commented on GitHub (Jan 18, 2013): ok, i'm going to modify spec file and rpmbuild -ba :)
Author
Owner

@hmandevteam commented on GitHub (Jan 18, 2013):

i founded problem :)
lib64sasl2-plug-sasldb package was required but not auto installed

%package -n %{libname}-plug-sasldb
Summary: SASL sasldb auxprop plugin
Group: System/Libraries

Requirement for %%{name} is due to dbconverter-2 being

potentially called in %%post

Requires(post): %{name} >= %{version}

That requirement has to be here (in "Requires") also

(http://archives.mandrivalinux.com/cooker/2005-06/msg00109.php)

Requires: %{libname} = %{version}, %{name} >= %{version}
Provides: sasl-plug-sasldb

<!-- gh-comment-id:12418707 --> @hmandevteam commented on GitHub (Jan 18, 2013): i founded problem :) lib64sasl2-plug-sasldb package was required but not auto installed %package -n %{libname}-plug-sasldb Summary: SASL sasldb auxprop plugin Group: System/Libraries # Requirement for %%{name} is due to dbconverter-2 being # potentially called in %%post Requires(post): %{name} >= %{version} # That requirement has to be here (in "Requires") also # (http://archives.mandrivalinux.com/cooker/2005-06/msg00109.php) Requires: %{libname} = %{version}, %{name} >= %{version} Provides: sasl-plug-sasldb
Author
Owner

@hmandevteam commented on GitHub (Jan 18, 2013):

Now i had this new errore:
libvirtd[24383]: 2013-01-18 13:27:30.453+0000: 24389: error : virNetSASLSessionServerStep:624 : autenticazione fallita: Impossibile avviare la negoziazione SASL: -20 (SASL(-13): user not found: no secret in database)
libvirtd[24383]: 2013-01-18 13:27:30.453+0000: 24389: error : remoteDispatchAuthSaslStep:2413 : autenticazione fallita: autenticazione fallita
libvirtd[24383]: 2013-01-18 13:27:30.453+0000: 24383: error : virNetSocketReadWire:999 : End of file while reading data: Errore di input/output

<!-- gh-comment-id:12421514 --> @hmandevteam commented on GitHub (Jan 18, 2013): Now i had this new errore: libvirtd[24383]: 2013-01-18 13:27:30.453+0000: 24389: error : virNetSASLSessionServerStep:624 : autenticazione fallita: Impossibile avviare la negoziazione SASL: -20 (SASL(-13): user not found: no secret in database) libvirtd[24383]: 2013-01-18 13:27:30.453+0000: 24389: error : remoteDispatchAuthSaslStep:2413 : autenticazione fallita: autenticazione fallita libvirtd[24383]: 2013-01-18 13:27:30.453+0000: 24383: error : virNetSocketReadWire:999 : End of file while reading data: Errore di input/output
Author
Owner

@retspen commented on GitHub (Jan 18, 2013):

sasldblistusers2 -f /etc/libvirt/passwd.db

<!-- gh-comment-id:12421677 --> @retspen commented on GitHub (Jan 18, 2013): sasldblistusers2 -f /etc/libvirt/passwd.db
Author
Owner

@hmandevteam commented on GitHub (Jan 18, 2013):

admin@weng003lnx: userPassword
fred@weng003lnx: userPassword

<!-- gh-comment-id:12422010 --> @hmandevteam commented on GitHub (Jan 18, 2013): admin@weng003lnx: userPassword fred@weng003lnx: userPassword
Author
Owner

@retspen commented on GitHub (Jan 18, 2013):

Try login: admin@weng003lnx (with domain)

<!-- gh-comment-id:12422188 --> @retspen commented on GitHub (Jan 18, 2013): Try login: admin@weng003lnx (with domain)
Author
Owner

@hmandevteam commented on GitHub (Jan 18, 2013):

if i try to sing in with admin@weng003lnx it say me Please enter a correct username and password.

<!-- gh-comment-id:12422299 --> @hmandevteam commented on GitHub (Jan 18, 2013): if i try to sing in with admin@weng003lnx it say me Please enter a correct username and password.
Author
Owner

@retspen commented on GitHub (Jan 18, 2013):

cat /etc/sasl2/libvirt.conf

<!-- gh-comment-id:12422724 --> @retspen commented on GitHub (Jan 18, 2013): cat /etc/sasl2/libvirt.conf
Author
Owner

@hmandevteam commented on GitHub (Jan 18, 2013):

mech_list: digest-md5
keytab: /etc/libvirt/krb5.tab
sasldb_path: /etc/libvirt/passwd.db

<!-- gh-comment-id:12423287 --> @hmandevteam commented on GitHub (Jan 18, 2013): mech_list: digest-md5 keytab: /etc/libvirt/krb5.tab sasldb_path: /etc/libvirt/passwd.db
Author
Owner

@hmandevteam commented on GitHub (Jan 18, 2013):

[root@weng003lnx ~]# cat /etc/libvirt/libvirtd.conf
listen_tls = 0
listen_tcp = 1
unix_sock_group = "vboxusers"
unix_sock_ro_perms = "0777"
unix_sock_rw_perms = "0770"
auth_unix_ro = "none"
auth_unix_rw = "none"
auth_tcp = "sasl"

<!-- gh-comment-id:12423526 --> @hmandevteam commented on GitHub (Jan 18, 2013): [root@weng003lnx ~]# cat /etc/libvirt/libvirtd.conf listen_tls = 0 listen_tcp = 1 unix_sock_group = "vboxusers" unix_sock_ro_perms = "0777" unix_sock_rw_perms = "0770" auth_unix_ro = "none" auth_unix_rw = "none" auth_tcp = "sasl"
Author
Owner

@hmandevteam commented on GitHub (Jan 18, 2013):

[root@weng003lnx ~]# cat /etc/libvirt/libvirt.conf
all rows commented

<!-- gh-comment-id:12423640 --> @hmandevteam commented on GitHub (Jan 18, 2013): [root@weng003lnx ~]# cat /etc/libvirt/libvirt.conf all rows commented
Author
Owner

@retspen commented on GitHub (Jan 18, 2013):

Comment next line in libvirtd.conf:
unix_sock_group = "vboxusers"
unix_sock_ro_perms = "0777"
unix_sock_rw_perms = "0770"
auth_unix_ro = "none"
auth_unix_rw = "none"

restart daemon libvirtd and try to connect

<!-- gh-comment-id:12436083 --> @retspen commented on GitHub (Jan 18, 2013): Comment next line in libvirtd.conf: unix_sock_group = "vboxusers" unix_sock_ro_perms = "0777" unix_sock_rw_perms = "0770" auth_unix_ro = "none" auth_unix_rw = "none" restart daemon libvirtd and try to connect
Author
Owner

@hmandevteam commented on GitHub (Jan 19, 2013):

it's work :)
http://img560.imageshack.us/img560/7453/webvirtmgr1.jpg

but when i try to open virtual machine page (http://127.0.0.1:8000/vm/1/testpc/) i receive 500
libvir: error : invalid argument: virStorageVolLookupByPath

i created default storage with my virtual hd folder
http://img266.imageshack.us/img266/6892/webvirtmgr2.jpg

but seems that don't like

<!-- gh-comment-id:12451970 --> @hmandevteam commented on GitHub (Jan 19, 2013): it's work :) http://img560.imageshack.us/img560/7453/webvirtmgr1.jpg but when i try to open virtual machine page (http://127.0.0.1:8000/vm/1/testpc/) i receive 500 libvir: error : invalid argument: virStorageVolLookupByPath i created default storage with my virtual hd folder http://img266.imageshack.us/img266/6892/webvirtmgr2.jpg but seems that don't like
Author
Owner

@retspen commented on GitHub (Jan 19, 2013):

You need create VM in WebVirtMgr. If VM create in others GUI not support.

<!-- gh-comment-id:12453258 --> @retspen commented on GitHub (Jan 19, 2013): You need create VM in WebVirtMgr. If VM create in others GUI not support.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtmgr#10
No description provided.