This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[push] | |
default = simple | |
[pull] | |
rebase = preserve | |
[alias] | |
pf = push --force-with-lease |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yarn install v1.13.0 | |
info No lockfile found. | |
[1/4] Resolving packages... | |
[2/4] Fetching packages... | |
[3/4] Linking dependencies... | |
[4/4] Building fresh packages... | |
error /home/nek/Programmation/Web/JS/Applications/ScoringlineKurentoServer/node_modules/kurento-jsonrpc/node_modules/utf-8-validate: Command failed. | |
Exit code: 1 | |
Command: node-gyp rebuild | |
Arguments: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
your-docker-name: | |
build: docker/php-fpm | |
ulimits: | |
core: 100000000000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Fichier bug.php | |
$x = new AppendIterator; | |
$x->append($x); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Security; | |
use Symfony\Component\Security\Core\Encoder\PasswordEncoderInterface; | |
class LdapEncoder implements PasswordEncoderInterface | |
{ | |
public function encodePassword($raw, $salt) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LDAP_URL=ldap://ldap:389 | |
LDAP_BASE_DN=dc=mycorp,dc=com | |
LDAP_SEARCH_DN=cn=admin,dc=mycorp,dc=com | |
LDAP_SEARCH_PASSWORD=s3cr3tpassw0rd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
security: | |
providers: | |
user_provider: | |
ldap: | |
service: Symfony\Component\Ldap\Ldap | |
base_dn: "%env(LDAP_BASE_DN)%" | |
# Identifiants pour la connexion au LDAP | |
search_dn: "%env(LDAP_SEARCH_DN)%" | |
search_password: "%env(LDAP_SEARCH_PASSWORD)%" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
Symfony\Component\Ldap\Adapter\ExtLdap\Adapter: | |
arguments: | |
- connection_string: '%env(LDAP_URL)%' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\DataFixtures; | |
use App\Application\Security\LdapEncoder; | |
use Doctrine\Bundle\FixturesBundle\Fixture; | |
use Doctrine\Common\Persistence\ObjectManager; | |
use Symfony\Component\Ldap\Entry; | |
use Symfony\Component\Ldap\Exception\LdapException; | |
use Symfony\Component\Ldap\Ldap; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
ldap: | |
image: broadinstitute/slapd:2.0 | |
domainname: "example.org" | |
hostname: "example.org" | |
environment: | |
LDAP_DEBUGLEVEL: 1 | |
LDAP_DOMAIN: mycorp.com | |
LDAP_ORGANIZATION: "My Mega Corporation" | |
LDAP_ROOTPASS: s3cr3tpassw0rd |