[dokuwiki] Re: Hostbased ACLs

  • From: Christian Marg <christian.marg@xxxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 18 Aug 2005 10:10:21 +0200

Hello...

Andreas Gohr wrote:
Christian Marg writes:

After battling some time with darcs, I seem now to have a 11Kb patch file for 10 lines added to inc/auth.php - seems like the last TAG I have is the release of 2005-07-13. How do I change that?

This shouldn't have anything to do with tags. Try to get a fresh checkout, reapply your changes (making sure not to change things like lineendings as some windows editor love to do) record and send your patch.

started again with
- darcs get http://dev.splitbrain.org/darcs/dokuwiki
- reapplied the changes (simply inserting 10 Lines)
- darcs record (recording only relevant changes, some hunks were just "Blank line deleted, Blank line added", maybe a line break was moved a place left or right by my editor)
- darcs revert (to get rid of those weird Null-Hunks)
- darcs send -o ..\testfile


I get the same size again - and it is *really* *not* related to line endings. Anyway I attached it, so you can see for yourself - and maybe help me to reduce the size of the patches I send.

bye
Christian
New patches:

[Try to assign hosts to ACL-Groups if not logged in
christian.marg@xxxxxxxxxxxxxxx**20050817204821] {
hunk ./inc/auth.php 233
+  # Try to do a fqdn-based ACL-Check if no user/groups were given
+  if((!$user)&&($groups==null)) {
+    $fqdn=gethostbyaddr($_SERVER['REMOTE_ADDR']);
+    $info=auth_getUserData($fqdn);
+    if($info) {
+      $user=$fqdn;
+      $groups=$info['grps'];
+    }
+  }
+
}

Context:

[fileicons for non image media #198
Esther Brunner <esther@xxxxxxxxxxxxx>**20050816192301] 
[indexer improvements & fix for underscores
chris@xxxxxxxxxxxxxxxxx**20050816032408] 
[ml() bugfix - images were broken with no rewriting
Esther Brunner <esther@xxxxxxxxxxxxx>**20050816182528] 
[delete meta files on page deletion
Esther Brunner <esther@xxxxxxxxxxxxx>**20050816182201] 
[fixed minor bug introduced yesterday
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050815192355] 
[polish language update
Grzegorz Zur <grzesiekzur@xxxxxxx>**20050814203914
 reviewed
 added correct stopwords list with correct encoding
] 
[much faster implementation of idx_getPageWords()
Chris Smith <chris@xxxxxxxxxxxxx>**20050815184030] 
[minor fixes to base Renderer class
chris@xxxxxxxxxxxxxxxxx**20050814221006] 
[zh-tw.20050814.diff
chinsan <chinsan@xxxxxxxxxxxxxxx>**20050814214153] 
[zh-tw-20050815-subscribermail.txt
chinsan <chinsan@xxxxxxxxxxxxxxx>**20050814231649] 
[added stopword support to the indexer, added indexer webbug
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050814181035] 
[fix for external images and the media rewrite patch
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050814124731] 
[added own mailtext for subscribe feature
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050814115406] 
[subscribe_changes.patch
steven-danz@xxxxxxxxx**20050808045034
 Updates to the subscription patch to add a configuration option to 
enable/disable
 the feature, move the messages to the language files, and general cleanup
] 
[URL rewriting for media files
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050814101834
 This patch adds nicer URLs for media files (for fetch.php and
 detail.php)
 
 !IMPORTANT! Users of rewrite mode 1 need to adjust their .htaccess
 See .htaccess.dist for an example
] 
[syntax_plugin base class update, change render param name from $mode to $format
chris@xxxxxxxxxxxxxxxxx**20050813182407] 
[renderer update, move plugin() method from xhtml to renderer
chris@xxxxxxxxxxxxxxxxx**20050813182213] 
[zh-tw.20050813.diff
chinsan <chinsan@xxxxxxxxxxxxxxx>**20050813152248] 
[more indexer functions
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050813142047] 
[fix for recent changes if start page has a namespace #500
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050811184846] 
[French translation update
Alexandre ROSSI <niol@xxxxxxxxxxxxxxxxxxxxx>**20050808185240] 
[nl language update
Riny Heijdendael <riny@xxxxxxxxxxxxxx>**20050808190524] 
[a first step for search indexing - nothing to see yet
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050807203322] 
[command line utilities for DokuWiki
Harry Fuecks <hfuecks@xxxxxxxxx>**20050807201309
 This patch adds a command line tool which should help people modify
 wiki pages on the command line.
 
 Usage would be something like;
 
 $ ./dokuwiki/bin/dwpage.php checkout wiki:syntax > /home/harryf/syntax.txt
 $ vi syntax.txt
 $ ./dokuwiki/bin/dwpage.php -m "Document new syntax" commit syntax.txt 
wiki:syntax
 
 The second script outputs a list of wiki ids, seperated by newlines.
 The idea would be it get's run by a cron job at regular intervals and
 has it's results piped to a text file.
 
] 
[danish language update
koeppe <koeppe@xxxxxxxx>**20050807195958] 
[xhtml fix for recent changes #499
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050807134726] 
[changes to the page subscription feature
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050806212000] 
[track_changes.patch
Steven Danz <steven-danz@xxxxxxxxx>**20050627021748
 Second go at including changes to allow users to sign up on  
 mailing lists so they may receive emails each time the page
 they are interested in is updated.
] 
[caching for feeds
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050806155857
 This patch adds caching for XML/ATOM feeds. This is most useful for the
 default feed (linked from the footer and HTML meta header) as this is
 usually the most used one.
 
 The cache is invalidated if a change was made (by checking the the
 filemtime of the changelog). A 5 minute settling time is used to avoid
 invalidating the cache too often when the wiki changes rapidly.
] 
[Alternative fix for #384
Harry Fuecks <hfuecks@xxxxxxxxx>**20050806151204
 The bug with emphasis syntax clashing with URLs did still occur with
 protocols different from http or ftp. This patch might be a better
 solution.
 
 I had to use [^\x00]* instead of .* - for some reason the later won't
 work properly in this case. It means people won't be able to use ASCII
 NUL characters inside an emphasis.
 
 The other thing that won't work is this;
 
 Won't work: //semi colon here>://
 
 People will need to make sure there is at least a space - this will work;
 
 Works //semi colon here>: //
 
] 
[spanish language update
Bernardo Arlandis Mañó <bernardo@xxxxxxxxxxxx>**20050805200202] 
[minor plugin fixes to protect against invalid/malformed plugins
chris@xxxxxxxxxxxxxxxxx**20050804235036] 
[plugin tweaks, info plugin fixes
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050803180226] 
[fix for closing plugindir
Esther Brunner <esther@xxxxxxxxxxxxx>**20050803172402] 
[support for plugin subfolders added - plugins/[name]/[type]/[file].php
chris@xxxxxxxxxxxxxxxxx**20050802191421] 
[syntax plugin class prototypes : fixes to previous update
chris@xxxxxxxxxxxxxxxxx**20050802005846] 
[plugin javascript load fix: print.css -> script.js
chris@xxxxxxxxxxxxxxxxx**20050802084121] 
[Load plugin javascript
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050801182242
 Javascript files from plugins called script.js are loaded automatically
] 
[Personal wordlist for spellchecker #488
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050731172612
 This patch allows you to add a file named conf/words.aspell with your own
 words you don't want the spellchecker to choke on.
 
 Thanks to Steven Danz for code idea
] 
[image metadata editor
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050731163554
 This patch adds an meta data editor for JPEG files. Currently title,
 caption, artist, copyright and keywords can be saved. The data is saved
 to the apropriate IPTC fields. Additional fields can be added in the
 appropriate template.
 
 Compatibility testing with other programs is needed!
] 
[optimized Image metadata handling
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050731115030] 
[Plugins can  add their own CSS now
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050731073521
 Plugins can use their own styleheets now. They are loaded in the tpl_metaheader
 function.
 
 The following files are used if existing in the plugin's directory:
 
 style.css  - overall style used always
 screen.css - only used in normal view (media=screen)
 print.css  - only used when printing a page (media=print)
] 
[Changed pluginloading to use references
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050730215156
 This patch allows the use of $this in syntax plugins to set internal variables
 and let them remain between handle and render calls. Even when it is possible
 now to use this method you should exchange data betwenn handler and render 
calls
 by using the $data array only.
] 
[recoded chinese language files #485
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050730112550] 
[fallback to default template if custom one is not available
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050729163001] 
[typo fix for actions.inc #480
Johannes Buchner <buchner.johannes@xxxxxx>**20050729161331] 
[DOKU_CONF define for config directory #479
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050729155457] 
[GeSHi updated to 1.0.7.1
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050728204042] 
[use fread instead of fpassthru in fetch.php
Brian Cowan <brian.cowan@xxxxxxxx>**20050728184238] 
[added missing JavaScript files for fancy footnotes
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050728181307] 
[footnote fix: update to previous patch, corrects IE issues
chris@xxxxxxxxxxxxxxxxx**20050728124131] 
[syntax plugin class update: add getAllowedTypes() method (compatible with 
plugins written prior to the patch, although they should be updated!)
chris@xxxxxxxxxxxxxxxxx**20050728005720] 
[footnote fix: almagamate identical footnotes, insitu footnote popups
chris@xxxxxxxxxxxxxxxxx**20050728005522] 
[handle all RFC 1738 compliable schemes in external links
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050728180447
 RFC 1738 states:
    Scheme names consist of a sequence of characters. The lower case
    letters "a"--"z", digits, and the characters plus ("+"), period
    ("."), and hyphen ("-") are allowed.
 
 DokuWiki did only recognize alphanumeric characters, this patch adds
 periods, plus and hyphen.
 
 Thanks to "ytrewq1" for pointing that out.
] 
[es language update
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050726191412] 
[added missing detail.php
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050725183410] 
[EXIF/IPTC metadata in media popup
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050724201111] 
[some minor fixes in image detail handling
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050724125047] 
[first step in Image metadata support
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050724115540
 This adds a detail page for images, for JPEG files
 additional metadata from EXIF and IPTC fields is shown
] 
[removed custom.conf
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050723205235
 custom.conf is no longer supported
] 
[Local configuration files #349
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050723204824
 Local configs can now be added to the following files to make
 updating simpler:
 
 acronyms.local.conf
 mime.local.conf
 smileys.local.conf
 entities.local.conf
 interwiki.local.conf
] 
[local_acronyms.patch
Steven Danz <steven-danz@xxxxxxxxx>**20050628023628
 Add the option of using a local.acronyms.conf file to specify local acronyms
 without having to edit the default set
] 
[Fixed email link validation issue in 'visible' mode to conform RFC1738
Alexandre ROSSI <niol@xxxxxxxxxxxxxxxxxxxxx>**20050722170210] 
[italian language update
Roberto Bolli <info@xxxxxxxx>**20050719211658] 
[zh-tw lang update
chinsan <chinsan@xxxxxxxxxxxxxxx>**20050719211352] 
[pagetemplate support #104
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050718173842
 This adds very simple pagetemplate support. When a file named _template.txt
 exists in a namespace this file's contents are loaded into the editor when
 a new page is added in the namespace.
 
 Please note that this file is not editable from within the Wiki as it starts
 with an underscore. The wiki admin has to create it her self on the
 filesystem.
] 
[useheading fixes #460 #465
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050716111225] 
[fix for auth_ldap if mapping is not defined
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050715213645] 
[Doku_Handler->plugin() method fix, incorrectly named handler object
chris@xxxxxxxxxxxxxxxxx**20050714223751] 
[The authcheck now prints a warning if no ACLs are available.
Andreas Gohr <andi@xxxxxxxxxxxxxx>**20050714201333] 
[updated GeSHi to 1.0.7
andi@xxxxxxxxxxxxxx**20050714193336] 
[small print.css style adjustments
Justin Kelly <linuxppc@xxxxxxxxx>**20050714191517] 
[long <?php tag update, all for tpl/default/footer.html
chris@xxxxxxxxxxxxxxxxx**20050714002731] 
[fix for multiply entity #457
andi@xxxxxxxxxxxxxx**20050713180456] 
[TAG rel 2005-07-13
andi@xxxxxxxxxxxxxx**20050713173830] 
Patch bundle hash:
197b598f6fc9458ab3c4a1a7563a43b4c75e7eab

Other related posts: