3 # Alias: Use Dokuwiki for user management
6 # Dokuwiki - on OMD available on the URL /$OMD_SITE/wiki - is not only
7 # a useful Wiki, but also implements a user management.
8 # If you enable this option, you will have Nagios, NagVis, Multisite and
9 # other web applications access the user database of Dokuwiki for authentication.
10 # Otherwise users are managed via the file ~/etc/passwd.
17 echo "on: enable - use Dokuwiki for user management"
18 echo "off: disable - edit etc/htpasswd manually"
23 if [ ! -h ${OMD_ROOT}/etc
/htpasswd
] ||
[ ! $
(readlink
${OMD_ROOT}/etc
/htpasswd
) = "dokuwiki/users.auth.php" ]
25 mv ${OMD_ROOT}/etc
/htpasswd
${OMD_ROOT}/etc
/htpasswd.omd
26 ln -s dokuwiki
/users.auth.php
${OMD_ROOT}/etc
/htpasswd
28 ln -sf dokuwiki
/users.auth.php
${OMD_ROOT}/etc
/htpasswd
31 # Prevent destroying links showing anywhere else
32 if [ -h ${OMD_ROOT}/etc
/htpasswd
] && [ $
(readlink
${OMD_ROOT}/etc
/htpasswd
) = "dokuwiki/users.auth.php" ]
34 ln -sf htpasswd.omd
${OMD_ROOT}/etc
/htpasswd