Comments (6)
Do not temper wih lizmap-docker-compose/lizmap/var/lizmap-config/localconfig.ini.php
.
Instead, add a config snippet lizmap-docker-compose/lizmap/etc/localconfig.d/
with your ldap configuration.
from lizmap-docker-compose.
Hi ,
Thank for your reply.
Does it mean that I have to copy the file localconfig.ini.php modified for LDAP to the directory izmap-docker-compose/lizmap/etc/localconfig.d/localconfig.ini.php ?
lizmap-docker-compose/lizmap/etc/localconfig.d$ ls
README.md test.ini.php
Regards
from lizmap-docker-compose.
Does it mean that I have to copy the file localconfig.ini.php
No, don't do this ! Just create a ini.php file with only the ldap configuration section.
from lizmap-docker-compose.
Hi,
I create a file as recommended but still have the same result.
lizmap-docker-compose/lizmap$ ls etc/localconfig.d/
localconfig.ini.php README.md test.ini.php
lizmap-docker-compose/lizmap$ cat etc/localconfig.d/localconfig.ini.php
[modules]
ldapdao.access=1
[coordplugin_auth]
driver=ldapdao
after reboot the docker container , I can see that those parametres have been added into the file lizmap/var:/lizmap-config/localcionfig.ini.php
lizmap-docker-compose/lizmap$ cat var/lizmap-config/localconfig.ini.php
;
;for security reasons , don't remove or modify the first line
; put here configuration variables that are specific to this installation
; chmod for files created by Lizmap and Jelix
;chmodFile=0664
;chmodDir=0775
[modules]
;; uncomment it if you want to use ldap for authentication
;; see documentation to complete the ldap configuration
;ldapdao.access=2
jcommunity.installparam[manualconfig]=on
jcommunity.installparam[masteradmin]=off
jcommunity.installparam[eps]="[index,admin]"
ldapdao.access=1
[coordplugin_auth]
driver=ldapdao
;; uncomment it if you want to use ldap for authentication
;; see documentation to complete the ldap configuration
;driver=ldapdao
[mailer]
;; to send email via SMTP, uncomment this line, and fill the section smtp:mailer into profiles.ini.php
;mailerType=smtp
[test_dropin]
true_value=true
[coordplugins]
lizmap=lizmapConfig.ini.php
but still get the message ::
3liz-lizmap | Setup config php-fpm
3liz-lizmap | Create the account for admin
3liz-lizmap | 2023-01-06 16:02:24 [0] Too few arguments to function ldapdaoAuthDriver::__construct(), 0 passed in /www/lizmap/vendor/jelix/jelix/lib/jelix/core/jAppInstance.php on line 414 and exactly 1 expected /www/lizmap/vendor/jelix/ldapdao-module/ldapdao/plugins/auth/ldapdao/ldapdao.auth.php 30
3liz-lizmap |
3liz-lizmap exited with code 1
I think that the issue in this this section when using LDAP configuration.
echo "Create the account for $LIZMAP_ADMIN_LOGIN"
source=$LIZMAP_ADMIN_DEFAULT_PASSWORD_SOURCE
if [ "$source" == "" ]; then
source="__default"
fi
if [ "$source" == "__random" ]; then
su -c "php lizmap/scripts/script.php jcommunityuser:create -v --no-error-if-exists --admin $LIZMAP_ADMIN_LOGIN $LIZMAP_ADMIN_EMAIL" $LIZMAP_USERuser:create -v --no-error-if-exists --admin --reset $LIZMAP_ADMIN_LOGIN $LIZMAP_ADMIN_EMAIL" $LIZMAP_USER
elif [ "$source" == "__reset" ]; then
su -c "php lizmap/scripts/script.php jcommunity
elif [ "$source" == "__default" ]; then
su -c "php lizmap/scripts/script.php jcommunityuser:create -v --no-error-if-exists --admin --reset $LIZMAP_ADMIN_LOGIN $LIZMAP_ADMIN_EMAIL admin" $LIZMAP_USERuser:create -v --no-error-if-exists --admin $LIZMAP_ADMIN_LOGIN $LIZMAP_ADMIN_EMAIL $pass" $LIZMAP_USER
elif [ -f $source ]; then
pass=$(cat $source)
su -c "php lizmap/scripts/script.php jcommunity
else
echo '[ERROR] Invalid LIZMAP_ADMIN_DEFAULT_SOURCE'
exit 1
fi
from lizmap-docker-compose.
I'm not the expert here abound ldap and jelix... ping @laurentj.
from lizmap-docker-compose.
Not related directly to this repo: see https://github.com/3liz/lizmap-web-client
from lizmap-docker-compose.
Related Issues (20)
- close issue
- Installation Ended. This username Already exists HOT 1
- problem displaying images associated with points on the map HOT 3
- Persmission denied when running ./configure.sh configure HOT 1
- pg_service.conf not copied HOT 6
- inconsistency in the configure() procedure HOT 4
- Install lizmap with docker compose on a server HOT 2
- templates and additional modules HOT 1
- Production server requirements HOT 1
- ERRO docker web client offiline HOT 11
- QGIS server : cp: cannot stat '/srv/etc/qgis/*': No such file or directory HOT 7
- lizmap/www directory not created HOT 4
- Lizmap docker compose and PostGIS HOT 2
- can't create 'lizmap/var/config
- The lizmap_server plugin needs to be updated HOT 1
- Proper way to update lizmap version HOT 2
- /lizmap/www/ directory is empty
- URL Qgis Server not correct HOT 2
- rollback config files
- www.dist
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lizmap-docker-compose.