View previous topic :: View next topic |
Author |
Message |
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon Oct 05, 2009 5:28 pm Post subject: |
|
|
strange, in every version of firefox I've tried, it uses different colours for tag names, literals and comments.
karl. |
|
Back to top |
|
|
sonia
Joined: 28 Dec 2008 Posts: 67 Location: Greece
|
Posted: Tue Oct 06, 2009 10:53 am Post subject: |
|
|
karlH wrote: |
strange, in every version of firefox I've tried, it uses different colours for tag names, literals and comments.
karl. |
no no maybe I wrote it wrong.
Firefox (3.5.3 | macosx snow leopard) it shows colors for everyhing
but the commented part, is not showed at all, that's why I told you, not gray but not even in any other color.
ps: I haven't restarted Icecast again, so to try the xml with changes you told me, once I'll do it I will inform you.
thank youuuuuuu _________________ www.freshwebradio.com |
|
Back to top |
|
|
sonia
Joined: 28 Dec 2008 Posts: 67 Location: Greece
|
Posted: Wed Oct 07, 2009 6:03 am Post subject: |
|
|
Good Day Karl!
Changed it! Restarted it! Working like a charm!
Thank you so much.
One last last question.
For this mount, if I want to change the username and the password, what should be done? just to change the values in the file /home/xxxxx/.htpasswd (which by the way, in this file there's only one line and has the following look--> test: 123456/ ..gt565#$@GS) and restart icecast? or something else must be done? and how?
or maybe I should do something like that?
<!-- Admin logs in with the username given below -->
<admin-user>xxxx</admin-user>
<admin-password>xxxx</admin-password>
</authentication>
but with values for the status.xsl?
such as
<!-- Status.xsl logs in with the username given below -->
<status.xsl-user>admin</status.xsl-user>
<status.xsl-password>12345678</status.xsl-password>
</authentication>
and place it with the other authentications of the xml.
or is it a silly idea?
thank you thank you _________________ www.freshwebradio.com |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Oct 08, 2009 12:45 am Post subject: |
|
|
The contents of the htpasswd file are cached in memory but the modification time of the file is checked so updates can be read in on-the-fly (no restart or notification needs to be done).
karl. |
|
Back to top |
|
|
sonia
Joined: 28 Dec 2008 Posts: 67 Location: Greece
|
Posted: Thu Oct 08, 2009 12:15 pm Post subject: |
|
|
karlH wrote: |
The contents of the htpasswd file are cached in memory but the modification time of the file is checked so updates can be read in on-the-fly (no restart or notification needs to be done).
karl. |
but you didn't answered me if I must write to the xml, something like that
<!-- Status.xsl logs in with the username given below -->
<status.xsl-user>admin</status.xsl-user>
<status.xsl-password>12345678</status.xsl-password>
</authentication>
_________________ www.freshwebradio.com |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Oct 08, 2009 12:45 pm Post subject: |
|
|
Those tags are invalid. What is wrong with the <mount> for /status.xsl having a htpasswd authentication section?
karl. |
|
Back to top |
|
|
sonia
Joined: 28 Dec 2008 Posts: 67 Location: Greece
|
Posted: Thu Oct 08, 2009 5:41 pm Post subject: |
|
|
karlH wrote: |
Those tags are invalid. What is wrong with the <mount> for /status.xsl having a htpasswd authentication section?
karl. |
because finally, the page gives me the option to authenticate
but it does not accept the username and the password.
and this the way I tried it, exactly the support told me:
"cd /home/icecast
htpasswd -c .htpasswd icecast_stats
Then you enter the password twice, and it will write to the .htpasswd file"
so, that's why I asked if all that had to do with the xml and must be something to change in that.
...and I was so happy when I first saw the authentication panel... _________________ www.freshwebradio.com |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Oct 08, 2009 6:25 pm Post subject: |
|
|
htpasswd is an apache utility and according to their documentation
"The MD5 algorithm used by htpasswd is specific to the Apache software; passwords encrypted using it will not be usable with other Web servers."
You don't get files showing in the stats, so modifying the htpasswd via icecast is not handled directly. You can setup a mountpoint for a stream with the same htpasswd details just so that you can add details via the admin page if you wish. Or you can append the details directly to the file. eg
php -r 'printf("username:%s\n",md5("password"));' >> .htpasswd
karl. |
|
Back to top |
|
|
sonia
Joined: 28 Dec 2008 Posts: 67 Location: Greece
|
Posted: Thu Oct 08, 2009 9:18 pm Post subject: |
|
|
and this I suppose to the xml, and specifically at "Line Number 1, Column 1" (<<-that's the error I get when I cannot log in that's how I thought it)
correct? if it's not, please tell me exactly which file and where.
not to the .ht file, because I have already test it and is not working. _________________ www.freshwebradio.com |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Oct 09, 2009 12:11 am Post subject: |
|
|
I don't understand your reply. Changes to the htpasswd file do not mean any changes to the icecast xml or xsl.
karl. |
|
Back to top |
|
|
sonia
Joined: 28 Dec 2008 Posts: 67 Location: Greece
|
Posted: Fri Oct 09, 2009 1:22 pm Post subject: |
|
|
karlH wrote: |
I don't understand your reply. Changes to the htpasswd file do not mean any changes to the icecast xml or xsl.
karl. |
I already did what you said and is not working, If I write your line to .htpasswd.
I still get the message:
XML Parsing Error: syntax error
Location: http://xx.xx.xx.xxx:8000/status.xsl
Line Number 1, Column 1:You need to authenticate
^ _________________ www.freshwebradio.com |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Oct 09, 2009 2:11 pm Post subject: |
|
|
what have you actually written to .htpasswd though. I just gave you a command line to populate that file. You are not giving any real info to check, no error log, url, xml, or auth details to check
karl. |
|
Back to top |
|
|
sonia
Joined: 28 Dec 2008 Posts: 67 Location: Greece
|
Posted: Fri Oct 09, 2009 3:16 pm Post subject: |
|
|
karlH wrote: |
what have you actually written to .htpasswd though. I just gave you a command line to populate that file. You are not giving any real info to check, no error log, url, xml, or auth details to check
karl. |
Access log:my.ip. - - [09/Oct/2009:16:20:04 +0300] "GET /status.xsl HTTP/1.1" 401 115 "-" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3" 0
my.ip - icecast_stats [09/Oct/2009:16:20:12 +0300] "GET /status.xsl HTTP/1.1" 401 115 "-" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3" 0
the file .htpasswd, has only:
php -r 'printf("my.username:%s\n",md5("my.password"));' >> .htpasswd
I noticed that from today there is a second file called .htpasswd.bak and has the following info (it's a copy paste exactly as you see it):
icecast_stats:97tJK1jM5haBM
test:$apr1$aq0dUYR0$kbKftRaaBApefYFQc6QT8/
test1:test123
test11:4tLSycciXzEzA
at the error log, has only the stats and what's playing now, as info. nothing as error message, with the action I'm trying to do.
The following error message, I get it when I visit the page, it doesn't accep the u/n and password that I have set, and when I press cancel, it gives me the following:
XML Parsing Error: syntax error
Location: http://xx.xx.xx.xxx:8000/status.xsl
Line Number 1, Column 1:You need to authenticate
^ _________________ www.freshwebradio.com |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Oct 09, 2009 5:56 pm Post subject: |
|
|
I'm not sure why you have placed the php command I gave into the auth htpasswd file. The htpasswd file is meant to contain lines each with a format of user:pass where pass is encoded as md5. The php command will append the specified user/pass details to the end of it
The bak file is from some editing you have done because the temporary file icecast creates has a .tmp extension, but we can see from that the test user was created by the apache utility because it's not md5.
karl. |
|
Back to top |
|
|
sonia
Joined: 28 Dec 2008 Posts: 67 Location: Greece
|
Posted: Fri Oct 09, 2009 6:54 pm Post subject: |
|
|
karlH wrote: |
I'm not sure why you have placed the php command I gave into the auth htpasswd file. The htpasswd file is meant to contain lines each with a format of user:pass where pass is encoded as md5. The php command will append the specified user/pass details to the end of it
The bak file is from some editing you have done because the temporary file icecast creates has a .tmp extension, but we can see from that the test user was created by the apache utility because it's not md5.
karl. |
Because that's what I understood. The php line to write it in the .ht file.
So what are proposing me to do?? _________________ www.freshwebradio.com |
|
Back to top |
|
|
|