[pve-devel] need help to login to pve2-manager

Alexandre DERUMIER aderumier at odiso.com
Wed Aug 24 11:38:51 CEST 2011


error 500 : http://proxmox2/api2/json/access/domains 


[error] [client 192.168.198.4] not initialized at /usr/share/perl5/PVE/RPCEnvironment.pm line 220, <DATA> line 522.\n, 




# get the singleton
sub get {

    die "not initialized" if !$pve_env;

    return $pve_env;
}




----- Mail original ----- 

De: "Alexandre DERUMIER" <aderumier at odiso.com> 
À: "Dietmar Maurer" <dietmar at proxmox.com> 
Cc: pve-devel at pve.proxmox.com 
Envoyé: Mercredi 24 Août 2011 10:56:21 
Objet: Re: [pve-devel] need help to login to pve2-manager 

> Do you get any error in the browsers (use firebug or something similar to debug) 


got an error 500 on : 

https://drupal1.adm.odiso.net:8006/api2/json/access/domains 

(i don't have domains.cfg file) 


> Also try 'pvesh' (a command line interface for the API): 

ok no problem 

# pvesh 
entering PVE shell - type 'help' for help 
pve:/> get access/domains 
200 OK 
[ 
{ 
"comment" : "Proxmox VE authentication server", 
"realm" : "pve", 
"type" : "builtin" 
}, 
{ 
"comment" : "Linux PAM standard authentication", 
"realm" : "pam", 
"type" : "builtin" 
} 
] 



> The correct pve username is 'root at pam' 

ok, test works with root at pam 


perl auth-test.pl root at pam 
password: ********* 
Authentication Successful!! 


i have add the testuser at pve but can't login with. 


so the problem seem to be related with pve-manager interface. 
When I click on Login, i don't see any http query in firebug. 



----- Mail original ----- 

De: "Dietmar Maurer" <dietmar at proxmox.com> 
À: "Alexandre DERUMIER" <aderumier at odiso.com>, pve-devel at pve.proxmox.com 
Envoyé: Mercredi 24 Août 2011 10:20:26 
Objet: RE: need help to login to pve2-manager 

HI Alexandre, 

would you mind to send text mails instead of html - that is easier to handle for me. 

Also, we should send all those mails to pve-devel list (added now) 

> I'm trying to login to pve2-manager, as root but it doesn't seem to works. 
> 
> realm combo is empty. 

Do you get any error in the browsers (use firebug or something similar to debug) 

Also try 'pvesh' (a command line interface for the API): 

# pvesh 
entering PVE shell - type 'help' for help 
pve:/> get access/domains 
200 OK 
[ 
{ 
"comment" : "Proxmox VE authentication server", 
"realm" : "pve", 
"type" : "builtin" 
}, 
{ 
"comment" : "Linux PAM standard authentication", 
"realm" : "pam", 
"type" : "builtin" 
} 
] 

Does that work? 

> I read the doc, root use by default the @pam realm, but i don't see anything in 
> /var/log/auth.log. 
> I also try with the auth-test.pl from pve-access-control package, 
> 
> # perl auth-test.pl root 
> password: ********* 
> value 'root' does not look like a valid user name 

The correct pve username is 'root at pam' 

> 
> 
> So i wan't to try with @pve realm, but i don't have user.cfg / shadow.cfg. 
> 
> 
> could you tell me how to create an admin user with pveum ? 

first: update the pve-access-contol package (just uploaded a fix). 

then take a look at: 

# pveum help useradd 

and try: 

# pveum useradd testuser at pve -p 

(then type the password) 

- Dietmar 




-- 

-- 





Alexandre Derumier 
Ingénieur système 
e-mail : aderumier at odiso.com 
Tél : +33 (0)3 20 68 88 90 
Fax : +33 (0)3 20 68 90 81 
45 Bvd du Général Leclerc 
59100 ROUBAIX - FRANCE 














_______________________________________________ 
pve-devel mailing list 
pve-devel at pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 



-- 

-- 




	
	Alexandre Derumier 
Ingénieur système 
e-mail : aderumier at odiso.com 
Tél : +33 (0)3 20 68 88 90 
Fax : +33 (0)3 20 68 90 81 
45 Bvd du Général Leclerc 
59100 ROUBAIX - FRANCE 













-------------- next part --------------
A non-text attachment was scrubbed...
Name: aderumier.vcf
Type: text/x-vcard
Size: 183 bytes
Desc: not available
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20110824/d624e9b4/attachment.vcf>


More information about the pve-devel mailing list