mirror of
https://github.com/retspen/webvirtmgr.git
synced 2026-04-25 15:45:51 +03:00
[GH-ISSUE #19] authentication failed :( #10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 ?
@retspen commented on GitHub (Jan 18, 2013):
cat /etc/sysconfig/saslauthd
what show?
@hmandevteam commented on GitHub (Jan 18, 2013):
Id: saslauthd.sysconfig,v 1.1 2001/05/02 10:55:48 wiget ExpAuthentications 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=
@retspen commented on GitHub (Jan 18, 2013):
/etc/sysconfig/saslauthd - OK
what show?
$ ldd /usr/sbin/saslpasswd2
$ ls -l /usr/lib64/sasl2
@hmandevteam commented on GitHub (Jan 18, 2013):
@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
@hmandevteam commented on GitHub (Jan 18, 2013):
always error message in messages file:
saslpasswd2: could not find auxprop plugin, was searching for [all]
@retspen commented on GitHub (Jan 18, 2013):
Then the only way to rebuild this package from source or srpm (without auxprop plugin)
@hmandevteam commented on GitHub (Jan 18, 2013):
ok, i'm going to modify spec file and rpmbuild -ba :)
@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
@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
@retspen commented on GitHub (Jan 18, 2013):
sasldblistusers2 -f /etc/libvirt/passwd.db
@hmandevteam commented on GitHub (Jan 18, 2013):
admin@weng003lnx: userPassword
fred@weng003lnx: userPassword
@retspen commented on GitHub (Jan 18, 2013):
Try login: admin@weng003lnx (with domain)
@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.
@retspen commented on GitHub (Jan 18, 2013):
cat /etc/sasl2/libvirt.conf
@hmandevteam commented on GitHub (Jan 18, 2013):
mech_list: digest-md5
keytab: /etc/libvirt/krb5.tab
sasldb_path: /etc/libvirt/passwd.db
@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"
@hmandevteam commented on GitHub (Jan 18, 2013):
[root@weng003lnx ~]# cat /etc/libvirt/libvirt.conf
all rows commented
@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
@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
@retspen commented on GitHub (Jan 19, 2013):
You need create VM in WebVirtMgr. If VM create in others GUI not support.