#foswiki 2012-09-08,Sat

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)

WhoWhatWhen
***SvenDowideit has quit IRC (Quit: ZNC - http://znc.sourceforge.net) [00:27]
.......................... (idle for 2h5mn)
GithubBot[foswiki] FoswikiBot pushed 1 new commit to master: http://git.io/csJqRA
[foswiki/master] Item12023: Add filter by log record contents - GeorgeClark
[02:32]
***GithubBot has left [02:32]
FoswikiBothttp://foswiki.org/Tasks/Item12023 [ Item12023: write a Log::Dispatch based Logger ] [02:32]
GithubBot[foswiki] FoswikiBot pushed 2 new commits to Release01x01: http://git.io/motClw
[foswiki/Release01x01] Item12023: Sync up unit tests for LogDispatch - GeorgeClark
[foswiki/Release01x01] Item12023: Typo - GeorgeClark
[02:46]
***GithubBot has left [02:46]
GithubBot[foswiki] FoswikiBot pushed 1 new commit to master: http://git.io/NZTxtQ
[foswiki/master] Item12023: Sync up unit tests for LogDispatch - GeorgeClark
[02:47]
***GithubBot has left [02:47]
................................................................................................................................... (idle for 10h52mn)
padraig_lennonHi - Is it possible to check with and IF statement if a particular skin is being used? for example I don't want to output certain areas of the page if I am in using skin=plain for printing
I checked IfStatements but that doesn't say anything about skins
[13:39]
..... (idle for 22mn)
sneexso, you just install the Perl modules and unpack foswiki and it works? [14:01]
gac410Well, it should. Of course you need to configure apache or your chosen web server too. [14:02]
sneexrgr [14:02]
gac410The installation guide has the steps. You do need to run bin/configure from the browser as well to set the initial configuration. [14:03]
kip3fpadraig_lennon: you could hide it with css, display:none [14:04]
...... (idle for 25mn)
Babaryou could even hide it with CSS only when cover=print :) [14:29]
....... (idle for 33mn)
sneexwhich plugin would be good to extend or change so that foswiki can make pages -- basically html pages
no humans will be involved, only the system itsef
itself*
[15:02]
gac410You mean you want to publish the contents of webs or topics as html pages? The Foswiki:Extensions/PublishPlugin can do that [15:04]
FoswikiBothttp://foswiki.org/Extensions/PublishPlugin [ PublishPlugin ] [15:04]
sneexwell, I want to have a DISTRICT Web with hosts as pages in each web but the system needs to populate them itself without humans
I'll figure something out
[15:06]
gac410sneex: Depends on how you want to populate them, no magic involved :) You can use external processes to write the Topic.txt files to disk, Or let the wiki "create" content by using %SEARCH% against other sources. [15:08]
sneexfoswiki suggests libapache-mod-perl .... but it prolly should suggest libapache2-mod-perl2 [15:12]
gac410Is that in the InstallationGuide, or in the Foswiki debian information? [15:13]
sneexthe debian version -- I had trouble with it and am manually fixing it for me [15:14]
gac410SvenDowideit: You around? [15:14]
sneexit he is in Sweden I can try to catch him 5am my time [15:15]
gac410Sven does the debian and rpm packaging. He's in Australia, So well past midnight there. [15:15]
sneexrgr
I'll ajust my irc times if I need him; I think I may have fixed the original issue of admin can't log in -- we'll see
[15:16]
gac410The admin password is reset using the dpkg configure command iirc, or something like that - though I don't know much about debian pkgs. [15:21]
sneexbut the problem is does admin go in .htaccess or not?
if it is there I can run configure -- if not then configure wont run\
[15:25]
gac410the "admin" is a special ID. I have no idea how the debian packaging handles it. Protection of configure itself is usually left to the apache admin to figure out, though in 1.1.6 we'll generate a .htdigest-configure file and keep it synced with the configure password.
When you register a user, (using Template auth and HtPasswdUser password manager) it inserts a record in .htpasswd with wikiname:passwordhash:email address
You can use apache config to protect bin/configure using one or more chosen registered users. But there is a catch-22 because you must configure first before you can register.
1.1.6 (or maybe 1.2 - can't remember now) will ship a default .htdigest-configure file that has a null password for user admin. And the first save from configure will set both the LocalSite.cfg password record, and the .htdigest file entry.
[15:27]
sneexI see. Um, why is the Wiki name not good if it doesn't mastch the UserName? IE, I want "ccsh" + "sysadmin" but wiki name of "ccshSA" -- doesnt like that :P
I noticed it in the foswiki.org site
[15:31]
gac410In order to be auto-linking, format must be Upper letter, then some Lower, another Upper, and then mixed as desired. [15:32]
sneexso its barfing on the lowerUpper
kk
[15:33]
gac410So CcshSA would be legal. ccshSA is not [15:33]
sneexlet me tbhink about that
think*
[15:33]
gac410Someday that may have to change - as more I18N happens, some languages don't have concepts of upper or lower. But we are a long way away from that. [15:34]
sneexCCSHSysAdmin I guess I will have to be happy [15:36]
gac410Some mappers allow the login name to be different from the WikiName. so you could login as ccshSA, but your user topic would still be CCSHSysAdmin or whatever you want.
The TopicUserMapper however I suspect always makes them the same. There is a checkbox to allow them to be different in the bin/configure ... but I've never tried it with a simple default mapper / password manager setup.
[15:37]
sneexits ok; there wont be actual humans so I have no need to be human friendly. OK, I have a question about registration - the AdminGroup should be changed so only my ID has admin rights but both are in /var/lib/foswiki/data/.htpasswd my id as well as admin -- this where it went south last time [15:41]
gac410admin is a special id. It's not managed by the foswiki mapper. It is controlled by the password is bin/configure and is usable in the event that the Mapper / PassworManager system is damaged.
It also bypasses all the access controls.
admin does not need to be in the .htpasswd file.
The password for admin is in LocalSite.cfg entry $Foswiki::cfg{Password}
The debian setup probably installs it in .htpasswd so that apache can control access to bin/configure.
But for protecting configure, you can use any ID you want. Configure doesn't look at who authenticated.
[15:42]
sneexok [15:46]
ok; I like this syntax: %IF{"(NOT defined GROUP) OR $GROUP = ''" then="" else="<!--"}%
but I feel to work on Debian I'm going to have to use the OS itself as the foswiki doesn't work quiet right on Debian
if I manually add a user to /var/lib/foswiki/data/Main/AdminGroup.txt Is the correct to be an admin?
[15:51]
gac410Foswiki internally should work exactly the same on any platform, except maybe windows where some non-default plugins don't have their helpers available. [15:53]
sneexadmin cannot log in on Debian 6 -- so unless I am horribly off in my 5 last installs - it is broke or I am crazy :) [15:54]
gac410In Foswiki 1.1.5, it needs to be added to the AdminGroup meta data. Recommended path is to use the API on the
Whey you say login, is that Apache login, or the Template login. Really, foswiki should not care about the platform.
the userid "admin" (all lower case), should never need to be in .htpasswd, or registered or anything. "admin" is a special ID that is always available (hardcoded in the perl code)
It is always accessed using template login. Never apache.
(Although if the debian config adds admin to .htpasswd, then apache should be happy as well)
[15:54]
sneexOK; let me tell you the steps Ive used? 1) Installed required Perl modules; 2) set source to fosiki.com; 3) installed foswiki -> Foswiki-1.1.5, Tue, 10 Apr 2012, build 14595, Plugin API version 2.2 ; next I create a UserAccount and then Im stuck... nothing I do allow admin to edit or change AdminGroup [15:59]
Babarsneex: foswiki works just fine on Debian 6 :p [16:00]
sneexlol
Im not saying I doing something wrong but I am missing what that is
how to did you get admin log ins?
[16:00]
gac410Are you using Apache auth or Foswiki template auth? [16:01]
BabarI think I used sudo
so went to .../Main/AdminGroup where there is a sudo link, clicked it, entered admin as username, the configure admin password (which is the one I put upon installation), et voilà!
[16:01]
sneexdoesn't matter -- Apache auth I can get in -- normal templateauth I cant -- Apache auth I cant edit -- template auth I cant edit
template auth with sudo link right?
[16:02]
gac410I'll let Babar help as I've never installed the debian packages. So I'm rather guessing. But I am certain that other than packaging, debian foswiki is identical. [16:03]
Babarlet me check configure... I set this up eons ago [16:03]
sneexgac410: you helped me a lot Thanks :) [16:04]
Babarfunny
seems I cannot login to configure :)
but I can login to foswiki using template login
[16:09]
sneexlol? too funny :P [16:10]
Babarah, I managed
there is a RequireUser admin in the config
[16:10]
sneexI can log in as a regular user -- admin is in the .htpasswd file but I thounght it wasn't supposed to be there -- the guys at work cant help -- they are twiki people [16:11]
Babarso with the admin user, and the admin password (the one set at dpkg time), I managed [16:11]
sneexlet me look [16:11]
Babarso admin has to be there, unless you "fix" the apache config [16:11]
sneexin /etc/foswiki/LocalSite.cfg
???
or /var/lib/foswiki/data/.htpasswd ?
looks like same password both places
yep same in both places
[16:12]
Babarso with this pass, and user admin, you should be able to access configure [16:15]
sneexcannot brb
I am already in via Apache auth but TemplateAuth says : Unrecognised user and/or password
[16:15]
Babarthere is no TemplateAuth in configure
and there shouldn't be any Apache auth outside of configure
unless you fiddled with that too
[16:16]
sneexthis link: http://area51/foswiki/bin/login/Main/AdminGroup?sudo=sudo
where does RequireUser go?
its not in config
[16:17]
Babarit's in /etc/foswiki/apache.conf normally
in the default one
[16:19]
sneexnot in /etc/foswiki/LocalSite.cfg [16:19]
Babarno, it's an apache directive, not a Foswiki one [16:19]
sneexk let me look
yes, it is there and admin is in .htpasswd -- Apache auth works
ok, not what?\
now* what do I do?
I am logged in as Admin via Apache Auth and I get: Access Denied
lol
[16:19]
Babarto configure?! [16:27]
sneexI cant edit configure brb with messages
1st error is:
Crypt::Eksblowfish::Bcrypt:
Not installed. Required to use or autodetect: bcrypt encoding.
second has to do with chili - which I think I can ignore:
Warning: Chili highlighter plugin is known to corrupt displayed text on Firefox 7 and Safari Rev. 6-17-2011.
[16:28]
Babaryes, that's harmless [16:31]
sneexthe chili one? I just reintalled libcrypt-eksblowfish-perl [16:32]
Babarboth :)
the other one is only useful if you want to use bcrypt instead of crypt or md5 or sha1 or...
[16:32]
padraig_lennonkip3f/Babar - Apologies I was away for a while there. I could use css but how do I check that cover=print in the IF statement? [16:33]
Babaryou don't. You put the container you want to hide in print in one of the styles which are display: none when using the print cover
I said to use CSS. Not perl, not Foswiki.
[16:34]
padraig_lennonBut how would I know that print=cover is set? [16:35]
Babarthis I'm trying to remember...
Micha or Arthur would know straight away
[16:35]
sneexI can't get pass the yellow text saying How to edit AdminGroup -- I just get Unrecognised user and/or password
is the AdminGroup the same as AdminGroup.txt?
[16:36]
Babarif you click the sudo link, and you enter admin / thepasswordyouusedforconfigure, it doesn't work?
yes, it is the same
works for me
(admin is already filled in)
[16:37]
sneexThe sudo link off the AdminGroup pages has the admin already filled it and uneditable but my passwd is same as I entered at foswiki install -- doesn't work; If I manually edit the AdminGroup.txt files - what is the syntax for adding a user? [16:40]
Babar* Set AdminGroup = YourUsername [16:41]
sneexkk let me try that way [16:41]
Babarbut it is really odd... the sudo has to work! [16:42]
sneexI must now have the syntax right, only admin only user -- I got to kick this more on my own (getting flustered so I will stop now.)
Thx for trying to help tho :)
not have it right*
is there nothing else about admin that goes in LocalSite.cfg?
I only have $Foswiki::cfg{Password} = in there
[16:44]
Babarno, that's pretty much it.
and the syntax... oh no, the new UI... not sure the old Set is supported
[16:49]
sneexk Let me kick it some more hec I may have to go back to dokuwiki lol [16:49]
Babaranyway, it's supposed to be <3 spaces (or any number of 3)><a star: *><a space>AdminGroup = UserName [16:50]
sneexk [16:50]
Babarbut it might be saved in the meta, so...
SORRY!
stupid me
* Set GROUP = UserName
which should already be there by default, but empty
[16:50]
sneexlol ok let me try that :)
nope I get a plain wiki topic link; AdminUser is alone in that group
[16:54]
Babarwhat?
ah, you have the new format then
ok, so...
[16:57]
sneex1.1.5 is new to me yes [16:58]
Babaryou should have a line like this in your AdminGroup.txt: %META:PREFERENCE{name="GROUP" title="GROUP" type="Set" value=""}% [16:58]
sneexyes [16:58]
Babarput your UserName inside the value="UserName" [16:58]
sneexyes, it is "" at present brb
OK, AdminUser isn't alone anymore -- I still can't log in as /foswiki/bin/login/Main/AdminGroup?sudo=sudo
:) Yippy :)
is the wiki syntax (ie non-GUI) the default editor now?
[16:58]
Babarit's been the default for a while now :)
oh, sorry
no, the default is the Wysiwyg
[17:03]
sneexk we have twiki at work but that's gonna change
syntax in those two is different
config syntax
[17:03]
Babarwysiwyg vs raw? Sure. [17:04]
sneexno, the way you configure the wiki internal isn't close anymore [17:04]
BabarI have no idea what you mean
maybe gac410 can translate? :)
[17:05]
sneexwell, for instance - this doesnt work:
NOTE: If you lock yourself out of AdminUser during setup activities or have forgotten the configure password, you can unset the configure password by editing the lib/LocalSite.cfg file and deleting the line that starts with Foswiki::cfg{Password} and then set it again by saving your settings in configure.
you can delete it change it whatever - You are screwed
[17:05]
Babarthis really shouldn't be.
if you delete it, then... ok, you are screwed because the default Debian config won't let you access configure :)
[17:06]
sneexthis the way it is -- I am learning to deal
lol yep
[17:06]
Babarin fact, it should. 'cause you deleted it from LocalSite, but not from .htpasswd
but if you forgotten it... you've forgotten it :)
[17:06]
sneexbut there is a back door if you are root [17:07]
Babaryou can always change it instead of removing it [17:07]
sneexum, hmmm ... that didn't work for me either [17:07]
Babarbut, as explained (did I?), the one in the .htpasswd is for the apache auth, so the one you get for configure
the one in LocalSite is for Foswiki, so the sudo link, and when you save modifications to configure
[17:08]
sneexI'm gonna leave it alone for the time being as there are other thing about foswiki I need to learn now ... maybe one day Debian will be fixed :)
they are the same passwd -- so what gives?
[17:08]
Babarit won't get fixed unless Sven is aware it's broken [17:09]
sneexyou tell him -- he wont understand me ... in factyou are the first :)
I been in IRC a long time and most people in Debian dont understand me lol
[17:09]
Babarwhere are you from? [17:10]
sneexsneex I gave up trying to tell them about stuff
it all gets fixed eventually. I am in the US- Florida
[17:10]
Babarsweet [17:11]
sneexrhel.ccsh.us is where I am atm
see if that resolves for you
I have rhel at work but *I* use Debian -- they hate it lol
[17:11]
Babarit does. [17:12]
sneexk
you can get to :1443 also -- if you need an acct in debian
been out there months and no one sees it lol
hmmm, still can edit the AdminGroup - to see the %META:PREFERENCE stuff weird
can't*
[17:13]
Babaryou cannot "see" the META from the web interfac
but you can use Add Members / Remove Members
[17:19]
sneexk
yep - that works; so Is there no need now to log in as admin?
can I remove it from .htpasswd or does it matter
[17:21]
Babaras I said, .htpasswd will only be used to authenticate you through configure [17:23]
sneexIt does BUT it doesn't allow edits [17:23]
Babaryou can change the Require user admin into Require user sneex, or most likel CsshSysadmin or whatever [17:23]
sneexk [17:23]
Babarand then you shouldn't need admin in .htpasswd [17:24]
sneexk I am just wondering why it doesn't work I'll figure it out
Thx for all your help :)
[17:24]
Babarpadraig_lennon: btw, I had a very quick look at hotels around your place... seems it's either backpack/YMCA or 4* ... [17:25]
sneexIf you see Sven - kicl his shins for me :) [17:25]
Babarso 30 € or 300 :)
sneex: SvenDowideit is here :) And usually reads the logs where you mentionned his nick, right Sven? :p
(just a bit early for him, around 5:30 am)
[17:25]
sneexhe has been quiet -- prolly sleeping :)
I'll hang out and see if he appears
[17:25]
padraig_lennonI have been asking some people here about that. When I have formal dates/numbers I will get back to you on this. Please don't book yet.. [17:26]
Babarbut anyway, as I said, it works for me, so, not sure what he can do about it
padraig_lennon: don't worry. Nobody really confirmed about the date, so...
[17:26]
padraig_lennonFlights yes if you want but hold off on the hotels until next week that would be best.. I might be able to get a deal.. [17:27]
Babarhum... flights are pretty much linked with hotels these days...
if you get a deal for 2 nights, and we book a flight for 4... :)
too bad easyjet flies to Belfast, but not to Dublin
[17:27]
padraig_lennon2hour bus/train from belfast.. [17:30]
BabarI wish I'll go. Haven't been to Dublin for over 20 years. [17:31]
padraig_lennonThe more the merrier!! [17:32]
Babartrying to remember last time I was in Ireland...
it was in Limerick, and it was probably just a bit under 20 years ago. Man, I'm old :(
[17:32]
sneexsneex ... [17:34]
procopiohi there [17:36]
Babarhi Rui [17:36]
procopioim trying something, and i dont really know how to do it
i want to a have "warning" on a topic in case there isnt at least one attachment with extensions doc,txt or pdf
i was thinking about using a something like a <div style="display: %IF{ ...
its the statement inside the IF that eludes me...
cant any one give me a hand?
[17:36]
sneexmaybe this?
like %IF{"(NOT defined GROUP) OR $GROUP = ''" then="" else="<!--"}% but dont know how you would detect attachments
obviously not GROUP
[17:40]
Babar"'%TOPIC%'/attachments[lc(name)~'*.pdf']" ?? [17:43]
sneexyeah or maybe somethig=ng long [INCLUDE("URL")] [17:44]
Babarand he's gone :) [17:44]
sneex:P
isnt irc wonderful?
helo
ehlo?
[17:44]
Babarprocopio: "'%TOPIC%'/attachments[lc(name)~'*.pdf']" ?? [17:46]
sneexSvenDowideit: yuo awake yet?
you*
4am there still :P
[17:53]
Babaroh right, DST! I forgot about that before when I said it was 5am [17:56]
sneexk
well if I mis him this time around there is ways anotherday :)
[17:58]
...... (idle for 28mn)
:P [18:26]
.................... (idle for 1h36mn)
***GuruPilgrim has quit IRC (Ping timeout: 264 seconds) [20:02]

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)