Skip to content

Instantly share code, notes, and snippets.

View rgaduput's full-sized avatar

Reddysekhar Gaduputi rgaduput

  • Allot
  • Bengaluru
View GitHub Profile
@rgaduput
rgaduput / docker-compose.yaml
Created December 10, 2020 08:49
grafana with graphite (including statsd) docker compose file
version: "3"
services:
grafana:
image: grafana/grafana:latest
hostname: grafana
depends_on:
- graphite
links:
- graphite
ports:
{
"scmId":"git",
"slug":"test_pipe",
"links":{
"self":[
{
"href":"http://bitbucket.com/users/rgaduputi/repos/test_pipe/browse"
}
]
},
@rgaduput
rgaduput / auth.py
Created June 5, 2018 09:53 — forked from ibeex/auth.py
Python LDAP (ActiveDirectory) authentication
import ldap
def check_credentials(username, password):
"""Verifies credentials for username and password.
Returns None on success or a string describing the error on failure
# Adapt to your needs
"""
LDAP_SERVER = 'ldap://xxx'
# fully qualified AD user name
LDAP_USERNAME = '%s@xxx.xx' % username