Giter Site home page Giter Site logo

lizmap-docker-compose-lizmap-1 | 2023-01-05 13:20:54 [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 about lizmap-docker-compose HOT 6 CLOSED

3liz avatar 3liz commented on June 3, 2024 2
lizmap-docker-compose-lizmap-1 | 2023-01-05 13:20:54 [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

from lizmap-docker-compose.

Comments (6)

dmarteau avatar dmarteau commented on June 3, 2024

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.

tuankhanh78 avatar tuankhanh78 commented on June 3, 2024

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.

dmarteau avatar dmarteau commented on June 3, 2024

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.

tuankhanh78 avatar tuankhanh78 commented on June 3, 2024

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_USER
elif [ "$source" == "__reset" ]; then
su -c "php lizmap/scripts/script.php jcommunity
user:create -v --no-error-if-exists --admin --reset $LIZMAP_ADMIN_LOGIN $LIZMAP_ADMIN_EMAIL" $LIZMAP_USER
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_USER
elif [ -f $source ]; then
pass=$(cat $source)
su -c "php lizmap/scripts/script.php jcommunity
user:create -v --no-error-if-exists --admin $LIZMAP_ADMIN_LOGIN $LIZMAP_ADMIN_EMAIL $pass" $LIZMAP_USER
else
echo '[ERROR] Invalid LIZMAP_ADMIN_DEFAULT_SOURCE'
exit 1
fi

from lizmap-docker-compose.

dmarteau avatar dmarteau commented on June 3, 2024

I'm not the expert here abound ldap and jelix... ping @laurentj.

from lizmap-docker-compose.

dmarteau avatar dmarteau commented on June 3, 2024

Not related directly to this repo: see https://github.com/3liz/lizmap-web-client

from lizmap-docker-compose.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.