[Mapbender-users] LDAP integration
Philipp van Biesbrock
philipp.vanbiesbrock at wheregroup.com
Fri Apr 23 00:12:16 PDT 2021
looks like you need to wrap an entry in parameters.yml in single quotes:
Something like this, I guess:
ldap.user.dn: 'user at example.com'
Am 23.04.21 um 01:22 schrieb Adrián Ariza:
> Thanks for your reply!
>
> I Install ldapBundle, configure security and parameters but now I see
> the error
>
> The reserved indicator "@" cannot start a plain scalar; you need to
> quote the scalar at line 13 (near "- @ldapClient").
>
> Could you gime som clue about fixing that?
>
> Thanks in advance!
>
> PD: Sorry for my english
>
>
>
> El jue, 22 abr 2021 a las 6:03, Philipp van Biesbrock
> (<philipp.vanbiesbrock at wheregroup.com
> <mailto:philipp.vanbiesbrock at wheregroup.com>>) escribió:
>
> Hi Adrián,
>
>
> Unfortunately we currently don't have any documentation. We're
> working on it though.
> Here's a quick tutorial for you:
>
> To use Mapbender with LDAP you can add this Symfony-bundle to your
> Mapbender:
>
> https://github.com/mapbender/ldapBundle
> <https://github.com/mapbender/ldapBundle>
>
> This can be done manually or via composer: composer require
> mapbender/ldapbundle
>
> Don't forget to register in AppKernel.php
>
> Configuration isn't too easy. Basically you need to configure
> security.yml and parameters.yml.
>
> Security.yml needs the ldapProvider and some firewall configuration:
>
> providers:
> ldapProvider:
> id: LDAPUserProvider
> main:
> entity:
> class: FOM\UserBundle\Entity\User
> property: username
> chain_provider:
> chain:
> providers: ["ldapProvider","main"]
>
> firewalls:
> ...
> secured_area:
> pattern: ^/
> anonymous: ~
> provider: chain_provider
> mapbender_ldap:
> login_path: /user/login
> check_path: /user/login/check
> service: ldapClient
> form_login:
> check_path: /user/login/check
> login_path: /user/login
> provider: main
> logout:
> path: /user/logout
> target: /
>
>
> Add this to parameters.yml fitting your ldap server configuration:
>
> ldap.host: example.com <http://example.com>
> ldap.port: 389
> ldap.version: 3
> ldap.useTLS: false
> ldap.useSSL: false
> ldap.bind.dn: cn=admin,dc=example,dc=com
> ldap.bind.pwd: *********
>
> ldap.user.nameAttribute: cn
> ldap.user.baseDn: ou=user,dc=example,dc=com
> ldap.user.adminFilter: (objectClass=*)
> ldap.user.query: (&(cn={username})(objectclass=top))
> ldap.user.dn: cn={username},ou=user,dc=example,dc=com
> ldap.user.password: unicodePwd={password}
>
> ldap.group.nameAttribute:~
> ldap.group.baseDn: ou=groups,dc=example,dc=com
> ldap.group.adminFilter: (objectClass=*)
> ldap.group.id <http://ldap.group.id>: cn
> ldap.group.query: member=cn={username},ou=user,dc=example,dc=com
>
>
> Now this probably won't work right away. Depending on your Ldap
> server settings it can be quite a hassle to get this running.
>
> Hope this helps.
>
>
>
> Am 22.04.21 um 06:12 schrieb Adrián Ariza:
>> Hi! Are there any tutorial to configure LDA FOM? How to activate,
>> configure and debug.
>> Thanks in advance!
>>
>> _______________________________________________
>> Mapbender_users mailing list
>> Mapbender_users at lists.osgeo.org <mailto:Mapbender_users at lists.osgeo.org>
>> https://lists.osgeo.org/mailman/listinfo/mapbender_users <https://lists.osgeo.org/mailman/listinfo/mapbender_users>
>
> --
> Mit freundlichen Grüßen
>
> Philipp van Biesbrock
>
>
> ----------------------------------------------------
> Aufwind durch Wissen!
> Web-Seminare und Online-Schulungen
> bei derwww.foss-academy.com <http://www.foss-academy.com>
> ----------------------------------------------------
>
> -------------------------------
> WhereGroup GmbH
> Eifelstraße 7
> 53119 Bonn
> Germany
>
> Fon: +49 (0)228 / 90 90 38 - **
> Fax: +49 (0)228 / 90 90 38 - 11
>
> info at wheregroup.com <mailto:info at wheregroup.com>
> www.wheregroup.com <http://www.wheregroup.com>
> Geschäftsführer:
> Olaf Knopp, Peter Stamm
> Amtsgericht Bonn, HRB 9885
> -------------------------------
>
> _______________________________________________
> Mapbender_users mailing list
> Mapbender_users at lists.osgeo.org
> <mailto:Mapbender_users at lists.osgeo.org>
> https://lists.osgeo.org/mailman/listinfo/mapbender_users
> <https://lists.osgeo.org/mailman/listinfo/mapbender_users>
>
>
> _______________________________________________
> Mapbender_users mailing list
> Mapbender_users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapbender_users
--
Mit freundlichen Grüßen
Philipp van Biesbrock
----------------------------------------------------
Aufwind durch Wissen!
Web-Seminare und Online-Schulungen
bei der www.foss-academy.com
----------------------------------------------------
-------------------------------
WhereGroup GmbH
Eifelstraße 7
53119 Bonn
Germany
Fon: +49 (0)228 / 90 90 38 - **
Fax: +49 (0)228 / 90 90 38 - 11
info at wheregroup.com
www.wheregroup.com
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885
-------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapbender_users/attachments/20210423/f0c51bec/attachment-0001.html>
More information about the Mapbender_users
mailing list