Custom authenticated image or logo in the usermin/webmin login form?

11 posts / 0 new
Last post
#1 Tue, 11/24/2009 - 05:39
fakemoth
fakemoth's picture

Custom authenticated image or logo in the usermin/webmin login form?

Hello, posted some question here http://www.virtualmin.com/node/9898

The /etc/usermin/custom-lang method works but how can we make it more... organic? IE8 is always complaining (via annoying pop-ups, Firefox is silent in that matter) that the picture comes from another site, another cert, unauthenticated content and stuff. Can we grab the image locally somehow, not via URL?

I know it's not a problem but my users don't. Got a lot of phone calls lately :)

Thanks.

Tue, 11/24/2009 - 08:56
andreychek

Sorry, I saw your message there and hadn't yet gotten around to digging into what that problem may be :-)

Is the URL for your control panel "https" while your logo is just "http"? Maybe you can try putting the logo in a place where you can access it with the same domain name and both with "https", it's possible that could help.

-Eric

Mon, 11/30/2009 - 23:24 (Reply to #2)
JamieCameron

One solution would be to do the following :

1) Under your Webmin base directory (typically /usr/libexec/webmin or /usr/share/webmin), create the sub-directories mylogos and mylogos/unauthenticated

2) Put your images into mylogos/unauthenticated

3) In your custom-lang file, use HTML like <img src=/mylogos/unauthenticated/logo.png>

''

Tue, 11/24/2009 - 16:16
fakemoth
fakemoth's picture

Of course I tried but you know IE, makes a big deal about everything trying to "keep you safe" - but it has another url so... another cert warning.

Don't take the name of root in vain...

Wed, 11/25/2009 - 02:50
fakemoth
fakemoth's picture

PS: in Firefox via https...whatever... now doesn't load at all > the broken image icon.

I noticed someting unusual in Usermin - there are 3 Romanian characters with problems in the e-mails; how can I solve this? Here they are with their coresponding mambo...joomla :)

ă >>> & # 2 5 9 ;

î >>> = E E

ş >>> & # 3 5 1 ;

I've put some spaces between the chars to get them in your forum (it prints of course the diacritics)

Don't take the name of root in vain...

Thu, 11/26/2009 - 12:42 (Reply to #5)
Joe
Joe's picture

That'd probably be a bug. Though character encodings are tricky...mail can have different encodings, and users can set their preferred encoding in Usermin.

But you might file a ticket and see what Jamie says on the subject. He understands this stuff way better than I do.

--

Check out the forum guidelines!

Tue, 12/01/2009 - 02:47
fakemoth
fakemoth's picture

It doesn't work either, I still get the broken image icon in any browser. The path is this one: /usr/libexec/webmin/mylogos/unauthenticated/logo.jpg , in /etc/webmin/custom-lang I have session_prefix=<img src=/mylogos/unauthenticated/logo.jpg>, the path is correct in the browser: https://something:XXXX/mylogos/unauthenticated/logo.jpg ...

So what is wrong? Man it can't be that hard to add an image to an web interface :) Hope it's only a typo.

Don't take the name of root in vain...

Tue, 12/01/2009 - 11:35 (Reply to #7)
JamieCameron

What happens if you just open that image directly in your browser - what error is displayed?

''

Tue, 12/01/2009 - 23:58
fakemoth
fakemoth's picture

No errors, just keeps presenting the login form. With the broken icon on top.

Don't take the name of root in vain...

Wed, 12/02/2009 - 00:14 (Reply to #9)
JamieCameron

Sorry, I made a mistake .. you really want to put your logo in the existing /usr/libexec/webmin/unauthenticated directory, and then refer to it with HTML like <img src=/unauthenticated/mylogo.png>

''

Wed, 12/02/2009 - 02:00
fakemoth
fakemoth's picture

It works. In Usermin too, by adding the dir. to /usr/libexec/usermin/ With 0 warnings in any browser. Thanks!

It's a small thing but it changes and personalizes our page. And we have great logos, worth showing them around :)

Don't take the name of root in vain...

Topic locked