Skip to content

Instantly share code, notes, and snippets.

View fvanderbiest's full-sized avatar

François Van Der Biest fvanderbiest

View GitHub Profile
@fvanderbiest
fvanderbiest / clean_ghost_ldap_users.py
Created August 7, 2018 11:59 — forked from cmangeat/clean_ghost_ldap_users.py
remove non existent users form roles
from ldap3 import Connection, SUBTREE, MODIFY_DELETE
from ldap3.core.exceptions import LDAPException
LDAP_URI = 'ldap://localhost:3899'
BIND_WITH_CREDENTIALS = True
LDAP_BINDDN = 'cn=admin,dc=georchestra,dc=org'
LDAP_PASSWD = 'secret'
USERS_DN = 'ou=users,dc=georchestra,dc=org'
ROLES_DN = 'ou=roles,dc=georchestra,dc=org'
@fvanderbiest
fvanderbiest / nginx-conf
Created April 6, 2016 10:50 — forked from jusabatier/nginx-conf
Handle Geoserver OGC service calls without params
if ( $request_uri ~ ^/geoserver/(wms|wfs|wmts)$ ) {
set $test_ogc_request "G";
}
if ( $args = '' ) {
set $test_ogc_request "${test_ogc_request}G";
}
if ( $request_body = '' ) {
set $test_ogc_request "${test_ogc_request}G";
}
if ($test_ogc_request = "GGG") {