]> git.nbdom.net Git - nb.git/commitdiff
etc/profile.d/ldap.sh
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Fri, 10 Feb 2017 09:26:59 +0000 (09:26 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Fri, 10 Feb 2017 09:26:59 +0000 (09:26 +0000)
etc/profile.d/ldap.sh [new file with mode: 0644]
www/dbq/docker-compose.yaml

diff --git a/etc/profile.d/ldap.sh b/etc/profile.d/ldap.sh
new file mode 100644 (file)
index 0000000..514c914
--- /dev/null
@@ -0,0 +1,5 @@
+which ldapsearch > /dev/null || return
+
+ldap_config() {
+  ldapsearch -Y EXTERNAL -H ldapi:/// -b cn=config
+}
index fd1d8ecd00a8bea43dda6b51095ac32565948724..b73ec829e68349ed2834819674a235af201f88d9 100644 (file)
@@ -26,6 +26,8 @@ services:
   nginx: 
 # NB 27.12.16     entrypoint: sh -c '. /etc/profile && sed -e "s/\(^[\t ]*listen[\t ]*\)localhost:/\1/" -e "s,^\([\t ]*fastcgi_pass[\t ]*\).*,\1php:9000;," $NB_ROOT/www/dbq/etc/nginx/default.conf > /etc/nginx/conf.d/default.conf && exec nginx -g "daemon off; error_log /dev/stdout info;"'
 # NB 27.12.16     image: nginx:alpine
+    environment:
+      NB_ROOT: /opt/nb
     build:
       context: ../Docker/nginx/
       args: