<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Adrián,<br>
<br>
<br>
I haven't tested the mapbender/ldapbundle with 3.2.x yet. I'll do
so, once I get to it. The mapbender/ldapbundle definitly works
with 3.0.8.x<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">Am 24.04.21 um 05:17 schrieb Adrián
Ariza:<br>
</div>
<blockquote type="cite"
cite="mid:CAL4-Z8e6mA15W=gYYVbWzMbQA6aObz+Bj=B2KLKmv8nsU_mWkQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Sorry, The mapbender I'm using is 3.2.3
<div><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">El vie, 23 abr 2021 a las
23:19, Adrián Ariza (<<a href="mailto:hardian@gmail.com"
moz-do-not-send="true">hardian@gmail.com</a>>) escribió:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">I try but the message still seid that the
problem is in
<div>/vendor/mapbender/ldapbundle/DependencyInjection/../Resources/config/services.yml"<br>
</div>
<div>line 13 near "- @ldapClient").</div>
<div>I delete the @ and now I'm getting</div>
<div><br>
</div>
<div><br>
</div>
<div>Uncaught PHP Exception
Symfony\Component\Debug\Exception\FatalThrowableError:
"Type error: Argument 1 passed to
Mapbender\LDAPBundle\Security\Provider\LDAPUserProvider::__construct()
must implement interface
Symfony\Component\Ldap\LdapClientInterface, string given,
called in
/var/www/puntogis3/app/cache/dev/ContainerEbn4jh3/getLdapUserProviderService.php
on line 8" at
/var/www/puntogis3/vendor/mapbender/ldapbundle/Security/Provider/LDAPUserProvider.php
line 48<br>
</div>
<div><br>
</div>
<div>Any Clues? Anyone are using ldap? The
mapbender/ldapbundle works with 3.0.4 version?</div>
<div>Thanks in advance!</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">El vie, 23 abr 2021 a las
4:12, Philipp van Biesbrock (<<a
href="mailto:philipp.vanbiesbrock@wheregroup.com"
target="_blank" moz-do-not-send="true">philipp.vanbiesbrock@wheregroup.com</a>>)
escribió:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div>
<p>looks like you need to wrap an entry in
parameters.yml in single quotes:<br>
Something like this, I guess:<br>
ldap.user.dn: '<a href="mailto:user@example.com"
target="_blank" moz-do-not-send="true">user@example.com</a>'<br>
</p>
<br>
<div>Am 23.04.21 um 01:22 schrieb Adrián Ariza:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Thanks for your reply!
<div><br>
I Install ldapBundle, configure security and
parameters but now I see the error </div>
<br>
The reserved indicator "@" cannot start a plain
scalar; you need to quote the scalar at line 13
(near "- @ldapClient").<br>
<br>
Could you gime som clue about fixing that?
<div><br>
</div>
<div>Thanks in advance!<br>
<br>
PD: Sorry for my english<br>
<br>
<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">El jue, 22 abr
2021 a las 6:03, Philipp van Biesbrock (<<a
href="mailto:philipp.vanbiesbrock@wheregroup.com"
target="_blank" moz-do-not-send="true">philipp.vanbiesbrock@wheregroup.com</a>>)
escribió:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px
0px 0px 0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div>
<p>Hi Adrián,<br>
<br>
<br>
Unfortunately we currently don't have any
documentation. We're working on it though.<br>
Here's a quick tutorial for you:<br>
<br>
To use Mapbender with LDAP you can add this
Symfony-bundle to your Mapbender:<br>
<br>
<a
href="https://github.com/mapbender/ldapBundle"
target="_blank" moz-do-not-send="true">https://github.com/mapbender/ldapBundle</a><br>
<br>
This can be done manually or via composer:
composer require mapbender/ldapbundle<br>
<br>
Don't forget to register in AppKernel.php<br>
<br>
Configuration isn't too easy. Basically you
need to configure security.yml and
parameters.yml.<br>
<br>
Security.yml needs the ldapProvider and some
firewall configuration:<br>
<br>
providers:<br>
ldapProvider:<br>
id: LDAPUserProvider<br>
main:<br>
entity:<br>
class: FOM\UserBundle\Entity\User<br>
property: username<br>
chain_provider:<br>
chain:<br>
providers: ["ldapProvider","main"]<br>
<br>
firewalls:<br>
...<br>
secured_area:<br>
pattern: ^/<br>
anonymous: ~<br>
provider: chain_provider<br>
mapbender_ldap:<br>
login_path: /user/login<br>
check_path: /user/login/check<br>
service: ldapClient<br>
form_login:<br>
check_path: /user/login/check<br>
login_path: /user/login<br>
provider: main<br>
logout:<br>
path: /user/logout<br>
target: /<br>
<br>
<br>
Add this to parameters.yml fitting your ldap
server configuration:</p>
<p>ldap.host: <a href="http://example.com"
target="_blank" moz-do-not-send="true">example.com</a><br>
ldap.port: 389<br>
ldap.version: 3<br>
ldap.useTLS: false<br>
ldap.useSSL: false<br>
ldap.bind.dn: cn=admin,dc=example,dc=com<br>
ldap.bind.pwd: *********<br>
<br>
ldap.user.nameAttribute: cn<br>
ldap.user.baseDn: ou=user,dc=example,dc=com<br>
ldap.user.adminFilter: (objectClass=*)<br>
ldap.user.query:
(&(cn={username})(objectclass=top))<br>
ldap.user.dn:
cn={username},ou=user,dc=example,dc=com<br>
ldap.user.password: unicodePwd={password}</p>
<p>ldap.group.nameAttribute:~ <br>
ldap.group.baseDn: ou=groups,dc=example,dc=com<br>
ldap.group.adminFilter: (objectClass=*)<br>
<a href="http://ldap.group.id" target="_blank"
moz-do-not-send="true">ldap.group.id</a>: cn<br>
ldap.group.query:
member=cn={username},ou=user,dc=example,dc=com<br>
<br>
<br>
Now this probably won't work right away.
Depending on your Ldap server settings it can
be quite a hassle to get this running.<br>
<br>
Hope this helps.</p>
<p><br>
</p>
<p><br>
</p>
<div>Am 22.04.21 um 06:12 schrieb Adrián Ariza:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi! Are there any tutorial to
configure LDA FOM? How to activate,
configure and debug.
<div>Thanks in advance!</div>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
Mapbender_users mailing list
<a href="mailto:Mapbender_users@lists.osgeo.org" target="_blank" moz-do-not-send="true">Mapbender_users@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/mapbender_users" target="_blank" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/mapbender_users</a>
</pre>
</blockquote>
<pre cols="72">--
Mit freundlichen Grüßen
Philipp van Biesbrock
----------------------------------------------------
Aufwind durch Wissen!
Web-Seminare und Online-Schulungen
bei der <a href="http://www.foss-academy.com" target="_blank" moz-do-not-send="true">www.foss-academy.com</a>
----------------------------------------------------
-------------------------------
WhereGroup GmbH
Eifelstraße 7
53119 Bonn
Germany
Fon: +49 (0)228 / 90 90 38 - **
Fax: +49 (0)228 / 90 90 38 - 11
<a href="mailto:info@wheregroup.com" target="_blank" moz-do-not-send="true">info@wheregroup.com</a>
<a href="http://www.wheregroup.com" target="_blank" moz-do-not-send="true">www.wheregroup.com</a>
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885
-------------------------------</pre>
</div>
_______________________________________________<br>
Mapbender_users mailing list<br>
<a href="mailto:Mapbender_users@lists.osgeo.org"
target="_blank" moz-do-not-send="true">Mapbender_users@lists.osgeo.org</a><br>
<a
href="https://lists.osgeo.org/mailman/listinfo/mapbender_users"
rel="noreferrer" target="_blank"
moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/mapbender_users</a><br>
</blockquote>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
Mapbender_users mailing list
<a href="mailto:Mapbender_users@lists.osgeo.org" target="_blank" moz-do-not-send="true">Mapbender_users@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/mapbender_users" target="_blank" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/mapbender_users</a>
</pre>
</blockquote>
<pre cols="72">--
Mit freundlichen Grüßen
Philipp van Biesbrock
----------------------------------------------------
Aufwind durch Wissen!
Web-Seminare und Online-Schulungen
bei der <a href="http://www.foss-academy.com" target="_blank" moz-do-not-send="true">www.foss-academy.com</a>
----------------------------------------------------
-------------------------------
WhereGroup GmbH
Eifelstraße 7
53119 Bonn
Germany
Fon: +49 (0)228 / 90 90 38 - **
Fax: +49 (0)228 / 90 90 38 - 11
<a href="mailto:info@wheregroup.com" target="_blank" moz-do-not-send="true">info@wheregroup.com</a>
<a href="http://www.wheregroup.com" target="_blank" moz-do-not-send="true">www.wheregroup.com</a>
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885
-------------------------------</pre>
</div>
_______________________________________________<br>
Mapbender_users mailing list<br>
<a href="mailto:Mapbender_users@lists.osgeo.org"
target="_blank" moz-do-not-send="true">Mapbender_users@lists.osgeo.org</a><br>
<a
href="https://lists.osgeo.org/mailman/listinfo/mapbender_users"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/mapbender_users</a><br>
</blockquote>
</div>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Mapbender_users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Mapbender_users@lists.osgeo.org">Mapbender_users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/mapbender_users">https://lists.osgeo.org/mailman/listinfo/mapbender_users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Mit freundlichen Grüßen
Philipp van Biesbrock
----------------------------------------------------
Aufwind durch Wissen!
Web-Seminare und Online-Schulungen
bei der <a class="moz-txt-link-abbreviated" href="http://www.foss-academy.com">www.foss-academy.com</a>
----------------------------------------------------
-------------------------------
WhereGroup GmbH
Eifelstraße 7
53119 Bonn
Germany
Fon: +49 (0)228 / 90 90 38 - **
Fax: +49 (0)228 / 90 90 38 - 11
<a class="moz-txt-link-abbreviated" href="mailto:info@wheregroup.com">info@wheregroup.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.wheregroup.com">www.wheregroup.com</a>
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885
-------------------------------</pre>
</body>
</html>